Skip to content

Commit 8e861a9

Browse files
Birrer, Iwanibirrer
authored andcommitted
chore: upgrade angular example app to angular 20
1 parent 4400029 commit 8e861a9

64 files changed

Lines changed: 11957 additions & 18851 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version: 22
2222
registry-url: 'https://registry.npmjs.org'
2323
cache: 'npm'
2424
env:

.github/workflows/insider-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 20
14+
node-version: 22
1515
registry-url: 'https://registry.npmjs.org'
1616
cache: 'npm'
1717
env:

.github/workflows/pkg.pr.new.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 20
20+
node-version: 22
2121
registry-url: 'https://registry.npmjs.org'
2222
cache: 'npm'
2323
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20
22+
node-version: 22
2323
registry-url: 'https://registry.npmjs.org'
2424
cache: 'npm'
2525
env:

docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6161
- Upgraded Stencil to latest release and upgraded Vue output target
6262
- Upgraded React output target to version 1.0.0
6363
- Upgraded Angular output target to version 0.10.2
64+
- Upgraded Angular Demo App to version 20. Rewritten with
65+
[standalone bootstrapping](https://angular.dev/reference/migrations/standalone#switch-to-standalone-bootstrapping-api),
66+
signals, new template syntax, etc.
6467

6568
## 4.3.2 - 2025-02-13
6669

examples/angular/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
44
/dist

examples/angular/README.md

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

examples/angular/angular.json

Lines changed: 21 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,93 +3,69 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"demo-app-angular": {
6+
"angular": {
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
10-
"style": "scss"
10+
"skipTests": true,
11+
"changeDetection": "OnPush",
12+
"displayBlock": true
1113
}
1214
},
1315
"root": "",
1416
"sourceRoot": "src",
1517
"prefix": "app",
1618
"architect": {
1719
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
20+
"builder": "@angular/build:application",
1921
"options": {
20-
"outputPath": "dist/demo-app-angular",
21-
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": ["zone.js"],
22+
"browser": "src/main.ts",
2423
"tsConfig": "tsconfig.app.json",
25-
"inlineStyleLanguage": "scss",
26-
"assets": ["src/favicon.ico", "src/assets"],
27-
"styles": ["src/styles.scss"],
28-
"scripts": []
24+
"assets": [
25+
{
26+
"glob": "**/*",
27+
"input": "public"
28+
}
29+
],
30+
"styles": ["src/styles.css"]
2931
},
3032
"configurations": {
3133
"production": {
3234
"budgets": [
3335
{
3436
"type": "initial",
35-
"maximumWarning": "500kb",
36-
"maximumError": "1mb"
37+
"maximumWarning": "500kB",
38+
"maximumError": "1MB"
3739
},
3840
{
3941
"type": "anyComponentStyle",
40-
"maximumWarning": "2kb",
41-
"maximumError": "4kb"
42+
"maximumWarning": "4kB",
43+
"maximumError": "8kB"
4244
}
4345
],
4446
"outputHashing": "all"
4547
},
4648
"development": {
47-
"buildOptimizer": false,
4849
"optimization": false,
49-
"vendorChunk": true,
5050
"extractLicenses": false,
51-
"sourceMap": true,
52-
"namedChunks": true
51+
"sourceMap": true
5352
}
5453
},
5554
"defaultConfiguration": "production"
5655
},
5756
"serve": {
58-
"builder": "@angular-devkit/build-angular:dev-server",
57+
"builder": "@angular/build:dev-server",
5958
"configurations": {
6059
"production": {
61-
"browserTarget": "demo-app-angular:build:production"
60+
"buildTarget": "angular:build:production"
6261
},
6362
"development": {
64-
"browserTarget": "demo-app-angular:build:development"
63+
"buildTarget": "angular:build:development"
6564
}
6665
},
6766
"defaultConfiguration": "development"
68-
},
69-
"extract-i18n": {
70-
"builder": "@angular-devkit/build-angular:extract-i18n",
71-
"options": {
72-
"browserTarget": "demo-app-angular:build"
73-
}
74-
},
75-
"test": {
76-
"builder": "@angular-devkit/build-angular:karma",
77-
"options": {
78-
"polyfills": ["zone.js", "zone.js/testing"],
79-
"tsConfig": "tsconfig.spec.json",
80-
"inlineStyleLanguage": "scss",
81-
"assets": ["src/favicon.ico", "src/assets"],
82-
"styles": ["src/styles.scss"],
83-
"scripts": []
84-
}
8567
}
8668
}
8769
}
88-
},
89-
"cli": {
90-
"analytics": false,
91-
"cache": {
92-
"enabled": false
93-
}
9470
}
9571
}

examples/angular/package.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,25 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --base-href /six-webcomponents/demo/angular/",
8-
"watch": "ng build --watch --configuration development",
9-
"test": "ng test"
7+
"build": "ng build --base-href /six-webcomponents/demo/angular/"
108
},
119
"private": true,
1210
"dependencies": {
13-
"@angular/animations": "~16.2.12",
14-
"@angular/common": "~16.2.12",
15-
"@angular/compiler": "~16.2.12",
16-
"@angular/core": "~16.2.12",
17-
"@angular/forms": "~16.2.12",
18-
"@angular/platform-browser": "~16.2.12",
19-
"@angular/platform-browser-dynamic": "~16.2.12",
20-
"@angular/router": "~16.2.12",
21-
"@six-group/ui-library": "*",
22-
"@six-group/ui-library-angular": "*",
23-
"rxjs": "7.8.1",
11+
"@angular/common": "^20.0.0",
12+
"@angular/compiler": "^20.0.0",
13+
"@angular/core": "^20.0.0",
14+
"@angular/forms": "^20.0.0",
15+
"@angular/platform-browser": "^20.0.0",
16+
"@angular/router": "^20.0.0",
17+
"rxjs": "~7.8.2",
2418
"tslib": "^2.3.0",
25-
"zone.js": "~0.13.3"
19+
"@six-group/ui-library": "*",
20+
"@six-group/ui-library-angular": "*"
2621
},
2722
"devDependencies": {
28-
"@angular-devkit/build-angular": "~16.2.10",
29-
"@angular/cli": "~16.2.10",
30-
"@angular/compiler-cli": "~16.2.12"
23+
"@angular/build": "^20.0.2",
24+
"@angular/cli": "^20.0.2",
25+
"@angular/compiler-cli": "^20.0.0",
26+
"typescript": "~5.8.2"
3127
}
3228
}
14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)