@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
:
1nx g @nx/plugin:executor tools/my-plugin/src/executors/build
2
1nx generate executor ...
2
By default, Nx will search for executor
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/plugin:executor ...
2
Show what will be generated without writing to disk:
1nx g executor ... --dry-run
2
Generate libs/my-plugin/src/executors/my-executor
:
1nx g executor my-executor --project=my-plugin
2
Path at which to generate the executor file.
Executor description.
Executor name.
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.
Watch the replays of exciting talks on developer tooling and monorepos! Catch all the insightful presentations from the event on our YouTube channel.