Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

Nx Generators

Run Nx generators to create new projects, libraries, components. Use when user needs to generate code, scaffold projects, or understand generator options.

majiayu000 e103974 2 files · 1.1 KB Updated 567 repo stars

File contents

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

  1. Identify which plugin has needed generator
  2. Check generator options with --help
  3. Use --dry-run to preview changes
  4. Execute generator
  5. Run pnpm nx format:write after generation

majiayu000/claude-skill-registry-data/tree/main/development/nx-generators commit e103974be2

Frequently asked questions

npx skillmds add majiayu000/nx-generators