Update to Angular 12
This commit is contained in:
+12
-13
@@ -13,7 +13,6 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
"options": {
|
"options": {
|
||||||
"aot": true,
|
|
||||||
"outputPath": "../build/app",
|
"outputPath": "../build/app",
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"main": "src/main.ts",
|
||||||
@@ -30,7 +29,13 @@
|
|||||||
"scripts": [
|
"scripts": [
|
||||||
"node_modules/materialize-css/dist/js/materialize.min.js",
|
"node_modules/materialize-css/dist/js/materialize.min.js",
|
||||||
"node_modules/dom-autoscroller/dist/dom-autoscroller.min.js"
|
"node_modules/dom-autoscroller/dist/dom-autoscroller.min.js"
|
||||||
]
|
],
|
||||||
|
"vendorChunk": true,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"buildOptimizer": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"optimization": false,
|
||||||
|
"namedChunks": true
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
@@ -50,7 +55,6 @@
|
|||||||
"outputHashing": "all",
|
"outputHashing": "all",
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"namedChunks": false,
|
"namedChunks": false,
|
||||||
"aot": true,
|
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
"vendorChunk": false,
|
"vendorChunk": false,
|
||||||
"buildOptimizer": true
|
"buildOptimizer": true
|
||||||
@@ -68,14 +72,12 @@
|
|||||||
"with": "src/environments/environment.test.ts"
|
"with": "src/environments/environment.test.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"optimization": false,
|
|
||||||
"outputHashing": "all",
|
"outputHashing": "all",
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"namedChunks": false,
|
"namedChunks": false,
|
||||||
"aot": false,
|
"aot": false,
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
"vendorChunk": false,
|
"vendorChunk": false
|
||||||
"buildOptimizer": false
|
|
||||||
},
|
},
|
||||||
"test2": {
|
"test2": {
|
||||||
"budgets": [
|
"budgets": [
|
||||||
@@ -90,14 +92,12 @@
|
|||||||
"with": "src/environments/environment.test2.ts"
|
"with": "src/environments/environment.test2.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"optimization": false,
|
|
||||||
"outputHashing": "all",
|
"outputHashing": "all",
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"namedChunks": false,
|
"namedChunks": false,
|
||||||
"aot": false,
|
"aot": false,
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
"vendorChunk": false,
|
"vendorChunk": false
|
||||||
"buildOptimizer": false
|
|
||||||
},
|
},
|
||||||
"local": {
|
"local": {
|
||||||
"budgets": [
|
"budgets": [
|
||||||
@@ -112,16 +112,15 @@
|
|||||||
"with": "src/environments/environment.local.ts"
|
"with": "src/environments/environment.local.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"optimization": false,
|
|
||||||
"outputHashing": "all",
|
"outputHashing": "all",
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"namedChunks": false,
|
"namedChunks": false,
|
||||||
"aot": false,
|
"aot": false,
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
"vendorChunk": false,
|
"vendorChunk": false
|
||||||
"buildOptimizer": false
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"defaultConfiguration": ""
|
||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
|
|||||||
+16
-16
@@ -17,15 +17,15 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^11.2.14",
|
"@angular/animations": "^12.2.17",
|
||||||
"@angular/common": "^11.2.14",
|
"@angular/common": "^12.2.17",
|
||||||
"@angular/compiler": "^11.2.14",
|
"@angular/compiler": "^12.2.17",
|
||||||
"@angular/core": "^11.2.14",
|
"@angular/core": "^12.2.17",
|
||||||
"@angular/forms": "^11.2.14",
|
"@angular/forms": "^12.2.17",
|
||||||
"@angular/platform-browser": "^11.2.14",
|
"@angular/platform-browser": "^12.2.17",
|
||||||
"@angular/platform-browser-dynamic": "^11.2.14",
|
"@angular/platform-browser-dynamic": "^12.2.17",
|
||||||
"@angular/platform-server": "^11.2.14",
|
"@angular/platform-server": "^12.2.17",
|
||||||
"@angular/router": "^11.2.14",
|
"@angular/router": "^12.2.17",
|
||||||
"@simonwep/pickr": "^1.0.0-beta",
|
"@simonwep/pickr": "^1.0.0-beta",
|
||||||
"@types/hammerjs": "^2.0.45",
|
"@types/hammerjs": "^2.0.45",
|
||||||
"@types/jquery": "^3.5.29",
|
"@types/jquery": "^3.5.29",
|
||||||
@@ -44,13 +44,13 @@
|
|||||||
"type-func": "^1.0.3",
|
"type-func": "^1.0.3",
|
||||||
"unzipper": "^0.10.10",
|
"unzipper": "^0.10.10",
|
||||||
"uuid": "^3.3.2",
|
"uuid": "^3.3.2",
|
||||||
"zone.js": "~0.10.2"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~0.1102.19",
|
"@angular-devkit/build-angular": "~12.2.18",
|
||||||
"@angular/cli": "^11.2.19",
|
"@angular/cli": "^12.2.18",
|
||||||
"@angular/compiler-cli": "^11.2.14",
|
"@angular/compiler-cli": "^12.2.17",
|
||||||
"@angular/language-service": "^11.2.14",
|
"@angular/language-service": "^12.2.17",
|
||||||
"@types/jasmine": "~3.6.0",
|
"@types/jasmine": "~3.6.0",
|
||||||
"@types/jasminewd2": "~2.0.3",
|
"@types/jasminewd2": "~2.0.3",
|
||||||
"@types/node": "^12.11.1",
|
"@types/node": "^12.11.1",
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
"rxjs-tslint": "^0.1.7",
|
"rxjs-tslint": "^0.1.7",
|
||||||
"ts-node": "~7.0.0",
|
"ts-node": "~7.0.0",
|
||||||
"tslint": "~6.1.0",
|
"tslint": "~6.1.0",
|
||||||
"typescript": "4.0.8",
|
"typescript": "4.3.5",
|
||||||
"webpack": "^5.90.3"
|
"webpack": "^5.90.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,4 +20,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.
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ import 'core-js/es7/reflect';
|
|||||||
/***************************************************************************************************
|
/***************************************************************************************************
|
||||||
* 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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
"declaration": false,
|
"declaration": false,
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
|
|||||||
+1900
-1973
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user