@nx/plugin:executor
Create an Executor for an Nx Plugin.
Create an Executor for an Nx Plugin.
Create a new executor called build
inside the plugin my-plugin
:
nx g @nx/plugin:executor build --project my-plugin
nx generate executor ...
By default, Nx will search for executor
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/plugin:executor ...
Show what will be generated without writing to disk:
nx g executor ... --dry-run
Generate libs/my-plugin/src/executors/my-executor
:
nx g executor my-executor --project=my-plugin
Executor name.
The name of the project.
Executor description.
false
Should the boilerplate for a custom hasher be generated?
false
Do not add an eslint configuration for plugin json files.
jest
jest
, none
Test runner to use for unit tests.
false
Skip formatting files.