Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit d6b5e6b

Browse files
authored
feat: upgrade to angular 17 (#1008)
BREAKING CHANGE: requires angular 17, typescript 5.2
1 parent e3e4b74 commit d6b5e6b

File tree

12 files changed

+4752
-3397
lines changed

12 files changed

+4752
-3397
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 20
@@ -36,7 +36,9 @@ jobs:
3636
pull-requests: write # to be able to comment on released pull requests
3737
id-token: write # to enable use of OIDC for npm provenance
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
4042
- uses: actions/setup-node@v3
4143
with:
4244
node-version: 20

angular.json

Lines changed: 21 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -18,108 +18,61 @@
1818
"prefix": "app",
1919
"architect": {
2020
"build": {
21-
"builder": "@angular-devkit/build-angular:browser",
21+
"builder": "@angular-devkit/build-angular:application",
2222
"options": {
2323
"outputPath": "dist",
2424
"index": "src/index.html",
25-
"main": "src/main.ts",
26-
"polyfills": "src/polyfills.ts",
25+
"browser": "src/main.ts",
26+
"polyfills": ["zone.js"],
2727
"tsConfig": "tsconfig.app.json",
28-
"assets": [
29-
"src/favicon.ico",
30-
"src/assets"
31-
],
32-
"styles": [
33-
"src/styles.scss"
34-
],
35-
"scripts": [],
36-
"vendorChunk": true,
37-
"extractLicenses": false,
38-
"buildOptimizer": false,
39-
"sourceMap": true,
40-
"optimization": false,
41-
"namedChunks": true
28+
"assets": ["src/favicon.ico", "src/assets"],
29+
"styles": ["src/styles.scss"],
30+
"scripts": []
4231
},
4332
"configurations": {
4433
"production": {
45-
"fileReplacements": [
46-
{
47-
"replace": "src/environments/environment.ts",
48-
"with": "src/environments/environment.prod.ts"
49-
}
50-
],
51-
"optimization": {
52-
"scripts": true,
53-
"fonts": {
54-
"inline": true
55-
},
56-
"styles": {
57-
"minify": true,
58-
"inlineCritical": false
59-
}
60-
},
61-
"outputHashing": "all",
62-
"sourceMap": false,
63-
"namedChunks": false,
64-
"extractLicenses": true,
65-
"vendorChunk": false,
66-
"buildOptimizer": true,
67-
"budgets": [
68-
{
69-
"type": "initial",
70-
"maximumWarning": "500kb",
71-
"maximumError": "1mb"
72-
},
73-
{
74-
"type": "anyComponentStyle",
75-
"maximumWarning": "2kb",
76-
"maximumError": "4kb"
77-
}
78-
]
34+
"outputHashing": "all"
35+
},
36+
"development": {
37+
"optimization": false,
38+
"extractLicenses": false,
39+
"sourceMap": true
7940
}
80-
}
41+
},
42+
"defaultConfiguration": "production"
8143
},
8244
"serve": {
8345
"builder": "@angular-devkit/build-angular:dev-server",
8446
"options": {
85-
"browserTarget": "ngx-toastr:build"
47+
"buildTarget": "ngx-toastr:build"
8648
},
8749
"configurations": {
8850
"production": {
89-
"browserTarget": "ngx-toastr:build:production"
51+
"buildTarget": "ngx-toastr:build:production"
9052
}
9153
}
9254
},
9355
"extract-i18n": {
9456
"builder": "@angular-devkit/build-angular:extract-i18n",
9557
"options": {
96-
"browserTarget": "ngx-toastr:build"
58+
"buildTarget": "ngx-toastr:build"
9759
}
9860
},
9961
"test": {
10062
"builder": "@angular-devkit/build-angular:karma",
10163
"options": {
102-
"main": "src/test.ts",
103-
"polyfills": "src/polyfills.ts",
64+
"polyfills": ["zone.js", "zone.js/testing"],
10465
"tsConfig": "tsconfig.spec.json",
10566
"karmaConfig": "karma.conf.js",
106-
"assets": [
107-
"src/favicon.ico",
108-
"src/assets"
109-
],
110-
"styles": [
111-
"src/styles.scss"
112-
],
67+
"assets": ["src/favicon.ico", "src/assets"],
68+
"styles": ["src/styles.scss"],
11369
"scripts": []
11470
}
11571
},
11672
"lint": {
11773
"builder": "@angular-eslint/builder:lint",
11874
"options": {
119-
"lintFilePatterns": [
120-
"src/**/*.ts",
121-
"src/**/*.html"
122-
]
75+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
12376
}
12477
}
12578
}

0 commit comments

Comments
 (0)