ng-create-project
Scaffold an Angular 21+ app or workspace with strict TypeScript, Vitest and ESLint/Prettier. Use when starting a new Angular project.
Files5
View on GitHubSKILL.md.claude/skills/ng-create-project/SKILL.md
GitHubScaffold a new Angular 21+ project with a production-ready baseline. Paths to scripts/ and templates/ are relative to this skill's directory.
Stack
@angular/cli≥ 21 (global or vianpx @angular/cli@latest), Node 22 LTS- TypeScript strict mode with Angular compiler options
- Vitest with jsdom (replaces Karma/Jest), on by default
- ESLint + Prettier + Husky via the
setup-prettier-eslint-huskyskill, on by default (Angular stays on Prettier, not Biome: no Angular template support, no SCSS)
Steps
Ask: project name, selector prefix (default
app), type app or workspace, whether to skip Vitest or ESLintRun the scaffold script:
pwsh scripts/New-AngularProject.ps1 -ProjectName <Name> [-SelectorPrefix app] [-ProjectType app|workspace] [-SkipVitest] [-SkipEslint] [-OutputDirectory .]It runs
ng new --style scss --ssr false, replacestsconfig.jsonwith the strict template, installs Vitest with the template config and patches thetestscripts, then runs the code-quality setup.Verify:
ng build,npm test,ng serve(http://localhost:4200)Next steps: components and signal stores via
ng-implementation(references/component.md,references/signal-store.md)
Templates
| File | Purpose |
|---|---|
templates/tsconfig.json |
Strict Angular compiler options: noImplicitOverride, strictTemplates, module: preserve, target: ES2022 |
templates/vitest.config.ts |
jsdom environment, globals, setup file, include: ['**/*.spec.ts'] |
templates/vitest.setup.ts |
Empty setup file, extend as needed |
Constraints
- Standalone components only;
standalone: trueis the default, never add NgModules - SCSS for styles; SSR off unless explicitly requested
- Angular 21+ only
Report: summary, project path, verify commands.