Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ testem.log
Thumbs.db

*storybook.log

# Playwright
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
3 changes: 1 addition & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'@storybook/addon-docs'
],
framework: {
name: '@storybook/angular',
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Wilfried Lucha
Copyright (c) 2026 Wilfried Lucha

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ This project is more than just a boilerplate – it's a **production-ready found

## Features 🛠️

✅ **Latest Angular 20** – Stay up-to-date with the newest Angular features.
✅ **Latest Angular 21** – Stay up-to-date with the newest Angular features.
✅ **Angular Material** – Build beautiful, responsive UIs with Material Design.
✅ **Unit Testing with Jest** – Fast and reliable testing for your components.
✅ **End-to-End Testing with Cypress** – Ensure your app works flawlessly from start to finish.
✅ **End-to-End Testing with Playwright** – Ensure your app works flawlessly from start to finish.
✅ **Internationalization with Transloco** – Easily support multiple languages.
✅ **Auto Documentation with Compodoc** – Keep your codebase well-documented.
✅ **Component Examples with Storybook** – Showcase and test your components in isolation.
Expand Down
75 changes: 24 additions & 51 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"src/polyfills.ts"
],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css"
Expand Down Expand Up @@ -87,52 +90,10 @@
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "angular-starter:serve"
},
"configurations": {
"production": {
"devServerTarget": "angular-starter:serve:production"
}
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false
}
},
"ct": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "angular-starter:serve",
"watch": true,
"headless": false,
"testingType": "component"
},
"configurations": {
"development": {
"devServerTarget": "angular-starter:serve:development"
}
}
},
"e2e": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "angular-starter:serve",
"watch": true,
"headless": false
},
"configurations": {
"production": {
"devServerTarget": "angular-starter:serve:production"
}
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
"storybook": {
Expand All @@ -141,7 +102,12 @@
"configDir": ".storybook",
"browserTarget": "angular-starter:build",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"compodocArgs": [
"-e",
"json",
"-d",
"."
],
"port": 6006
}
},
Expand All @@ -151,15 +117,22 @@
"configDir": ".storybook",
"browserTarget": "angular-starter:build",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"compodocArgs": [
"-e",
"json",
"-d",
"."
],
"outputDir": "storybook-static"
}
}
}
}
},
"cli": {
"schematicCollections": ["@cypress/schematic", "@schematics/angular"]
"schematicCollections": [
"@schematics/angular"
]
},
"schematics": {
"@schematics/angular:component": {
Expand Down Expand Up @@ -187,4 +160,4 @@
"typeSeparator": "."
}
}
}
}
13 changes: 9 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"name": "Angular 18 Starter",
"description": "Angular 18 Starter project with Material, Transloco, Jest & Compodoc",
"name": "Angular 21 Starter",
"description": "Angular 21 Starter project with Material, Transloco, Jest & Compodoc",
"repository": "https://github.com/wlucha/angular-starter",
"keywords": ["angular", "jest", "compodoc", "transloco"]
}
"keywords": [
"angular",
"jest",
"compodoc",
"transloco"
]
}
15 changes: 0 additions & 15 deletions cypress.config.ts

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/e2e/spec.cy.ts

This file was deleted.

4 changes: 0 additions & 4 deletions cypress/fixtures/example.json

This file was deleted.

43 changes: 0 additions & 43 deletions cypress/support/commands.ts

This file was deleted.

12 changes: 0 additions & 12 deletions cypress/support/component-index.html

This file was deleted.

39 changes: 0 additions & 39 deletions cypress/support/component.ts

This file was deleted.

17 changes: 0 additions & 17 deletions cypress/support/e2e.ts

This file was deleted.

8 changes: 0 additions & 8 deletions cypress/tsconfig.json

This file was deleted.

11 changes: 11 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ import type { Config } from 'jest';
const jestConfig: Config = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
testPathIgnorePatterns: ['/node_modules/', '/tests/'],
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$|@jsverse)'],
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
],
},
};

export default jestConfig;
Loading