nx-generators
SKILL.md
Nx Generators
Finding and Installing new plugins
- List plugins:
pnpm nx list - Install plugins
pnpm nx add <plugin>. Example:pnpm nx add @nx/react.
Commands
- List generators for plugin:
pnpm nx list @nx/react - Generator help:
pnpm nx g @nx/react:application --help - Dry run:
pnpm nx g @nx/react:application myapp --dry-run - Execute:
pnpm nx g @nx/react:application myapp
Workflow
- Identify which plugin has needed generator
- Check generator options with
--help - Use
--dry-runto preview changes - Execute generator
- Run
pnpm nx format:writeafter generation