angular
Installation
SKILL.md
Angular
Commands
| Task | Command |
|---|---|
| Generate a component | pnpm ng g c <path> |
| Generate a service | pnpm ng g s <path> |
| Generate a pipe | pnpm ng g p <path> |
| Generate a directive | pnpm ng g d <path> |
| Generate a guard | pnpm ng g g <path> |
| Serve the app (dev) | pnpm start |
| Build the app | pnpm build |
| Run tests | pnpm test |
| Lint | pnpm lint |
Default action: When asked to "generate a component" without further qualification, use pnpm ng g c.
Always check
package.jsonscripts andangular.jsonbefore running commands — script names and Angular project targets can vary between projects.