Skip to content

Commit 5f428a5

Browse files
authored
Merge pull request #41 from wlucha/ng-21-upgrade
Angular 21 Upgrade & Playwright Support
2 parents 1856147 + 3ce9fc3 commit 5f428a5

25 files changed

Lines changed: 13023 additions & 22065 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,11 @@ testem.log
4949
Thumbs.db
5050

5151
*storybook.log
52+
53+
# Playwright
54+
node_modules/
55+
/test-results/
56+
/playwright-report/
57+
/blob-report/
58+
/playwright/.cache/
59+
/playwright/.auth/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.storybook/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ const config: StorybookConfig = {
44
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
55
addons: [
66
'@storybook/addon-onboarding',
7-
'@storybook/addon-essentials',
87
'@chromatic-com/storybook',
9-
'@storybook/addon-interactions',
8+
'@storybook/addon-docs'
109
],
1110
framework: {
1211
name: '@storybook/angular',

LICENSE

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

3-
Copyright (c) 2025 Wilfried Lucha
3+
Copyright (c) 2026 Wilfried Lucha
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ This project is more than just a boilerplate – it's a **production-ready found
99

1010
## Features 🛠️
1111

12-
**Latest Angular 20** – Stay up-to-date with the newest Angular features.
12+
**Latest Angular 21** – Stay up-to-date with the newest Angular features.
1313
**Angular Material** – Build beautiful, responsive UIs with Material Design.
1414
**Unit Testing with Jest** – Fast and reliable testing for your components.
15-
**End-to-End Testing with Cypress** – Ensure your app works flawlessly from start to finish.
15+
**End-to-End Testing with Playwright** – Ensure your app works flawlessly from start to finish.
1616
**Internationalization with Transloco** – Easily support multiple languages.
1717
**Auto Documentation with Compodoc** – Keep your codebase well-documented.
1818
**Component Examples with Storybook** – Showcase and test your components in isolation.

angular.json

Lines changed: 24 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
"src/polyfills.ts"
2626
],
2727
"tsConfig": "tsconfig.app.json",
28-
"assets": ["src/favicon.ico", "src/assets"],
28+
"assets": [
29+
"src/favicon.ico",
30+
"src/assets"
31+
],
2932
"styles": [
3033
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
3134
"src/styles.css"
@@ -87,52 +90,10 @@
8790
"lint": {
8891
"builder": "@angular-eslint/builder:lint",
8992
"options": {
90-
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
91-
}
92-
},
93-
"cypress-run": {
94-
"builder": "@cypress/schematic:cypress",
95-
"options": {
96-
"devServerTarget": "angular-starter:serve"
97-
},
98-
"configurations": {
99-
"production": {
100-
"devServerTarget": "angular-starter:serve:production"
101-
}
102-
}
103-
},
104-
"cypress-open": {
105-
"builder": "@cypress/schematic:cypress",
106-
"options": {
107-
"watch": true,
108-
"headless": false
109-
}
110-
},
111-
"ct": {
112-
"builder": "@cypress/schematic:cypress",
113-
"options": {
114-
"devServerTarget": "angular-starter:serve",
115-
"watch": true,
116-
"headless": false,
117-
"testingType": "component"
118-
},
119-
"configurations": {
120-
"development": {
121-
"devServerTarget": "angular-starter:serve:development"
122-
}
123-
}
124-
},
125-
"e2e": {
126-
"builder": "@cypress/schematic:cypress",
127-
"options": {
128-
"devServerTarget": "angular-starter:serve",
129-
"watch": true,
130-
"headless": false
131-
},
132-
"configurations": {
133-
"production": {
134-
"devServerTarget": "angular-starter:serve:production"
135-
}
93+
"lintFilePatterns": [
94+
"src/**/*.ts",
95+
"src/**/*.html"
96+
]
13697
}
13798
},
13899
"storybook": {
@@ -141,7 +102,12 @@
141102
"configDir": ".storybook",
142103
"browserTarget": "angular-starter:build",
143104
"compodoc": true,
144-
"compodocArgs": ["-e", "json", "-d", "."],
105+
"compodocArgs": [
106+
"-e",
107+
"json",
108+
"-d",
109+
"."
110+
],
145111
"port": 6006
146112
}
147113
},
@@ -151,15 +117,22 @@
151117
"configDir": ".storybook",
152118
"browserTarget": "angular-starter:build",
153119
"compodoc": true,
154-
"compodocArgs": ["-e", "json", "-d", "."],
120+
"compodocArgs": [
121+
"-e",
122+
"json",
123+
"-d",
124+
"."
125+
],
155126
"outputDir": "storybook-static"
156127
}
157128
}
158129
}
159130
}
160131
},
161132
"cli": {
162-
"schematicCollections": ["@cypress/schematic", "@schematics/angular"]
133+
"schematicCollections": [
134+
"@schematics/angular"
135+
]
163136
},
164137
"schematics": {
165138
"@schematics/angular:component": {
@@ -187,4 +160,4 @@
187160
"typeSeparator": "."
188161
}
189162
}
190-
}
163+
}

app.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
2-
"name": "Angular 18 Starter",
3-
"description": "Angular 18 Starter project with Material, Transloco, Jest & Compodoc",
2+
"name": "Angular 21 Starter",
3+
"description": "Angular 21 Starter project with Material, Transloco, Jest & Compodoc",
44
"repository": "https://github.com/wlucha/angular-starter",
5-
"keywords": ["angular", "jest", "compodoc", "transloco"]
6-
}
5+
"keywords": [
6+
"angular",
7+
"jest",
8+
"compodoc",
9+
"transloco"
10+
]
11+
}

cypress.config.ts

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

cypress/e2e/spec.cy.ts

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

cypress/fixtures/example.json

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

0 commit comments

Comments
 (0)