Skip to content

Commit 66794d1

Browse files
committed
chore: update angular quickstart to Angular 21 and use signals + zoneless mount handler
1 parent 441afa2 commit 66794d1

17 files changed

+6269
-6299
lines changed

angular/my-awesome-app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ yarn-error.log
3636
/libpeerconnection.log
3737
testem.log
3838
/typings
39+
__screenshots__/
3940

4041
# System files
4142
.DS_Store

angular/my-awesome-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MyAwesomeApp
22

3-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.1.
3+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.0.0.
44

55
## Development server
66

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4+
"cli": {
5+
"packageManager": "npm"
6+
},
47
"newProjectRoot": "projects",
58
"projects": {
69
"my-awesome-app": {
@@ -11,14 +14,9 @@
1114
"prefix": "app",
1215
"architect": {
1316
"build": {
14-
"builder": "@angular-devkit/build-angular:application",
17+
"builder": "@angular/build:application",
1518
"options": {
16-
"outputPath": "dist/my-awesome-app",
17-
"index": "src/index.html",
1819
"browser": "src/main.ts",
19-
"polyfills": [
20-
"zone.js"
21-
],
2220
"tsConfig": "tsconfig.app.json",
2321
"assets": [
2422
{
@@ -28,8 +26,7 @@
2826
],
2927
"styles": [
3028
"src/styles.css"
31-
],
32-
"scripts": []
29+
]
3330
},
3431
"configurations": {
3532
"production": {
@@ -56,7 +53,7 @@
5653
"defaultConfiguration": "production"
5754
},
5855
"serve": {
59-
"builder": "@angular-devkit/build-angular:dev-server",
56+
"builder": "@angular/build:dev-server",
6057
"configurations": {
6158
"production": {
6259
"buildTarget": "my-awesome-app:build:production"
@@ -67,33 +64,10 @@
6764
},
6865
"defaultConfiguration": "development"
6966
},
70-
"extract-i18n": {
71-
"builder": "@angular-devkit/build-angular:extract-i18n"
72-
},
7367
"test": {
74-
"builder": "@angular-devkit/build-angular:karma",
75-
"options": {
76-
"polyfills": [
77-
"zone.js",
78-
"zone.js/testing"
79-
],
80-
"tsConfig": "tsconfig.spec.json",
81-
"assets": [
82-
{
83-
"glob": "**/*",
84-
"input": "public"
85-
}
86-
],
87-
"styles": [
88-
"src/styles.css"
89-
],
90-
"scripts": []
91-
}
68+
"builder": "@angular/build:unit-test"
9269
}
9370
}
9471
}
95-
},
96-
"cli": {
97-
"analytics": false
9872
}
9973
}

angular/my-awesome-app/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import './commands'
1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')
2121

22-
import { mount } from 'cypress/angular'
22+
import { mount } from 'cypress/angular-zoneless'
2323

2424
// Augment the Cypress namespace to include type definitions for
2525
// your custom command.

angular/my-awesome-app/karma.conf.js

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

0 commit comments

Comments
 (0)