Skip to content

Commit dc6b339

Browse files
authored
chore: add Angular zoneless app and remove Angular module app (#59)
* commit to see diff further get app working WIP: play around with zoneless change detection rebase in * delete the angular module app * update the github projects for automated testing * chore: update examples to signals * chore: update angular projects to use 15.8.0 * chore: update next 16 to contain bindings fix * chore: add cypress component testing file to angular tsconfig * chore: configure e2e testing
1 parent df4a07c commit dc6b339

File tree

72 files changed

+11895
-10541
lines changed

Some content is hidden

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

72 files changed

+11895
-10541
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
matrix:
1717
project:
1818
[
19-
"angular",
2019
"angular-standalone",
20+
"angular-zoneless",
2121
"react-next15-ts",
2222
"react-next16-ts",
2323
"react-vite-ts",

angular-standalone/package-lock.json

Lines changed: 41 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-standalone/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@angular/compiler-cli": "^20.1.6",
3131
"@tailwindcss/postcss": "^4.1.11",
3232
"@types/jasmine": "~5.1.0",
33-
"cypress": "^15.0.0",
33+
"cypress": "^15.8.0",
3434
"jasmine-core": "~5.8.0",
3535
"karma": "~6.4.0",
3636
"karma-chrome-launcher": "~3.2.0",
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-zoneless/.postcssrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"@tailwindcss/postcss": {}
4+
}
5+
}

angular-zoneless/README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Angular21
2+
3+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.0.0.
4+
5+
## Development server
6+
7+
To start a local development server, run:
8+
9+
```bash
10+
ng serve
11+
```
12+
13+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
14+
15+
## Code scaffolding
16+
17+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
18+
19+
```bash
20+
ng generate component component-name
21+
```
22+
23+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
24+
25+
```bash
26+
ng generate --help
27+
```
28+
29+
## Building
30+
31+
To build the project run:
32+
33+
```bash
34+
ng build
35+
```
36+
37+
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
38+
39+
## Running unit tests
40+
41+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
42+
43+
```bash
44+
ng test
45+
```
46+
47+
## Running end-to-end tests
48+
49+
For end-to-end (e2e) testing, run:
50+
51+
```bash
52+
ng e2e
53+
```
54+
55+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
56+
57+
## Additional Resources
58+
59+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

angular-zoneless/angular.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"cli": {
5+
"packageManager": "npm",
6+
"analytics": "bdc9e80b-e667-4f89-b823-f933b90f9ea2"
7+
},
8+
"newProjectRoot": "projects",
9+
"projects": {
10+
"angular-zoneless": {
11+
"projectType": "application",
12+
"schematics": {},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular/build:application",
19+
"options": {
20+
"browser": "src/main.ts",
21+
"tsConfig": "tsconfig.app.json",
22+
"assets": [
23+
{
24+
"glob": "**/*",
25+
"input": "public"
26+
}
27+
],
28+
"styles": [
29+
"src/styles.css"
30+
]
31+
},
32+
"configurations": {
33+
"production": {
34+
"budgets": [
35+
{
36+
"type": "initial",
37+
"maximumWarning": "500kB",
38+
"maximumError": "1MB"
39+
},
40+
{
41+
"type": "anyComponentStyle",
42+
"maximumWarning": "4kB",
43+
"maximumError": "8kB"
44+
}
45+
],
46+
"outputHashing": "all"
47+
},
48+
"development": {
49+
"optimization": false,
50+
"extractLicenses": false,
51+
"sourceMap": true
52+
}
53+
},
54+
"defaultConfiguration": "production"
55+
},
56+
"serve": {
57+
"builder": "@angular/build:dev-server",
58+
"configurations": {
59+
"production": {
60+
"buildTarget": "angular-zoneless:build:production"
61+
},
62+
"development": {
63+
"buildTarget": "angular-zoneless:build:development"
64+
}
65+
},
66+
"defaultConfiguration": "development"
67+
},
68+
"test": {
69+
"builder": "@angular/build:unit-test"
70+
}
71+
}
72+
}
73+
}
74+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ export default defineConfig({
55
devServer: {
66
framework: "angular",
77
bundler: "webpack",
8-
webpackConfig: { stats: "errors-only" }, // see issue https://github.com/cypress-io/cypress/issues/26456
98
},
109
specPattern: "**/*.cy.ts",
1110
},
11+
1212
e2e: {
13-
supportFile: false,
1413
setupNodeEvents(on, config) {
1514
// implement node event listeners here
1615
},

0 commit comments

Comments
 (0)