Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 939 Bytes

custom-plugin.md

File metadata and controls

39 lines (21 loc) · 939 Bytes

Exercise: Custom Plugin

Learn how to create a custom executor with Nx for enhancing your project setup. This guide covers generating a plugin, adopting a custom configuration, and executing the executor to streamline development processes.

This document guides you through creating a custom Nx executor to run Stylelint configuration in your project, ensuring consistent style conventions.

0. Add @nx/plugin

Add the @nx/plugin plugin with nx add.

add `@nx/plugin` plugin
npx nx add @nx/plugin

1. Generate Plugin

Generate a new plugin called workspace-tools in the tools/workspace directory.

This step initializes the necessary setup for your custom generator.

generate plugin
nx generate @nx/plugin:plugin workspace-tools --directory=tools/workspace

image