Skip to content

Commit 79ddd47

Browse files
dirkluijkDirk Luijk
andauthored
feat: add support for Angular 12
Co-authored-by: Dirk Luijk <[email protected]>
1 parent 8954cf0 commit 79ddd47

File tree

5 files changed

+2359
-2764
lines changed

5 files changed

+2359
-2764
lines changed

angular.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,20 @@
6060
"main": "projects/demo/src/main.ts",
6161
"polyfills": "projects/demo/src/polyfills.ts",
6262
"tsConfig": "projects/demo/tsconfig.app.json",
63-
"aot": true,
6463
"assets": [
6564
"projects/demo/src/favicon.ico",
6665
"projects/demo/src/assets"
6766
],
6867
"styles": [
6968
"projects/demo/src/styles.scss"
7069
],
71-
"scripts": []
70+
"scripts": [],
71+
"vendorChunk": true,
72+
"extractLicenses": false,
73+
"buildOptimizer": false,
74+
"sourceMap": true,
75+
"optimization": false,
76+
"namedChunks": true
7277
},
7378
"configurations": {
7479
"production": {
@@ -98,7 +103,8 @@
98103
}
99104
]
100105
}
101-
}
106+
},
107+
"defaultConfiguration": ""
102108
},
103109
"serve": {
104110
"builder": "@angular-devkit/build-angular:dev-server",

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"ng": "ng",
1212
"commit": "git-cz",
1313
"start": "ng serve demo",
14-
"build": "ng build --prod && yarn copy:readme",
14+
"build": "ng build --configuration production && yarn copy:readme",
1515
"test": "ng test",
1616
"lint": "ng lint",
1717
"contributors:add": "all-contributors add",
@@ -21,25 +21,25 @@
2121
},
2222
"private": false,
2323
"dependencies": {
24-
"@angular/animations": "~11.2.8",
25-
"@angular/common": "~11.2.8",
26-
"@angular/compiler": "~11.2.8",
27-
"@angular/core": "~11.2.8",
28-
"@angular/forms": "~11.2.8",
29-
"@angular/platform-browser": "~11.2.8",
30-
"@angular/platform-browser-dynamic": "~11.2.8",
31-
"@angular/router": "~11.2.8",
24+
"@angular/animations": "~12.1.1",
25+
"@angular/common": "~12.1.1",
26+
"@angular/compiler": "~12.1.1",
27+
"@angular/core": "~12.1.1",
28+
"@angular/forms": "~12.1.1",
29+
"@angular/platform-browser": "~12.1.1",
30+
"@angular/platform-browser-dynamic": "~12.1.1",
31+
"@angular/router": "~12.1.1",
3232
"rxjs": "~6.6.2",
3333
"rxjs-etc": "^10.4.0",
34-
"tslib": "^2.0.0",
35-
"zone.js": "~0.10.2"
34+
"tslib": "^2.3.0",
35+
"zone.js": "~0.11.4"
3636
},
3737
"devDependencies": {
3838
"@angular-builders/jest": "^10.0.0",
39-
"@angular-devkit/build-angular": "~0.1102.7",
40-
"@angular/cli": "~11.2.7",
41-
"@angular/compiler-cli": "~11.2.8",
42-
"@angular/language-service": "~11.2.8",
39+
"@angular-devkit/build-angular": "~12.1.1",
40+
"@angular/cli": "~12.1.1",
41+
"@angular/compiler-cli": "~12.1.1",
42+
"@angular/language-service": "~12.1.1",
4343
"@commitlint/cli": "^8.1.0",
4444
"@commitlint/config-conventional": "^8.1.0",
4545
"@dirkluijk/observable-matchers": "^0.3.2",
@@ -53,12 +53,12 @@
5353
"cz-conventional-changelog": "^3.0.2",
5454
"husky": "^3.0.3",
5555
"jest": "^26.0.0",
56-
"ng-packagr": "^11.2.4",
56+
"ng-packagr": "^12.1.0",
5757
"protractor": "~7.0.0",
5858
"standard-version": "^9.0.0",
5959
"ts-node": "~7.0.0",
6060
"tslint": "~6.1.0",
61-
"typescript": "~4.1.5"
61+
"typescript": "~4.3.5"
6262
},
6363
"resolutions": {
6464
"webpack": "^5.0.0"
@@ -73,4 +73,4 @@
7373
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
7474
}
7575
}
76-
}
76+
}

projects/demo/src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export const environment = {
1313
* This import should be commented out in production mode because it will have a negative impact
1414
* on performance if an error is thrown.
1515
*/
16-
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
16+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

projects/demo/src/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
/***************************************************************************************************
5757
* Zone JS is required by default for Angular itself.
5858
*/
59-
import 'zone.js/dist/zone'; // Included with Angular CLI.
59+
import 'zone.js'; // Included with Angular CLI.
6060

6161

6262
/***************************************************************************************************

0 commit comments

Comments
 (0)