Chore: Migrate angular 11->12

This commit is contained in:
Amritanshu Agrawal 2022-04-17 12:51:03 +05:30
parent e483d61ecc
commit cbc3402fbf
6 changed files with 33 additions and 26 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ frontend/
legacy/ legacy/
DB/csv/ DB/csv/
otis/package-lock.json otis/package-lock.json
otis/.eslintcache

View File

@ -22,7 +22,6 @@
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets" "src/assets"
@ -31,7 +30,13 @@
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css" "src/styles.css"
], ],
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -61,7 +66,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",

View File

@ -14,35 +14,35 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^11.1.0", "@angular/animations": "^12.2.16",
"@angular/cdk": "^11.1.0", "@angular/cdk": "^12.2.13",
"@angular/common": "^11.1.0", "@angular/common": "^12.2.16",
"@angular/compiler": "^11.1.0", "@angular/compiler": "^12.2.16",
"@angular/core": "^11.1.0", "@angular/core": "^12.2.16",
"@angular/flex-layout": "^11.0.0-beta.33", "@angular/flex-layout": "^12.0.0-beta.35",
"@angular/forms": "^11.1.0", "@angular/forms": "^12.2.16",
"@angular/material": "^11.1.0", "@angular/material": "^12.2.13",
"@angular/material-moment-adapter": "^11.1.0", "@angular/material-moment-adapter": "^12.2.13",
"@angular/platform-browser": "^11.1.0", "@angular/platform-browser": "^12.2.16",
"@angular/platform-browser-dynamic": "^11.1.0", "@angular/platform-browser-dynamic": "^12.2.16",
"@angular/router": "^11.1.0", "@angular/router": "^12.2.16",
"jspdf": "^2.3.0", "jspdf": "^2.3.0",
"jspdf-autotable": "^3.5.13", "jspdf-autotable": "^3.5.13",
"moment": "^2.29.1", "moment": "^2.29.1",
"rxjs": "^6.6.3", "rxjs": "^6.6.3",
"tslib": "^2.1.0", "tslib": "^2.1.0",
"zone.js": "^0.11.3" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1101.1", "@angular-devkit/build-angular": "~12.2.17",
"@angular-eslint/builder": "^1.1.0", "@angular-eslint/builder": "^1.1.0",
"@angular-eslint/eslint-plugin": "^1.1.0", "@angular-eslint/eslint-plugin": "^1.1.0",
"@angular-eslint/eslint-plugin-template": "^1.1.0", "@angular-eslint/eslint-plugin-template": "^1.1.0",
"@angular-eslint/schematics": "^1.1.0", "@angular-eslint/schematics": "^1.1.0",
"@angular-eslint/template-parser": "^1.1.0", "@angular-eslint/template-parser": "^1.1.0",
"@angular/cli": "^11.1.1", "@angular/cli": "^12.2.17",
"@angular/compiler-cli": "^11.1.0", "@angular/compiler-cli": "^12.2.16",
"@angular/language-service": "^11.1.0", "@angular/language-service": "^12.2.16",
"@types/jasmine": "~3.6.3", "@types/jasmine": "~3.6.3",
"@types/node": "^14.14.22", "@types/node": "^14.14.22",
"@typescript-eslint/eslint-plugin": "^4.14.0", "@typescript-eslint/eslint-plugin": "^4.14.0",
@ -54,7 +54,7 @@
"husky": "^4.3.8", "husky": "^4.3.8",
"jasmine-core": "^3.6.0", "jasmine-core": "^3.6.0",
"jasmine-spec-reporter": "^6.0.0", "jasmine-spec-reporter": "^6.0.0",
"karma": "^6.0.1", "karma": "^6.3.18",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "^4.0.0", "karma-jasmine": "^4.0.0",
@ -63,7 +63,7 @@
"prettier": "^2.2.1", "prettier": "^2.2.1",
"standard-version": "^9.1.0", "standard-version": "^9.1.0",
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"typescript": "^4.1.3" "typescript": "^4.3.5"
}, },
"husky": { "husky": {
"hooks": { "hooks": {

View File

@ -15,4 +15,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * 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.

View File

@ -55,7 +55,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * 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 * APPLICATION IMPORTS

View File

@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // 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 { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,