Skip to content

Commit

Permalink
adjustments for angular rc.1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Krause committed May 23, 2016
1 parent 944808d commit 011e278
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 27 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npm install ng2-uploader

`component.ts`
````typescript
import {Component} from 'angular2/core';
import {Component} from '@angular/core';
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';

@Component({
Expand Down Expand Up @@ -64,7 +64,7 @@ Response: {{ uploadFile | json }}

`component.ts`
````typescript
import {Component} from 'angular2/core';
import {Component} from '@angular/core';
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';

@Component({
Expand Down Expand Up @@ -105,7 +105,7 @@ Response: <br/>{{ uploadedFiles | json }}

`component.ts`
````typescript
import {Component, NgZone} from 'angular2/core';
import {Component, NgZone} from '@angular/core';
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';

@Component({
Expand Down Expand Up @@ -175,7 +175,7 @@ Response: <br/>{{ uploadFile | json }}

`component.ts`
````typescript
import {Component, NgZone} from 'angular2/core';
import {Component, NgZone} from '@angular/core';
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';

@Component({
Expand Down Expand Up @@ -245,7 +245,7 @@ export class MultipleProgressbar {

`component.ts`
````typescript
import {Component} from 'angular2/core';
import {Component} from '@angular/core';
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';

@Component({
Expand Down Expand Up @@ -289,7 +289,7 @@ You may want to sent file with specific form field name. For that you can use op

`component.ts`
````typescript
import {Component} from 'angular2/core';
import {Component} from '@angular/core';
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';

@Component({
Expand Down
10 changes: 5 additions & 5 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ var config = {
module: 'cjs'
},
map: {
typescript: './node_modules/typescript/lib/typescript.js',
angular2: path.resolve('node_modules/angular2'),
rxjs: path.resolve('node_modules/rxjs')
"typescript": './node_modules/typescript/lib/typescript.js',
"@angular": path.resolve('node_modules/@angular'),
"rxjs": path.resolve('node_modules/rxjs')
},
paths: {
'*': '*.js'
},
meta: {
'node_modules/angular2/*': { build: false },
'node_modules/@angular/*': { build: false },
'node_modules/rxjs/*': { build: false }
},
};
Expand All @@ -33,4 +33,4 @@ builder
})
.catch(function(err) {
console.log('Error', err);
});
});
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@
"uploader"
],
"dependencies": {
"angular2": "^2.0.0-beta.13",
"clang-format": "^1.0.35",
"es6-promise": "^3.0.2",
"es6-shim": "^0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"systemjs": "0.19.20",
"zone.js": "^0.6.9"
"@angular/core": "2.0.0-rc.1",
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"clang-format": "^1.0.39",
"es6-promise": "^3.2.1",
"es6-shim": "^0.35.1",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.26",
"zone.js": "^0.6.12"
},
"devDependencies": {
"systemjs-builder": "^0.15.14"
"systemjs-builder": "^0.15.14",
"typescript": "1.8.10",
"typings": "^0.8.1"
}
}
2 changes: 1 addition & 1 deletion src/directives/ng-file-drop.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ElementRef, EventEmitter } from 'angular2/core';
import { ElementRef, EventEmitter } from '@angular/core';
import { Ng2Uploader } from '../services/ng2-uploader';
export declare class NgFileDrop {
el: ElementRef;
Expand Down
2 changes: 1 addition & 1 deletion src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Directive, ElementRef, EventEmitter} from 'angular2/core';
import {Directive, ElementRef, EventEmitter} from '@angular/core';
import {Ng2Uploader} from '../services/ng2-uploader';

@Directive({
Expand Down
2 changes: 1 addition & 1 deletion src/directives/ng-file-select.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ElementRef, EventEmitter } from 'angular2/core';
import { ElementRef, EventEmitter } from '@angular/core';
import { Ng2Uploader } from '../services/ng2-uploader';
export declare class NgFileSelect {
el: ElementRef;
Expand Down
2 changes: 1 addition & 1 deletion src/directives/ng-file-select.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Directive, ElementRef, EventEmitter} from 'angular2/core';
import {Directive, ElementRef, EventEmitter} from '@angular/core';
import {Ng2Uploader} from '../services/ng2-uploader';

@Directive({
Expand Down
2 changes: 1 addition & 1 deletion src/services/ng2-uploader.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventEmitter } from 'angular2/core';
import { EventEmitter } from '@angular/core';
export declare class Ng2Uploader {
url: string;
cors: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/services/ng2-uploader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Injectable, EventEmitter} from 'angular2/core';
import {Injectable, EventEmitter} from '@angular/core';

class UploadedFile {
id: string;
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
},
"files": [
"ng2-uploader.ts",
"node_modules/angular2/typings/browser.d.ts"
"typings/browser/ambient/es6-collections/index.d.ts",
"typings/browser/ambient/es6-promise/index.d.ts"

],
"exclude": [
"node_modules"
Expand Down
6 changes: 6 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ambientDependencies": {
"es6-collections": "registry:dt/es6-collections#0.5.1+20160316155526",
"es6-promise": "registry:dt/es6-promise#0.0.0+20160423074304"
}
}

0 comments on commit 011e278

Please sign in to comment.