Getting Started with Plugins
Nx plugins contain generators and executors that extend the capabilities of an Nx workspace. They can be shared as npm packages or referenced locally within the same repo.
Use a Plugin
Nx plugins help you scaffold new projects, pre-configure tooling, follow best practices, and modularize your codebase.
Find a plugin to use
Run operations on your code
Create or modify code
Create a Local Plugin
Local plugins allow you to automate repository specific tasks and enforce best practices (e.g., generating projects or components, running third-party tools).
Set up a new plugin
Add a generator to your plugin
Add an executor to your plugin
Maintain a Published Plugin
If your plugin has functionality that would be useful in more than just your repo, you can publish it to npm and register it on the nx.dev site for others to find.
Submit your plugin to the Nx plugin registry
Update repos when you introduce breaking changes
Advanced Plugins
You can also hook into the way Nx works and modify it to suit your needs
Set up a new repo
Modify the Nx graph