@nx/plugin:generator
Create a Generator for an Nx Plugin.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Create a Generator for an Nx Plugin.
1nx generate generator ...
2By default, Nx will search for generator in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/plugin:generator ...
2Show what will be generated without writing to disk:
1nx g generator ... --dry-run
2Generate libs/my-plugin/src/generators/my-generator:
1nx g generator libs/my-plugin/src/generators//my-generator
2Path where the generator will be generated.
Generator description.
Generator name.
falseDo not add an eslint configuration for plugin json files.
jestjest, noneTest runner to use for unit tests.
falseDo not format files with prettier.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!