angular5-typescript2.5
Installation
SKILL.md
Angular 5 + TypeScript 2.5 Developer Guidelines
-
This skill is exclusively for Angular 5 projects using TypeScript 2.5.
-
When generating code, follow Angular 5 conventions. Use the Angular CLI for scaffolding.
-
Once you finish generating code, run
ng buildto ensure there are no build errors.
Creating New Projects
Execution Rules for ng new:
-
Step 1: Check for an explicit user version.
- IF the user requests Angular 5, use
npx @angular/cli@5 new <project-name>. - Command:
npx @angular/cli@5 new <project-name>
- IF the user requests Angular 5, use
-
Step 2: Check for an existing Angular installation.
- IF no specific version is requested, run
ng version. - IF installed, use
ng new <project-name>
- IF no specific version is requested, run
Related skills