From 6c9d0924f129763ad4a5a4eac4017d2e3e46dc10 Mon Sep 17 00:00:00 2001 From: chsakell Date: Sat, 22 Apr 2017 19:45:44 +0300 Subject: [PATCH] upgrade to angular 4 --- package.json | 30 ++++++++++++++---------------- tsconfig.json | 8 ++------ wwwroot/js/systemjs.config.js | 3 +++ 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 30340da..e89cc3c 100644 --- a/package.json +++ b/package.json @@ -9,30 +9,28 @@ "url": "https://github.com/chsakell/aspnet-core-signalr-angular" }, "dependencies": { - "@angular/common": "~2.2.0", - "@angular/compiler": "~2.2.0", - "@angular/core": "~2.2.0", - "@angular/forms": "~2.2.0", - "@angular/http": "~2.2.0", - "@angular/platform-browser": "~2.2.0", - "@angular/platform-browser-dynamic": "~2.2.0", - "@angular/router": "~3.2.0", - "@angular/upgrade": "~2.2.0", + "@angular/animations": "4.0.2", + "@angular/common": "4.0.2", + "@angular/compiler": "4.0.2", + "@angular/core": "4.0.2", + "@angular/forms": "4.0.2", + "@angular/http": "4.0.2", + "@angular/platform-browser": "4.0.2", + "@angular/platform-browser-dynamic": "4.0.2", + "@angular/router": "4.0.2", - "angular-in-memory-web-api": "~0.1.15", + "angular-in-memory-web-api": "~0.2.4", "core-js": "^2.4.1", "reflect-metadata": "^0.1.8", - "rxjs": "5.0.0-beta.12", - "systemjs": "0.19.39", - "zone.js": "^0.6.25", + "rxjs": "5.0.1", + "systemjs": "0.19.40", + "zone.js": "^0.8.5", "bower": "1.7.9", "jquery": "^3.1.0", "signalr": "^2.2.1" }, "devDependencies": { - "@types/core-js": "^0.9.34", - "@types/node": "^6.0.45", "concurrently": "^2.2.0", "gulp": ">=3.9.1", "gulp-concat": ">=2.5.2", @@ -46,7 +44,7 @@ "gulp-watch": ">=4.3.9", "jasmine-core": "2.4.1", "tslint": "^3.15.1", - "typescript": "^2.0.0", + "typescript": "^2.2.2", "typings": "^1.3.2" }, "scripts": { diff --git a/tsconfig.json b/tsconfig.json index be68417..085b1a0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,11 +7,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, - "suppressImplicitAnyIndexErrors": true - }, - "compileOnSave": true, - "angularCompilerOptions": { - "genDir": ".", - "debug": true + "noImplicitAny": false, + "skipLibCheck": true } } \ No newline at end of file diff --git a/wwwroot/js/systemjs.config.js b/wwwroot/js/systemjs.config.js index 58fc5e0..ee1de88 100644 --- a/wwwroot/js/systemjs.config.js +++ b/wwwroot/js/systemjs.config.js @@ -13,6 +13,9 @@ // our app is within the app folder app: 'app', // angular bundles + '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js', + '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js', + '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js', '@angular/core': 'npm:@angular/core/bundles/core.umd.js', '@angular/common': 'npm:@angular/common/bundles/common.umd.js', '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',