update angular core and cli to v12

This commit is contained in:
Alex Martzios 2022-12-15 12:18:01 +02:00
parent a1dfa2e231
commit b98fe71407
5 changed files with 28 additions and 27 deletions

View File

@ -22,7 +22,6 @@
"skipTests": true "skipTests": true
}, },
"@schematics/angular:module": { "@schematics/angular:module": {
"skipTests": true
}, },
"@schematics/angular:pipe": { "@schematics/angular:pipe": {
"skipTests": true "skipTests": true
@ -35,7 +34,6 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist/graph", "outputPath": "dist/graph",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
@ -56,7 +54,13 @@
"src/assets/common-assets/common/uikit.min.js", "src/assets/common-assets/common/uikit.min.js",
"src/assets/common-assets/common/uikit-icons.min.js", "src/assets/common-assets/common/uikit-icons.min.js",
"node_modules/jquery/dist/jquery.js" "node_modules/jquery/dist/jquery.js"
] ],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"development": { "development": {
@ -64,7 +68,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,
@ -91,7 +94,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,
@ -132,7 +134,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,
@ -148,7 +149,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",

View File

@ -7,7 +7,7 @@
"build": "ng build", "build": "ng build",
"build-dev": "ng build --configuration=development", "build-dev": "ng build --configuration=development",
"build-beta": "ng build --configuration=beta", "build-beta": "ng build --configuration=beta",
"build-prod": "ng build --prod", "build-prod": "ng build --configuration production",
"webpack-bundle-analyzer": "ng build --stats-json && webpack-bundle-analyzer dist/graph/browser/stats.json --host 0.0.0.0", "webpack-bundle-analyzer": "ng build --stats-json && webpack-bundle-analyzer dist/graph/browser/stats.json --host 0.0.0.0",
"test": "ng test", "test": "ng test",
"e2e": "ng e2e", "e2e": "ng e2e",
@ -15,17 +15,17 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~11.2.14", "@angular/animations": "~12.2.17",
"@angular/cdk": "^11.2.13", "@angular/cdk": "^11.2.13",
"@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/localize": "^11.2.14", "@angular/localize": "^12.2.17",
"@angular/material": "^11.2.13", "@angular/material": "^11.2.13",
"@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/router": "~11.2.14", "@angular/router": "~12.2.17",
"clipboard": "^1.5.16", "clipboard": "^1.5.16",
"core-js": "^2.5.4", "core-js": "^2.5.4",
"express": "^4.15.2", "express": "^4.15.2",
@ -34,13 +34,13 @@
"rxjs": "^6.5.1", "rxjs": "^6.5.1",
"ts-md5": "^1.2.0", "ts-md5": "^1.2.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"zone.js": "~0.10.2" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1102.14", "@angular-devkit/build-angular": "~12.2.18",
"@angular/cli": "~11.2.14", "@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/node": "^12.11.1", "@types/node": "^12.11.1",
"@types/express": "^4.17.0", "@types/express": "^4.17.0",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
@ -56,6 +56,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.0.7" "typescript": "~4.3.5"
} }
} }

View File

@ -59,7 +59,7 @@ import '@angular/localize/init';
/*************************************************************************************************** /***************************************************************************************************
* 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,

View File

@ -8,7 +8,6 @@
"declaration": false, "declaration": false,
"module": "es2020", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2015",