From 00ee173544abf3cf43e0250f27fc44893b44397a Mon Sep 17 00:00:00 2001 From: Nick Mazuk Date: Mon, 9 May 2022 20:25:59 -0700 Subject: [PATCH] docs(nx-plugin): add :plugin to local plugin generator target (#10226) --- docs/shared/extending-nx/devkit-and-nx-plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/shared/extending-nx/devkit-and-nx-plugins.md b/docs/shared/extending-nx/devkit-and-nx-plugins.md index b783a4e70f..bbfc56ec6e 100644 --- a/docs/shared/extending-nx/devkit-and-nx-plugins.md +++ b/docs/shared/extending-nx/devkit-and-nx-plugins.md @@ -44,7 +44,7 @@ The Nx team maintains a core set of plugins for many application and tooling fra ### Local workspace plugins -Nx plugins can also be used in the workspace they are generated inside of. For example, if you generate a plugin with `nx g @nrwl/nx-plugin my-plugin --importPath @my-org/my-plugin`, you will be able to immediately make use of generators and executors within it. This would look like `nx g @my-org/my-plugin:lib` for generators or `"executor": "@my-org/my-plugin:build"` for executors. If you are only planning on making use of generators, Nx provides workspace generators which can be used rather than whole plugins. Generating a full plugin allows you to take advantage of all of the capabilities above, including project inference and graph extension, which is not possible when solely using workspace generators. Additionally, your local plugin could be set as the default collection in `nx.json`, such that running `nx g lib` would call your workspace plugin's lib generator. +Nx plugins can also be used in the workspace they are generated inside of. For example, if you generate a plugin with `nx g @nrwl/nx-plugin:plugin my-plugin --importPath @my-org/my-plugin`, you will be able to immediately make use of generators and executors within it. This would look like `nx g @my-org/my-plugin:lib` for generators or `"executor": "@my-org/my-plugin:build"` for executors. If you are only planning on making use of generators, Nx provides workspace generators which can be used rather than whole plugins. Generating a full plugin allows you to take advantage of all of the capabilities above, including project inference and graph extension, which is not possible when solely using workspace generators. Additionally, your local plugin could be set as the default collection in `nx.json`, such that running `nx g lib` would call your workspace plugin's lib generator. ### Listing Nx plugins