nx/packages/plugin/docs/generators/executor-examples.md
2023-07-25 18:15:26 -04:00

450 B

Examples

{% tabs %} {% tab label="Basic executor" %}

Create a new executor called build inside the plugin my-plugin:

nx g @nx/plugin:executor build --project my-plugin

{% /tab %} {% tab label="With custom hashing" %}

Create a new executor called build inside the plugin my-plugin, that uses a custom hashing function:

nx g @nx/plugin:executor build --project my-plugin --includeHasher

{% /tab %} {% /tabs %}