Skip to content

Commit db78173

Browse files
committed
chore: update to ng 16
1 parent 37db046 commit db78173

8 files changed

Lines changed: 2497 additions & 1743 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node-version: [14.x]
11+
node-version: [18.x]
1212
steps:
1313
- name: Checkout Repo
1414
uses: actions/checkout@v2

angular.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"outputPath": "dist/angular-split-app",
2121
"index": "src/index.html",
2222
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
23+
"polyfills": ["zone.js"],
2424
"tsConfig": "src/tsconfig.app.json",
2525
"assets": ["src/favicon.ico", "src/assets"],
2626
"styles": ["./node_modules/bootstrap/dist/css/bootstrap.min.css", "src/styles.scss"],
@@ -35,30 +35,25 @@
3535
},
3636
"configurations": {
3737
"production": {
38-
"fileReplacements": [
39-
{
40-
"replace": "src/environments/environment.ts",
41-
"with": "src/environments/environment.prod.ts"
42-
}
43-
],
44-
"optimization": true,
45-
"outputHashing": "all",
46-
"sourceMap": false,
47-
"namedChunks": false,
48-
"aot": true,
49-
"extractLicenses": true,
50-
"vendorChunk": false,
51-
"buildOptimizer": true,
5238
"budgets": [
5339
{
54-
"type": "initial",
55-
"maximumWarning": "2mb",
56-
"maximumError": "5mb"
40+
"type": "anyComponentStyle",
41+
"maximumWarning": "2kb",
42+
"maximumError": "4kb"
5743
}
58-
]
44+
],
45+
"outputHashing": "all"
46+
},
47+
"development": {
48+
"buildOptimizer": false,
49+
"optimization": false,
50+
"vendorChunk": true,
51+
"extractLicenses": false,
52+
"sourceMap": true,
53+
"namedChunks": true
5954
}
6055
},
61-
"defaultConfiguration": ""
56+
"defaultConfiguration": "production"
6257
},
6358
"serve": {
6459
"builder": "@angular-devkit/build-angular:dev-server",

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
},
2626
"private": true,
2727
"dependencies": {
28-
"@angular/animations": "^15.2.0",
29-
"@angular/common": "^15.2.0",
30-
"@angular/compiler": "^15.2.0",
31-
"@angular/core": "^15.2.0",
32-
"@angular/forms": "^15.2.0",
33-
"@angular/platform-browser": "^15.2.0",
34-
"@angular/platform-browser-dynamic": "^15.2.0",
35-
"@angular/router": "^15.2.0",
28+
"@angular/animations": "^16.2.2",
29+
"@angular/common": "^16.2.2",
30+
"@angular/compiler": "^16.2.2",
31+
"@angular/core": "^16.2.2",
32+
"@angular/forms": "^16.2.2",
33+
"@angular/platform-browser": "^16.2.2",
34+
"@angular/platform-browser-dynamic": "^16.2.2",
35+
"@angular/router": "^16.2.2",
3636
"angular-cli-ghpages": "^1.0.5",
3737
"bootstrap": "5.2.3",
3838
"core-js": "3.28.0",
@@ -44,22 +44,22 @@
4444
"prettier": "^2.8.4",
4545
"rxjs": "7.8.0",
4646
"tsickle": "^0.46.3",
47-
"zone.js": "~0.12.0"
47+
"zone.js": "~0.13.1"
4848
},
4949
"devDependencies": {
50-
"@angular-devkit/architect": "^0.1502.0",
51-
"@angular-devkit/build-angular": "^15.2.0",
52-
"@angular-devkit/core": "^15.2.0",
53-
"@angular-devkit/schematics": "^15.2.0",
54-
"@angular/cli": "^15.2.0",
55-
"@angular/compiler-cli": "^15.2.0",
56-
"@angular/language-service": "^15.2.0",
50+
"@angular-devkit/architect": "^0.1602.0",
51+
"@angular-devkit/build-angular": "^16.2.0",
52+
"@angular-devkit/core": "^16.2.0",
53+
"@angular-devkit/schematics": "^16.2.0",
54+
"@angular/cli": "^16.2.0",
55+
"@angular/compiler-cli": "^16.2.2",
56+
"@angular/language-service": "^16.2.2",
5757
"@types/marked": "^4.0.8",
5858
"@types/node": "18.14.0",
5959
"codelyzer": "^6.0.2",
6060
"concurrently": "7.6.0",
6161
"cypress": "12.6.0",
62-
"ng-packagr": "^15.1.2",
62+
"ng-packagr": "^16.2.1",
6363
"npm-run-all": "4.1.5",
6464
"postcss": "8.4.21",
6565
"serve": "^14.2.0",
@@ -74,4 +74,4 @@
7474
"prettier --write"
7575
]
7676
}
77-
}
77+
}

src/environments/environment.prod.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/environments/environment.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import { enableProdMode } from '@angular/core'
21
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
32

43
import { AppModule } from './app/app.module'
5-
import { environment } from './environments/environment'
6-
7-
if (environment.production) {
8-
enableProdMode()
9-
}
104

115
platformBrowserDynamic()
126
.bootstrapModule(AppModule)

src/polyfills.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)