From a4d389bba50b17d987b188cc9182c777f46f62db Mon Sep 17 00:00:00 2001 From: tanshu Date: Sun, 16 May 2021 10:31:18 +0530 Subject: [PATCH] Chore: Upgraded to Angular v12 --- bookie/angular.json | 9 +++- bookie/package.json | 72 +++++++++++++------------- bookie/src/environments/environment.ts | 2 +- bookie/src/polyfills.ts | 2 +- bookie/src/test.ts | 2 +- 5 files changed, 46 insertions(+), 41 deletions(-) diff --git a/bookie/angular.json b/bookie/angular.json index 4fa0ee7..5771ce6 100644 --- a/bookie/angular.json +++ b/bookie/angular.json @@ -22,7 +22,6 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", - "aot": true, "assets": [ "src/favicon.ico", "src/assets" @@ -31,7 +30,13 @@ "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.css" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { diff --git a/bookie/package.json b/bookie/package.json index 5756d34..93387dc 100644 --- a/bookie/package.json +++ b/bookie/package.json @@ -14,42 +14,42 @@ }, "private": true, "dependencies": { - "@angular/animations": "^11.2.11", - "@angular/cdk": "^11.2.10", - "@angular/common": "^11.2.11", - "@angular/compiler": "^11.2.11", - "@angular/core": "^11.2.11", + "@angular/animations": "^12.0.0", + "@angular/cdk": "^12.0.0", + "@angular/common": "^12.0.0", + "@angular/compiler": "^12.0.0", + "@angular/core": "^12.0.0", "@angular/flex-layout": "^11.0.0-beta.33", - "@angular/forms": "^11.2.11", - "@angular/material": "^11.2.10", - "@angular/material-moment-adapter": "^11.2.10", - "@angular/platform-browser": "^11.2.11", - "@angular/platform-browser-dynamic": "^11.2.11", - "@angular/router": "^11.2.11", + "@angular/forms": "^12.0.0", + "@angular/material": "^12.0.0", + "@angular/material-moment-adapter": "^12.0.0", + "@angular/platform-browser": "^12.0.0", + "@angular/platform-browser-dynamic": "^12.0.0", + "@angular/router": "^12.0.0", "mathjs": "^9.3.2", "moment": "^2.29.1", - "rxjs": "^6.6.7", - "tslib": "^2.1.0", - "zone.js": "^0.11.4" + "rxjs": "^7.0.1", + "tslib": "^2.2.0", + "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1102.10", - "@angular-eslint/builder": "^4.0.0", - "@angular-eslint/eslint-plugin": "^4.0.0", - "@angular-eslint/eslint-plugin-template": "^4.0.0", - "@angular-eslint/schematics": "^4.0.0", - "@angular-eslint/template-parser": "^4.0.0", - "@angular/cli": "^11.2.10", - "@angular/compiler-cli": "^11.2.11", - "@angular/language-service": "^11.2.11", - "@types/jasmine": "~3.6.9", - "@types/mathjs": "^6.0.11", - "@types/node": "^14.14.41", - "@typescript-eslint/eslint-plugin": "4.22.0", - "@typescript-eslint/parser": "4.22.0", - "eslint": "^7.24.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jsdoc": "^32.3.1", + "@angular-devkit/build-angular": "~12.0.0", + "@angular-eslint/builder": "^12.0.0", + "@angular-eslint/eslint-plugin": "^12.0.0", + "@angular-eslint/eslint-plugin-template": "^12.0.0", + "@angular-eslint/schematics": "^12.0.0", + "@angular-eslint/template-parser": "^12.0.0", + "@angular/cli": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", + "@angular/language-service": "^12.0.0", + "@types/jasmine": "~3.7.4", + "@types/mathjs": "^6.0.12", + "@types/node": "^15.3.0", + "@typescript-eslint/eslint-plugin": "4.23.0", + "@typescript-eslint/parser": "4.23.0", + "eslint": "^7.26.0", + "eslint-plugin-import": "^2.23.2", + "eslint-plugin-jsdoc": "^34.6.1", "eslint-plugin-prefer-arrow": "1.2.3", "husky": "^6.0.0", "jasmine-core": "^3.7.1", @@ -58,12 +58,12 @@ "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "^4.0.0", - "karma-jasmine-html-reporter": "^1.5.0", - "lint-staged": "^10.5.4", - "prettier": "^2.2.1", - "standard-version": "^9.2.0", + "karma-jasmine-html-reporter": "^1.6.0", + "lint-staged": "^11.0.0", + "prettier": "^2.3.0", + "standard-version": "^9.3.0", "ts-node": "^9.1.1", - "typescript": "~4.1.5" + "typescript": "~4.2.4" }, "husky": { "hooks": { diff --git a/bookie/src/environments/environment.ts b/bookie/src/environments/environment.ts index dd25bc6..4166207 100644 --- a/bookie/src/environments/environment.ts +++ b/bookie/src/environments/environment.ts @@ -15,4 +15,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/bookie/src/polyfills.ts b/bookie/src/polyfills.ts index ca6f18e..1f24716 100644 --- a/bookie/src/polyfills.ts +++ b/bookie/src/polyfills.ts @@ -57,7 +57,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/bookie/src/test.ts b/bookie/src/test.ts index e103ada..a0e80c3 100644 --- a/bookie/src/test.ts +++ b/bookie/src/test.ts @@ -1,6 +1,6 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'zone.js/dist/zone-testing'; +import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule,