@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 build --project my-plugin
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
2Executor name.
The directory at which to create the executor file. When --nameAndDirectoryFormat=as-provided, it will be relative to the current working directory. Otherwise, it will be relative to the workspace root.
Executor description.
falseShould the boilerplate for a custom hasher be generated?
as-provided, derivedWhether to generate the executor in the directory as provided, relative to the current working directory and ignoring the project (as-provided) or generate it using the project and directory relative to the workspace root (derived).
falseDo not add an eslint configuration for plugin json files.
jestjest, noneTest runner to use for unit tests.
falseSkip formatting files.
The name of the project.
Provide the directory option instead and use the as-provided format. The project will be determined from the directory provided. It will be removed in Nx v19.