Skip to content

Commit f52ca66

Browse files
authored
Upgrade to angular 12 (#42)
* removed the old ng-packagr dependency - `@angular-devkit/build-ng-packagr` is already deprecated since Angular 11, and migrated over to `@angular-devkit/build-angular` * upgrade to angular 12 - fixed the circular import during the build for the keyboard module - updated the tsconfig for prod, to partial Ivy compilation as recommended by the angular docs * bump version number
1 parent 0ad6b7f commit f52ca66

File tree

14 files changed

+9446
-11650
lines changed

14 files changed

+9446
-11650
lines changed

angular.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@
2222
"main": "src/main.ts",
2323
"polyfills": "src/polyfills.ts",
2424
"tsConfig": "tsconfig.app.json",
25-
"aot": true,
2625
"assets": [
2726
"src/favicon.ico",
2827
"src/assets"
2928
],
3029
"styles": [
3130
"src/styles.scss"
3231
],
33-
"scripts": []
32+
"scripts": [],
33+
"vendorChunk": true,
34+
"extractLicenses": false,
35+
"buildOptimizer": false,
36+
"sourceMap": true,
37+
"optimization": false,
38+
"namedChunks": true
3439
},
3540
"configurations": {
3641
"production": {
@@ -60,7 +65,8 @@
6065
}
6166
]
6267
}
63-
}
68+
},
69+
"defaultConfiguration": ""
6470
},
6571
"serve": {
6672
"builder": "@angular-devkit/build-angular:dev-server",
@@ -130,7 +136,7 @@
130136
"prefix": "tb",
131137
"architect": {
132138
"build": {
133-
"builder": "@angular-devkit/build-ng-packagr:build",
139+
"builder": "@angular-devkit/build-angular:ng-packagr",
134140
"options": {
135141
"tsConfig": "projects/angular-keyboard/tsconfig.lib.json",
136142
"project": "projects/angular-keyboard/ng-package.json"

0 commit comments

Comments
 (0)