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

23 lines
450 B
Markdown

## Examples
{% tabs %}
{% tab label="Basic executor" %}
Create a new executor called `build` inside the plugin `my-plugin`:
```bash
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:
```bash
nx g @nx/plugin:executor build --project my-plugin --includeHasher
```
{% /tab %}
{% /tabs %}