Skip to content

Commit 585ef5c

Browse files
chore: npx ng update @angular/cli@12
1 parent 0909947 commit 585ef5c

File tree

6 files changed

+327
-509
lines changed

6 files changed

+327
-509
lines changed

angular.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14-
"aot": true,
1514
"outputPath": "dist",
1615
"index": "src/index.html",
1716
"main": "src/main.ts",
@@ -25,7 +24,13 @@
2524
"styles": [
2625
"src/styles.css"
2726
],
28-
"scripts": []
27+
"scripts": [],
28+
"vendorChunk": true,
29+
"extractLicenses": false,
30+
"buildOptimizer": false,
31+
"sourceMap": true,
32+
"optimization": false,
33+
"namedChunks": true
2934
},
3035
"configurations": {
3136
"production": {
@@ -39,7 +44,6 @@
3944
"outputHashing": "all",
4045
"sourceMap": false,
4146
"namedChunks": false,
42-
"aot": true,
4347
"extractLicenses": true,
4448
"vendorChunk": false,
4549
"buildOptimizer": true,
@@ -50,7 +54,8 @@
5054
}
5155
]
5256
}
53-
}
57+
},
58+
"defaultConfiguration": ""
5459
},
5560
"serve": {
5661
"builder": "@angular-devkit/build-angular:dev-server",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"ng": "ng",
77
"start": "ng serve --port 4000",
8-
"build": "ng build --prod",
8+
"build": "ng build --configuration production",
99
"test": "run-s e2e",
1010
"lint": "ng lint",
1111
"e2e": "run-p -r start cypress",
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@angular-devkit/build-angular": "12",
41-
"@angular/cli": "11.2.6",
41+
"@angular/cli": "12.2.13",
4242
"@angular/compiler-cli": "12.2.13",
4343
"@angular/language-service": "12.2.13",
4444
"@types/angular": "^1.8.1",
@@ -49,7 +49,7 @@
4949
"cypress": "4.5.0",
5050
"jasmine-core": "~3.6.0",
5151
"jasmine-spec-reporter": "~5.0.0",
52-
"karma": "~5.0.0",
52+
"karma": "~6.3.9",
5353
"karma-chrome-launcher": "~3.1.0",
5454
"karma-coverage-istanbul-reporter": "~3.0.2",
5555
"karma-jasmine": "~4.0.0",

src/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/***************************************************************************************************
1313
* Zone JS is required by default for Angular itself.
1414
*/
15-
import 'zone.js/dist/zone'; // Included with Angular CLI.
15+
import 'zone.js'; // Included with Angular CLI.
1616

1717

1818

src/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import 'zone.js/dist/zone-testing';
3+
import 'zone.js/testing';
44
import { getTestBed } from '@angular/core/testing';
55
import {
66
BrowserDynamicTestingModule,

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"sourceMap": true,
88
"declaration": false,
99
"moduleResolution": "node",
10-
"emitDecoratorMetadata": true,
1110
"experimentalDecorators": true,
1211
"target": "es2015",
1312
"typeRoots": [

0 commit comments

Comments
 (0)