@nrwl/nx-plugin:generator
Create a Generator for an Nx Plugin.
Create a Generator for an Nx Plugin.
nx generate generator ...
By default, Nx will search for generator
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/nx-plugin:generator ...
Show what will be generated without writing to disk:
nx g generator ... --dry-run
Generate libs/my-plugin/src/generators/my-generator
:
nx g generator my-generator --project=my-plugin
Generator name.
The name of the project.
Generator description.
jest
jest
, none
Test runner to use for unit tests.