From 4306975cba50d91feed17e22111a088f6bb7794b Mon Sep 17 00:00:00 2001 From: kostis30fyllou Date: Mon, 14 Jun 2021 16:07:10 +0300 Subject: [PATCH] Update to angular to version 8 --- .../browserslist | 12 ++++++++ .../package.json | 30 +++++++++---------- .../src/app/app-routing.module.ts | 2 +- .../src/tsconfig.app.json | 1 - .../src/tsconfig.spec.json | 2 -- .../tsconfig.json | 5 ++-- .../tslint.json | 8 ++--- 7 files changed, 35 insertions(+), 25 deletions(-) create mode 100644 interactive-mining-angular-frontend/browserslist diff --git a/interactive-mining-angular-frontend/browserslist b/interactive-mining-angular-frontend/browserslist new file mode 100644 index 0000000..8084853 --- /dev/null +++ b/interactive-mining-angular-frontend/browserslist @@ -0,0 +1,12 @@ +# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries + +# You can see what browsers were selected by your queries by running: +# npx browserslist + +> 0.5% +last 2 versions +Firefox ESR +not dead +not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/interactive-mining-angular-frontend/package.json b/interactive-mining-angular-frontend/package.json index 24b1338..7476176 100755 --- a/interactive-mining-angular-frontend/package.json +++ b/interactive-mining-angular-frontend/package.json @@ -13,14 +13,14 @@ }, "private": true, "dependencies": { - "@angular/animations": "^7.2.14", - "@angular/common": "^7.2.14", - "@angular/compiler": "^7.2.14", - "@angular/core": "^7.2.14", - "@angular/forms": "^7.2.14", - "@angular/platform-browser": "^7.2.14", - "@angular/platform-browser-dynamic": "^7.2.14", - "@angular/router": "^7.2.14", + "@angular/animations": "^8.2.14", + "@angular/common": "^8.2.14", + "@angular/compiler": "^8.2.14", + "@angular/core": "^8.2.14", + "@angular/forms": "^8.2.14", + "@angular/platform-browser": "^8.2.14", + "@angular/platform-browser-dynamic": "^8.2.14", + "@angular/router": "^8.2.14", "core-js": "^2.4.1", "file-saver": "^2.0.2", "jquery": "^3.4.1", @@ -30,13 +30,13 @@ "rxjs": "^6.5.1", "tslib": "^1.9.0", "uikit": "^3.1.5", - "zone.js": "^0.9.1" + "zone.js": "~0.9.1" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.13.0", - "@angular/cli": "^7.3.9", - "@angular/compiler-cli": "^7.2.14", - "@angular/language-service": "^7.2.14", + "@angular-devkit/build-angular": "~0.803.29", + "@angular/cli": "^8.3.29", + "@angular/compiler-cli": "^8.2.14", + "@angular/language-service": "^8.2.14", "@types/file-saver": "^2.0.1", "@types/jasmine": "~3.3.13", "@types/jasminewd2": "~2.0.6", @@ -50,9 +50,9 @@ "karma-coverage-istanbul-reporter": "^2.0.5", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.2", - "ng-packagr": "^5.2.0", + "ng-packagr": "^5.4.0", "protractor": "~5.4.2", "ts-node": "~8.2.0", - "typescript": "~3.2.4" + "typescript": "~3.5.3" } } diff --git a/interactive-mining-angular-frontend/src/app/app-routing.module.ts b/interactive-mining-angular-frontend/src/app/app-routing.module.ts index e35cbec..a8f9518 100755 --- a/interactive-mining-angular-frontend/src/app/app-routing.module.ts +++ b/interactive-mining-angular-frontend/src/app/app-routing.module.ts @@ -3,7 +3,7 @@ import { RouterModule, Routes } from '@angular/router'; export const AppRoutes: Routes = [ { path: '', redirectTo: '/mining/manage-profiles?communityId=Egi', pathMatch: 'full' }, - { path: 'mining', loadChildren: './lazy-mining.module#LazyMiningModule'} + { path: 'mining', loadChildren: () => import('./lazy-mining.module').then(m => m.LazyMiningModule)} ]; @NgModule({ diff --git a/interactive-mining-angular-frontend/src/tsconfig.app.json b/interactive-mining-angular-frontend/src/tsconfig.app.json index 39ba8db..9231c6e 100755 --- a/interactive-mining-angular-frontend/src/tsconfig.app.json +++ b/interactive-mining-angular-frontend/src/tsconfig.app.json @@ -3,7 +3,6 @@ "compilerOptions": { "outDir": "../out-tsc/app", "baseUrl": "./", - "module": "es2015", "types": [] }, "exclude": [ diff --git a/interactive-mining-angular-frontend/src/tsconfig.spec.json b/interactive-mining-angular-frontend/src/tsconfig.spec.json index 18bad40..c89454b 100755 --- a/interactive-mining-angular-frontend/src/tsconfig.spec.json +++ b/interactive-mining-angular-frontend/src/tsconfig.spec.json @@ -3,8 +3,6 @@ "compilerOptions": { "outDir": "../out-tsc/spec", "baseUrl": "./", - "module": "commonjs", - "target": "es5", "types": [ "jasmine", "node" diff --git a/interactive-mining-angular-frontend/tsconfig.json b/interactive-mining-angular-frontend/tsconfig.json index 8cd9a30..7f06855 100755 --- a/interactive-mining-angular-frontend/tsconfig.json +++ b/interactive-mining-angular-frontend/tsconfig.json @@ -1,6 +1,7 @@ { "compileOnSave": false, "compilerOptions": { + "downlevelIteration": true, "importHelpers": true, "outDir": "./dist/out-tsc", "sourceMap": true, @@ -8,7 +9,7 @@ "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es5", + "target": "es2015", "typeRoots": [ "node_modules/@types" ], @@ -16,7 +17,7 @@ "es2017", "dom" ], - "module": "es2015", + "module": "esnext", "baseUrl": "./" } } \ No newline at end of file diff --git a/interactive-mining-angular-frontend/tslint.json b/interactive-mining-angular-frontend/tslint.json index 7223e1a..f22f9e8 100755 --- a/interactive-mining-angular-frontend/tslint.json +++ b/interactive-mining-angular-frontend/tslint.json @@ -125,12 +125,12 @@ "app", "kebab-case" ], - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, + "no-inputs-metadata-property": true, + "no-outputs-metadata-property": true, + "no-host-metadata-property": true, "no-input-rename": true, "no-output-rename": true, - "use-life-cycle-interface": true, + "use-lifecycle-interface": true, "use-pipe-transform-interface": true, "component-class-suffix": true, "directive-class-suffix": true,