Complete Nx plugin development toolkit: create custom generators, executors, and extend Nx workspaces with reusable automation
93
94%
Does it follow best practices?
Impact
92%
1.00xAverage score across 5 eval scenarios
Passed
No known issues
Your team implemented a new generator and executor, but they don't work when developers try to use them! The Nx CLI can't find them.
When running:
npx nx g @myorg/tools:create-service my-serviceError:
Cannot find generator '@myorg/tools:create-service'When running:
npx nx run my-app:custom-deployError:
Cannot find executor '@myorg/tools:custom-deploy'
Unable to resolve @myorg/tools:custom-deploytools/my-plugin/
├── src/
│ ├── generators/
│ │ └── create-service/
│ │ ├── generator.ts
│ │ └── schema.json
│ ├── executors/
│ │ └── custom-deploy/
│ │ ├── executor.ts
│ │ └── schema.json
│ └── index.ts (EMPTY!)
├── package.json
└── project.jsonCurrent index.ts:
// Empty file!Current package.json:
{
"name": "@myorg/tools",
"version": "1.0.0",
"main": "./src/index.ts"
}Set up proper plugin registration so Nx CLI can discover and use your generators and executors.
Create these files:
After your fixes, these should work:
npx nx g @myorg/tools:create-service my-service
npx nx run my-app:custom-deploy