@nx/plugin:executor
Create an Executor for an Nx Plugin.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
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
21nx generate executor ...
2By 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 ...
2Show what will be generated without writing to disk:
1nx g executor ... --dry-run
2Generate libs/my-plugin/src/executors/my-executor:
1nx g executor my-executor --project=my-plugin
2Path at which to generate the executor file.
Executor description.
Executor name.
falseShould the boilerplate for a custom hasher be generated?
falseDo not add an eslint configuration for plugin json files.
jestjest, noneTest runner to use for unit tests.
falseSkip formatting files.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!