angular update to version 12

first step: ng update @angular/core@12 @angular/cli@12
This commit is contained in:
2021-07-03 09:03:40 +02:00
parent 8ed853c3cf
commit 6c1a0f997e
6 changed files with 4027 additions and 5270 deletions

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 @@
"src/styles.scss", "src/styles.scss",
"src/custom-theme.scss" "src/custom-theme.scss"
], ],
"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",

9247
pdb-js/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,41 +5,41 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"releasebuild": "ng build --prod", "releasebuild": "ng build --configuration production",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^11.2.11", "@angular/animations": "^12.1.1",
"@angular/cdk": "^11.2.10", "@angular/cdk": "^11.2.10",
"@angular/common": "^11.2.11", "@angular/common": "^12.1.1",
"@angular/compiler": "^11.2.11", "@angular/compiler": "^12.1.1",
"@angular/core": "^11.2.11", "@angular/core": "^12.1.1",
"@angular/forms": "^11.2.11", "@angular/forms": "^12.1.1",
"@angular/material": "^11.2.10", "@angular/material": "^11.2.10",
"@angular/platform-browser": "^11.2.11", "@angular/platform-browser": "^12.1.1",
"@angular/platform-browser-dynamic": "^11.2.11", "@angular/platform-browser-dynamic": "^12.1.1",
"@angular/router": "^11.2.11", "@angular/router": "^12.1.1",
"moment": "^2.29.1", "moment": "^2.29.1",
"rxjs": "^6.6.7", "rxjs": "^6.6.7",
"rxjs-compat": "^6.6.7", "rxjs-compat": "^6.6.7",
"tslib": "^2.2.0", "tslib": "^2.2.0",
"zone.js": "~0.10.2" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.1100.7", "@angular-devkit/build-angular": "^12.1.1",
"@angular/cli": "^11.2.10", "@angular/cli": "^12.1.1",
"@angular/compiler-cli": "^11.2.11", "@angular/compiler-cli": "^12.1.1",
"@angular/language-service": "^11.2.11", "@angular/language-service": "^12.1.1",
"@types/jasmine": "^3.6.9", "@types/jasmine": "^3.6.9",
"@types/jasminewd2": "~2.0.8", "@types/jasminewd2": "~2.0.8",
"@types/node": "^12.20.10", "@types/node": "^12.20.10",
"codelyzer": "^6.0.0", "codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.1", "karma": "~6.3.4",
"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",
@@ -47,6 +47,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.5.4", "ts-node": "~8.5.4",
"tslint": "^6.1.0", "tslint": "^6.1.0",
"typescript": "4.1.5" "typescript": "4.3.5"
} }
} }

View File

@@ -13,4 +13,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.
/*************************************************************************************************** /***************************************************************************************************

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,