diff --git a/docs/generated/packages/angular/documents/overview.md b/docs/generated/packages/angular/documents/overview.md index 1c13b60467247..32929376dafcd 100644 --- a/docs/generated/packages/angular/documents/overview.md +++ b/docs/generated/packages/angular/documents/overview.md @@ -33,7 +33,7 @@ In any Nx workspace, you can install `@nx/angular` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/angular ``` diff --git a/docs/generated/packages/cypress/documents/overview.md b/docs/generated/packages/cypress/documents/overview.md index 0f0022e7e9cc8..e43633272a425 100644 --- a/docs/generated/packages/cypress/documents/overview.md +++ b/docs/generated/packages/cypress/documents/overview.md @@ -29,7 +29,7 @@ In any Nx workspace, you can install `@nx/cypress` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/cypress ``` diff --git a/docs/generated/packages/detox/documents/overview.md b/docs/generated/packages/detox/documents/overview.md index af5cd72b508cf..051f8d646d709 100644 --- a/docs/generated/packages/detox/documents/overview.md +++ b/docs/generated/packages/detox/documents/overview.md @@ -36,7 +36,7 @@ In any Nx workspace, you can install `@nx/detox` by running the following comman {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/detox ``` diff --git a/docs/generated/packages/esbuild/documents/overview.md b/docs/generated/packages/esbuild/documents/overview.md index e472942780ea2..b734692982faf 100644 --- a/docs/generated/packages/esbuild/documents/overview.md +++ b/docs/generated/packages/esbuild/documents/overview.md @@ -25,7 +25,7 @@ In any Nx workspace, you can install `@nx/esbuild` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/esbuild ``` diff --git a/docs/generated/packages/eslint-plugin/documents/overview.md b/docs/generated/packages/eslint-plugin/documents/overview.md index 9036a11648559..297855bec6aad 100644 --- a/docs/generated/packages/eslint-plugin/documents/overview.md +++ b/docs/generated/packages/eslint-plugin/documents/overview.md @@ -13,10 +13,27 @@ Make sure to install the `@nx/eslint-plugin` version that matches the version of In any Nx workspace, you can install `@nx/eslint-plugin` by running the following commands if the package is not already installed: -```shell +{% tabs %} +{% tab label="Nx 18+" %} + +```shell {% skipRescope=true %} nx add @nx/eslint-plugin ``` +This will install the correct version of `@nx/eslint-plugin`. + +{% /tab %} +{% tab label="Nx < 18" %} + +Install the `@nx/eslint-plugin` package with your package manager. + +```shell +npm add -D @nx/eslint-plugin +``` + +{% /tab %} +{% /tabs %} + ## Included plugins The plugin contains the following rule configurations divided into sub-plugins. diff --git a/docs/generated/packages/eslint/documents/overview.md b/docs/generated/packages/eslint/documents/overview.md index ca49e9ce2d73f..f4795264c37b6 100644 --- a/docs/generated/packages/eslint/documents/overview.md +++ b/docs/generated/packages/eslint/documents/overview.md @@ -13,7 +13,7 @@ In any Nx workspace, you can install `@nx/eslint` by running the following comma {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/eslint ``` @@ -57,14 +57,23 @@ The `@nx/eslint/plugin` is configured in the `plugins` array in `nx.json`. - The `targetName` option controls the name of the inferred ESLint tasks. The default name is `lint`. {% /tab %} -{% tab label="Nx < 18" %} +{% tab label="Nx 17" %} Install the `@nx/eslint` package with your package manager. -```shell +```shell {% skipRescope=true %} npm add -D @nx/eslint ``` +{% /tab %} +{% tab label="Nx < 17" %} + +Install the `@nx/linter` package with your package manager. + +```shell +npm add -D @nx/linter +``` + {% /tab %} {% /tabs %} diff --git a/docs/generated/packages/expo/documents/overview.md b/docs/generated/packages/expo/documents/overview.md index 9ee33616ac22d..1d758055c640b 100644 --- a/docs/generated/packages/expo/documents/overview.md +++ b/docs/generated/packages/expo/documents/overview.md @@ -21,7 +21,7 @@ In any Nx workspace, you can install `@nx/expo` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/expo ``` diff --git a/docs/generated/packages/express/documents/overview.md b/docs/generated/packages/express/documents/overview.md index abda6b0ea476f..5e2b837e7bd8a 100644 --- a/docs/generated/packages/express/documents/overview.md +++ b/docs/generated/packages/express/documents/overview.md @@ -22,7 +22,7 @@ In any Nx workspace, you can install `@nx/express` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/express ``` diff --git a/docs/generated/packages/jest/documents/overview.md b/docs/generated/packages/jest/documents/overview.md index c42b3d0fa6e40..aeb413090e11e 100644 --- a/docs/generated/packages/jest/documents/overview.md +++ b/docs/generated/packages/jest/documents/overview.md @@ -22,7 +22,7 @@ In any Nx workspace, you can install `@nx/jest` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/jest ``` diff --git a/docs/generated/packages/js/documents/overview.md b/docs/generated/packages/js/documents/overview.md index 0548e3c69e00e..c8b58a14937f1 100644 --- a/docs/generated/packages/js/documents/overview.md +++ b/docs/generated/packages/js/documents/overview.md @@ -18,7 +18,7 @@ In any Nx workspace, you can install `@nx/js` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/js ``` diff --git a/docs/generated/packages/nest/documents/overview.md b/docs/generated/packages/nest/documents/overview.md index df9b7fe9ec2f5..bcf3bef876b8d 100644 --- a/docs/generated/packages/nest/documents/overview.md +++ b/docs/generated/packages/nest/documents/overview.md @@ -34,7 +34,7 @@ In any Nx workspace, you can install `@nx/nest` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/nest ``` diff --git a/docs/generated/packages/next/documents/overview.md b/docs/generated/packages/next/documents/overview.md index 16d74612a48dc..1638827d5f616 100644 --- a/docs/generated/packages/next/documents/overview.md +++ b/docs/generated/packages/next/documents/overview.md @@ -30,7 +30,7 @@ In any workspace, you can install `@nx/next` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/next ``` diff --git a/docs/generated/packages/node/documents/overview.md b/docs/generated/packages/node/documents/overview.md index ce2127391e9fd..0a1feaae7b36e 100644 --- a/docs/generated/packages/node/documents/overview.md +++ b/docs/generated/packages/node/documents/overview.md @@ -13,7 +13,7 @@ In any Nx workspace, you can install `@nx/node` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/node ``` diff --git a/docs/generated/packages/nuxt/documents/overview.md b/docs/generated/packages/nuxt/documents/overview.md index 6440d1768d5d6..10b75ea9ea0b1 100644 --- a/docs/generated/packages/nuxt/documents/overview.md +++ b/docs/generated/packages/nuxt/documents/overview.md @@ -23,7 +23,7 @@ Make sure to install the `@nx/nuxt` version that matches the version of `nx` in In any Nx workspace, you can install `@nx/nuxt` by running the following command: -```shell +```shell {% skipRescope=true %} nx add @nx/nuxt ``` diff --git a/docs/generated/packages/playwright/documents/overview.md b/docs/generated/packages/playwright/documents/overview.md index 730ed65055932..53f5b36214b1b 100644 --- a/docs/generated/packages/playwright/documents/overview.md +++ b/docs/generated/packages/playwright/documents/overview.md @@ -24,7 +24,7 @@ In any Nx workspace, you can install `@nx/playwright` by running the following c {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/playwright ``` @@ -74,7 +74,7 @@ The `@nx/playwright/plugin` will automatically split your e2e tasks by file. You Install the `@nx/playwright` package with your package manager. -```shell +```shell {% skipRescope=true %} npm add -D @nx/playwright ``` diff --git a/docs/generated/packages/react-native/documents/overview.md b/docs/generated/packages/react-native/documents/overview.md index 8fa0b538e95fd..25a8d81c79631 100644 --- a/docs/generated/packages/react-native/documents/overview.md +++ b/docs/generated/packages/react-native/documents/overview.md @@ -35,7 +35,7 @@ In any Nx workspace, you can install `@nx/react-native` by running the following {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/react-native ``` diff --git a/docs/generated/packages/react/documents/overview.md b/docs/generated/packages/react/documents/overview.md index ca980ce308664..947c67178a852 100644 --- a/docs/generated/packages/react/documents/overview.md +++ b/docs/generated/packages/react/documents/overview.md @@ -27,7 +27,7 @@ In any Nx workspace, you can install `@nx/react` by running the following comman {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/react ``` diff --git a/docs/generated/packages/remix/documents/overview.md b/docs/generated/packages/remix/documents/overview.md index b38a58fb42780..c1d822bb6df3f 100644 --- a/docs/generated/packages/remix/documents/overview.md +++ b/docs/generated/packages/remix/documents/overview.md @@ -28,7 +28,7 @@ In any Nx workspace, you can install `@nx/remix` by running the following comman {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/remix ``` diff --git a/docs/generated/packages/storybook/documents/overview.md b/docs/generated/packages/storybook/documents/overview.md index 2e970f928cc72..9b29caaf99d28 100644 --- a/docs/generated/packages/storybook/documents/overview.md +++ b/docs/generated/packages/storybook/documents/overview.md @@ -20,7 +20,7 @@ In any Nx workspace, you can install `@nx/storybook` by running the following co {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/storybook ``` diff --git a/docs/generated/packages/vite/documents/overview.md b/docs/generated/packages/vite/documents/overview.md index 268149d633515..b3a955992f6d6 100644 --- a/docs/generated/packages/vite/documents/overview.md +++ b/docs/generated/packages/vite/documents/overview.md @@ -35,7 +35,7 @@ In any Nx workspace, you can install `@nx/vite` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/vite ``` diff --git a/docs/generated/packages/vue/documents/overview.md b/docs/generated/packages/vue/documents/overview.md index 814ca05c84040..e8d2f8a20f966 100644 --- a/docs/generated/packages/vue/documents/overview.md +++ b/docs/generated/packages/vue/documents/overview.md @@ -26,7 +26,7 @@ In any Nx workspace, you can install `@nx/vue` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/vue ``` @@ -37,7 +37,7 @@ This will install the correct version of `@nx/vue`. Install the `@nx/vue` package with your package manager. -```shell +```shell {% skipRescope=true %} npm add -D @nx/vue ``` diff --git a/docs/generated/packages/web/documents/overview.md b/docs/generated/packages/web/documents/overview.md index cadc015e3b41e..e8cb9ed81a549 100644 --- a/docs/generated/packages/web/documents/overview.md +++ b/docs/generated/packages/web/documents/overview.md @@ -21,7 +21,7 @@ In any Nx workspace, you can install `@nx/web` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/web ``` diff --git a/docs/generated/packages/webpack/documents/overview.md b/docs/generated/packages/webpack/documents/overview.md index 103051397e9bf..5bd3c12f35b30 100644 --- a/docs/generated/packages/webpack/documents/overview.md +++ b/docs/generated/packages/webpack/documents/overview.md @@ -36,7 +36,7 @@ In any Nx workspace, you can install `@nx/webpack` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/webpack ``` diff --git a/docs/nx-cloud/features/split-e2e-tasks.md b/docs/nx-cloud/features/split-e2e-tasks.md index e671325caa72b..18da173f45ee5 100644 --- a/docs/nx-cloud/features/split-e2e-tasks.md +++ b/docs/nx-cloud/features/split-e2e-tasks.md @@ -11,14 +11,14 @@ To enable automatically split e2e tasks, you need to turn on [inferred tasks](/c {% tabs %} {% tab label="Cypress" %} -```shell +```shell {% skipRescope=true %} nx add @nx/cypress ``` {% /tab %} {% tab label="Playwright" %} -```shell +```shell {% skipRescope=true %} nx add @nx/playwright ``` diff --git a/docs/shared/features/enforce-module-boundaries.md b/docs/shared/features/enforce-module-boundaries.md index d4f4779d2de27..8e8182db22058 100644 --- a/docs/shared/features/enforce-module-boundaries.md +++ b/docs/shared/features/enforce-module-boundaries.md @@ -15,7 +15,7 @@ Nx provides an `enforce-module-boundaries` eslint rule that enforces the public To set up the lint rule, install these dependencies: -```shell +```shell {% skipRescope=true %} nx add @nx/eslint-plugin @nx/devkit ``` diff --git a/docs/shared/guides/react-native.md b/docs/shared/guides/react-native.md index 32931207ee202..65a9ca5a2ec50 100644 --- a/docs/shared/guides/react-native.md +++ b/docs/shared/guides/react-native.md @@ -134,7 +134,7 @@ When using React Native in Nx, you get the out-of-the-box support for TypeScript For existing Nx workspaces, install the `@nx/react-native` package to add React Native capabilities to it. -```shell +```shell {% skipRescope=true %} nx add @nx/react-native ``` diff --git a/docs/shared/guides/remix.md b/docs/shared/guides/remix.md index e2bf389b3b6b6..6a49c3393903f 100644 --- a/docs/shared/guides/remix.md +++ b/docs/shared/guides/remix.md @@ -31,7 +31,7 @@ In this recipe, we'll show you how to create a [Remix](https://remix.run) applic Make sure to install the `@nx/remix` version that is on the same minor version as the `nx` version in your repository. If the version numbers get out of sync, you can encounter some difficult to debug errors. You can [fix Nx version mismatches with this recipe](/recipes/tips-n-tricks/keep-nx-versions-in-sync). {% /callout %} -```shell +```shell {% skipRescope=true %} nx add @nx/remix ``` diff --git a/docs/shared/migration/migration-angularjs.md b/docs/shared/migration/migration-angularjs.md index 7b101457a6e9f..d8c98f256678e 100644 --- a/docs/shared/migration/migration-angularjs.md +++ b/docs/shared/migration/migration-angularjs.md @@ -41,7 +41,7 @@ At the next prompt, you can choose whether to use [Nx Cloud](https://nx.app) or Your new workspace won’t have much in it because of the `apps` preset. You’ll need to generate an application to have some structure created. Add the Angular plugin to your workspace: -```shell +```shell {% skipRescope=true %} nx add @nx/angular ``` diff --git a/docs/shared/packages/angular/angular-plugin.md b/docs/shared/packages/angular/angular-plugin.md index 1c13b60467247..32929376dafcd 100644 --- a/docs/shared/packages/angular/angular-plugin.md +++ b/docs/shared/packages/angular/angular-plugin.md @@ -33,7 +33,7 @@ In any Nx workspace, you can install `@nx/angular` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/angular ``` diff --git a/docs/shared/packages/cypress/cypress-plugin.md b/docs/shared/packages/cypress/cypress-plugin.md index 0f0022e7e9cc8..e43633272a425 100644 --- a/docs/shared/packages/cypress/cypress-plugin.md +++ b/docs/shared/packages/cypress/cypress-plugin.md @@ -29,7 +29,7 @@ In any Nx workspace, you can install `@nx/cypress` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/cypress ``` diff --git a/docs/shared/packages/detox/detox-plugin.md b/docs/shared/packages/detox/detox-plugin.md index af5cd72b508cf..051f8d646d709 100644 --- a/docs/shared/packages/detox/detox-plugin.md +++ b/docs/shared/packages/detox/detox-plugin.md @@ -36,7 +36,7 @@ In any Nx workspace, you can install `@nx/detox` by running the following comman {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/detox ``` diff --git a/docs/shared/packages/esbuild/esbuild-plugin.md b/docs/shared/packages/esbuild/esbuild-plugin.md index e472942780ea2..b734692982faf 100644 --- a/docs/shared/packages/esbuild/esbuild-plugin.md +++ b/docs/shared/packages/esbuild/esbuild-plugin.md @@ -25,7 +25,7 @@ In any Nx workspace, you can install `@nx/esbuild` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/esbuild ``` diff --git a/docs/shared/packages/eslint/eslint-plugin.md b/docs/shared/packages/eslint/eslint-plugin.md index 9036a11648559..297855bec6aad 100644 --- a/docs/shared/packages/eslint/eslint-plugin.md +++ b/docs/shared/packages/eslint/eslint-plugin.md @@ -13,10 +13,27 @@ Make sure to install the `@nx/eslint-plugin` version that matches the version of In any Nx workspace, you can install `@nx/eslint-plugin` by running the following commands if the package is not already installed: -```shell +{% tabs %} +{% tab label="Nx 18+" %} + +```shell {% skipRescope=true %} nx add @nx/eslint-plugin ``` +This will install the correct version of `@nx/eslint-plugin`. + +{% /tab %} +{% tab label="Nx < 18" %} + +Install the `@nx/eslint-plugin` package with your package manager. + +```shell +npm add -D @nx/eslint-plugin +``` + +{% /tab %} +{% /tabs %} + ## Included plugins The plugin contains the following rule configurations divided into sub-plugins. diff --git a/docs/shared/packages/eslint/eslint.md b/docs/shared/packages/eslint/eslint.md index ca49e9ce2d73f..f4795264c37b6 100644 --- a/docs/shared/packages/eslint/eslint.md +++ b/docs/shared/packages/eslint/eslint.md @@ -13,7 +13,7 @@ In any Nx workspace, you can install `@nx/eslint` by running the following comma {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/eslint ``` @@ -57,14 +57,23 @@ The `@nx/eslint/plugin` is configured in the `plugins` array in `nx.json`. - The `targetName` option controls the name of the inferred ESLint tasks. The default name is `lint`. {% /tab %} -{% tab label="Nx < 18" %} +{% tab label="Nx 17" %} Install the `@nx/eslint` package with your package manager. -```shell +```shell {% skipRescope=true %} npm add -D @nx/eslint ``` +{% /tab %} +{% tab label="Nx < 17" %} + +Install the `@nx/linter` package with your package manager. + +```shell +npm add -D @nx/linter +``` + {% /tab %} {% /tabs %} diff --git a/docs/shared/packages/expo/expo-plugin.md b/docs/shared/packages/expo/expo-plugin.md index 9ee33616ac22d..1d758055c640b 100644 --- a/docs/shared/packages/expo/expo-plugin.md +++ b/docs/shared/packages/expo/expo-plugin.md @@ -21,7 +21,7 @@ In any Nx workspace, you can install `@nx/expo` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/expo ``` diff --git a/docs/shared/packages/express/express-plugin.md b/docs/shared/packages/express/express-plugin.md index abda6b0ea476f..5e2b837e7bd8a 100644 --- a/docs/shared/packages/express/express-plugin.md +++ b/docs/shared/packages/express/express-plugin.md @@ -22,7 +22,7 @@ In any Nx workspace, you can install `@nx/express` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/express ``` diff --git a/docs/shared/packages/jest/jest-plugin.md b/docs/shared/packages/jest/jest-plugin.md index c42b3d0fa6e40..aeb413090e11e 100644 --- a/docs/shared/packages/jest/jest-plugin.md +++ b/docs/shared/packages/jest/jest-plugin.md @@ -22,7 +22,7 @@ In any Nx workspace, you can install `@nx/jest` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/jest ``` diff --git a/docs/shared/packages/js/js-plugin.md b/docs/shared/packages/js/js-plugin.md index 0548e3c69e00e..c8b58a14937f1 100644 --- a/docs/shared/packages/js/js-plugin.md +++ b/docs/shared/packages/js/js-plugin.md @@ -18,7 +18,7 @@ In any Nx workspace, you can install `@nx/js` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/js ``` diff --git a/docs/shared/packages/nest/nest-plugin.md b/docs/shared/packages/nest/nest-plugin.md index df9b7fe9ec2f5..bcf3bef876b8d 100644 --- a/docs/shared/packages/nest/nest-plugin.md +++ b/docs/shared/packages/nest/nest-plugin.md @@ -34,7 +34,7 @@ In any Nx workspace, you can install `@nx/nest` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/nest ``` diff --git a/docs/shared/packages/next/plugin-overview.md b/docs/shared/packages/next/plugin-overview.md index 16d74612a48dc..1638827d5f616 100644 --- a/docs/shared/packages/next/plugin-overview.md +++ b/docs/shared/packages/next/plugin-overview.md @@ -30,7 +30,7 @@ In any workspace, you can install `@nx/next` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/next ``` diff --git a/docs/shared/packages/node/node-plugin.md b/docs/shared/packages/node/node-plugin.md index ce2127391e9fd..0a1feaae7b36e 100644 --- a/docs/shared/packages/node/node-plugin.md +++ b/docs/shared/packages/node/node-plugin.md @@ -13,7 +13,7 @@ In any Nx workspace, you can install `@nx/node` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/node ``` diff --git a/docs/shared/packages/nuxt/nuxt-plugin.md b/docs/shared/packages/nuxt/nuxt-plugin.md index 6440d1768d5d6..10b75ea9ea0b1 100644 --- a/docs/shared/packages/nuxt/nuxt-plugin.md +++ b/docs/shared/packages/nuxt/nuxt-plugin.md @@ -23,7 +23,7 @@ Make sure to install the `@nx/nuxt` version that matches the version of `nx` in In any Nx workspace, you can install `@nx/nuxt` by running the following command: -```shell +```shell {% skipRescope=true %} nx add @nx/nuxt ``` diff --git a/docs/shared/packages/playwright/playwright-plugin.md b/docs/shared/packages/playwright/playwright-plugin.md index 730ed65055932..53f5b36214b1b 100644 --- a/docs/shared/packages/playwright/playwright-plugin.md +++ b/docs/shared/packages/playwright/playwright-plugin.md @@ -24,7 +24,7 @@ In any Nx workspace, you can install `@nx/playwright` by running the following c {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/playwright ``` @@ -74,7 +74,7 @@ The `@nx/playwright/plugin` will automatically split your e2e tasks by file. You Install the `@nx/playwright` package with your package manager. -```shell +```shell {% skipRescope=true %} npm add -D @nx/playwright ``` diff --git a/docs/shared/packages/react-native/react-native-plugin.md b/docs/shared/packages/react-native/react-native-plugin.md index 8fa0b538e95fd..25a8d81c79631 100644 --- a/docs/shared/packages/react-native/react-native-plugin.md +++ b/docs/shared/packages/react-native/react-native-plugin.md @@ -35,7 +35,7 @@ In any Nx workspace, you can install `@nx/react-native` by running the following {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/react-native ``` diff --git a/docs/shared/packages/react/react-plugin.md b/docs/shared/packages/react/react-plugin.md index ca980ce308664..947c67178a852 100644 --- a/docs/shared/packages/react/react-plugin.md +++ b/docs/shared/packages/react/react-plugin.md @@ -27,7 +27,7 @@ In any Nx workspace, you can install `@nx/react` by running the following comman {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/react ``` diff --git a/docs/shared/packages/remix/remix-plugin.md b/docs/shared/packages/remix/remix-plugin.md index b38a58fb42780..c1d822bb6df3f 100644 --- a/docs/shared/packages/remix/remix-plugin.md +++ b/docs/shared/packages/remix/remix-plugin.md @@ -28,7 +28,7 @@ In any Nx workspace, you can install `@nx/remix` by running the following comman {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/remix ``` diff --git a/docs/shared/packages/storybook/plugin-overview.md b/docs/shared/packages/storybook/plugin-overview.md index 2e970f928cc72..9b29caaf99d28 100644 --- a/docs/shared/packages/storybook/plugin-overview.md +++ b/docs/shared/packages/storybook/plugin-overview.md @@ -20,7 +20,7 @@ In any Nx workspace, you can install `@nx/storybook` by running the following co {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/storybook ``` diff --git a/docs/shared/packages/vite/vite-plugin.md b/docs/shared/packages/vite/vite-plugin.md index 268149d633515..b3a955992f6d6 100644 --- a/docs/shared/packages/vite/vite-plugin.md +++ b/docs/shared/packages/vite/vite-plugin.md @@ -35,7 +35,7 @@ In any Nx workspace, you can install `@nx/vite` by running the following command {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/vite ``` diff --git a/docs/shared/packages/vue/vue-plugin.md b/docs/shared/packages/vue/vue-plugin.md index 814ca05c84040..e8d2f8a20f966 100644 --- a/docs/shared/packages/vue/vue-plugin.md +++ b/docs/shared/packages/vue/vue-plugin.md @@ -26,7 +26,7 @@ In any Nx workspace, you can install `@nx/vue` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/vue ``` @@ -37,7 +37,7 @@ This will install the correct version of `@nx/vue`. Install the `@nx/vue` package with your package manager. -```shell +```shell {% skipRescope=true %} npm add -D @nx/vue ``` diff --git a/docs/shared/packages/web/web-plugin.md b/docs/shared/packages/web/web-plugin.md index cadc015e3b41e..e8cb9ed81a549 100644 --- a/docs/shared/packages/web/web-plugin.md +++ b/docs/shared/packages/web/web-plugin.md @@ -21,7 +21,7 @@ In any Nx workspace, you can install `@nx/web` by running the following command: {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/web ``` diff --git a/docs/shared/packages/webpack/plugin-overview.md b/docs/shared/packages/webpack/plugin-overview.md index 103051397e9bf..5bd3c12f35b30 100644 --- a/docs/shared/packages/webpack/plugin-overview.md +++ b/docs/shared/packages/webpack/plugin-overview.md @@ -36,7 +36,7 @@ In any Nx workspace, you can install `@nx/webpack` by running the following comm {% tabs %} {% tab label="Nx 18+" %} -```shell +```shell {% skipRescope=true %} nx add @nx/webpack ``` diff --git a/docs/shared/recipes/add-stack/add-astro.md b/docs/shared/recipes/add-stack/add-astro.md index 1ab40255d4f89..4952fc7498937 100644 --- a/docs/shared/recipes/add-stack/add-astro.md +++ b/docs/shared/recipes/add-stack/add-astro.md @@ -82,7 +82,7 @@ Install `@nx/js` plugin. > Note: you should make sure any first party, `@nx/` scoped, plugins match the `nx` package version -```shell +```shell {% skipRescope=true %} nx add @nx/js@ ``` diff --git a/docs/shared/recipes/add-stack/add-deno.md b/docs/shared/recipes/add-stack/add-deno.md index 51534e00f6f40..ce98e505e13c5 100644 --- a/docs/shared/recipes/add-stack/add-deno.md +++ b/docs/shared/recipes/add-stack/add-deno.md @@ -21,7 +21,7 @@ Because we are using an Nx plugin for Deno, all the features of Nx are available Make sure you have Deno installed on your machine. Consult the [Deno docs for more details](https://deno.com/manual/getting_started/installation) {% /callout %} -```shell +```shell {% skipRescope=true %} nx add @nx/deno ``` diff --git a/docs/shared/recipes/add-stack/add-express.md b/docs/shared/recipes/add-stack/add-express.md index 514c990b79398..b128ba694294b 100644 --- a/docs/shared/recipes/add-stack/add-express.md +++ b/docs/shared/recipes/add-stack/add-express.md @@ -21,7 +21,7 @@ Because we are using an Nx plugin for Express, all the features of Nx are availa Make sure to install the `@nx/express` version that matches the version of `nx` in your repository. If the version numbers get out of sync, you can encounter some difficult to debug errors. You can [fix Nx version mismatches with this recipe](/recipes/tips-n-tricks/keep-nx-versions-in-sync). {% /callout %} -```shell +```shell {% skipRescope=true %} nx add @nx/express ``` diff --git a/docs/shared/recipes/add-stack/add-fastify.md b/docs/shared/recipes/add-stack/add-fastify.md index 44d77ad8efe3a..4bcfaafa6a71d 100644 --- a/docs/shared/recipes/add-stack/add-fastify.md +++ b/docs/shared/recipes/add-stack/add-fastify.md @@ -34,7 +34,7 @@ If you are adding Fastify to an existing repo, continue to the next section. ## Install the Node Plugin -```shell +```shell {% skipRescope=true %} nx add @nx/node ``` diff --git a/docs/shared/recipes/add-stack/add-lit.md b/docs/shared/recipes/add-stack/add-lit.md index d36eb3ae1d3bb..42bf132a92a48 100644 --- a/docs/shared/recipes/add-stack/add-lit.md +++ b/docs/shared/recipes/add-stack/add-lit.md @@ -26,7 +26,7 @@ Install all the dependencies we need: {% tabs %} {%tab label="npm"%} -```shell +```shell {% skipRescope=true %} nx add @nx/node npm add -D lit http-server ``` @@ -34,7 +34,7 @@ npm add -D lit http-server {% /tab %} {%tab label="yarn"%} -```shell +```shell {% skipRescope=true %} nx add @nx/node yarn add -D lit http-server ``` @@ -42,7 +42,7 @@ yarn add -D lit http-server {% /tab %} {%tab label="pnpm"%} -```shell +```shell {% skipRescope=true %} nx add @nx/node pnpm add -D lit http-server ``` diff --git a/docs/shared/recipes/deployment/deno-deploy.md b/docs/shared/recipes/deployment/deno-deploy.md index b175cb9718d55..76c7488465df9 100644 --- a/docs/shared/recipes/deployment/deno-deploy.md +++ b/docs/shared/recipes/deployment/deno-deploy.md @@ -18,7 +18,7 @@ This creates a single Deno application. You can also add a new Deno application to an existing Nx monorepo workspace. Make sure you have the `@nx/deno` package installed: -```shell +```shell {% skipRescope=true %} nx add @nx/deno ``` diff --git a/docs/shared/recipes/deployment/deno-netlify-edge-functions.md b/docs/shared/recipes/deployment/deno-netlify-edge-functions.md index 5ac3a976c525f..9e561e669e71f 100644 --- a/docs/shared/recipes/deployment/deno-netlify-edge-functions.md +++ b/docs/shared/recipes/deployment/deno-netlify-edge-functions.md @@ -16,7 +16,7 @@ This creates a single Deno application. You can also add a new Deno application to an existing Nx monorepo workspace. Make sure you have the `@nx/deno` package installed: -```shell +```shell {% skipRescope=true %} nx add @nx/deno ``` diff --git a/docs/shared/recipes/deployment/node-aws-lambda.md b/docs/shared/recipes/deployment/node-aws-lambda.md index 45acaa327aa8e..ba6f7cdebbb07 100644 --- a/docs/shared/recipes/deployment/node-aws-lambda.md +++ b/docs/shared/recipes/deployment/node-aws-lambda.md @@ -21,7 +21,7 @@ npx create-nx-workspace@latest my-functions --preset=@nx/aws-lambda First, make sure you have `@nx/aws-lambda` installed. -```shell +```shell {% skipRescope=true %} nx add @nx/aws-lambda ``` diff --git a/docs/shared/recipes/deployment/node-serverless-functions-netlify.md b/docs/shared/recipes/deployment/node-serverless-functions-netlify.md index 5bb1b5d6e8cb9..f4565d90febad 100644 --- a/docs/shared/recipes/deployment/node-serverless-functions-netlify.md +++ b/docs/shared/recipes/deployment/node-serverless-functions-netlify.md @@ -23,7 +23,7 @@ npx create-nx-workspace@latest my-functions --preset=@nx/netlify --site=my-site You will need to install `@nx/netlify` if you haven't already. -```shell +```shell {% skipRescope=true %} nx add @nx/netlify ``` diff --git a/docs/shared/recipes/generators/local-generators.md b/docs/shared/recipes/generators/local-generators.md index c6fcf389e6367..c7eed6532f434 100644 --- a/docs/shared/recipes/generators/local-generators.md +++ b/docs/shared/recipes/generators/local-generators.md @@ -14,7 +14,7 @@ caption="Demoes how to use Nx generators in a PNPM workspace to automate the cre If you don't already have a local plugin, use Nx to generate one: -```shell +```shell {% skipRescope=true %} nx add @nx/plugin nx g @nx/plugin:plugin my-plugin ``` diff --git a/docs/shared/recipes/nx-release/get-started-with-nx-release.md b/docs/shared/recipes/nx-release/get-started-with-nx-release.md index a7ff1174c3394..5fd8c5c7dde38 100644 --- a/docs/shared/recipes/nx-release/get-started-with-nx-release.md +++ b/docs/shared/recipes/nx-release/get-started-with-nx-release.md @@ -12,7 +12,7 @@ Ensure that Nx is installed in your monorepo. Check out the [Installation docs]( The [`@nx/js` package](/nx-api/js) is required for Nx Release to manage and release JavaScript packages. Add it if it is not already installed: -```shell +```shell {% skipRescope=true %} nx add @nx/js ``` diff --git a/docs/shared/recipes/plugins/local-executors.md b/docs/shared/recipes/plugins/local-executors.md index f3a1043a2a369..e910730e190da 100644 --- a/docs/shared/recipes/plugins/local-executors.md +++ b/docs/shared/recipes/plugins/local-executors.md @@ -8,7 +8,7 @@ This guide shows you how to create, run, and customize executors within your Nx If you don't already have a local plugin, use Nx to generate one: -```shell +```shell {% skipRescope=true %} nx add @nx/plugin nx g @nx/plugin:plugin my-plugin ``` diff --git a/docs/shared/recipes/tips-n-tricks/compile-multiple-formats.md b/docs/shared/recipes/tips-n-tricks/compile-multiple-formats.md index 7e1107e5a1b40..3b663af534494 100644 --- a/docs/shared/recipes/tips-n-tricks/compile-multiple-formats.md +++ b/docs/shared/recipes/tips-n-tricks/compile-multiple-formats.md @@ -11,7 +11,7 @@ It can be difficult to set up a typescript library to compile to ESM and CommonJ If you do not use Rollup already, install the corresponding Nx plugin as follows: -```shell +```shell {% skipRescope=true %} nx add @nx/rollup ``` diff --git a/nx-dev/ui-fence/src/lib/fence.tsx b/nx-dev/ui-fence/src/lib/fence.tsx index 057ed3e4942a0..35e2cf78a2eec 100644 --- a/nx-dev/ui-fence/src/lib/fence.tsx +++ b/nx-dev/ui-fence/src/lib/fence.tsx @@ -92,6 +92,7 @@ export interface FenceProps { lineGroups: Record; language: string; enableCopy: boolean; + skipRescope?: boolean; selectedLineGroup?: string; onLineGroupSelectionChange?: (selection: string) => void; } @@ -106,6 +107,7 @@ export function Fence({ language, enableCopy, selectedLineGroup, + skipRescope, onLineGroupSelectionChange, }: FenceProps) { if (highlightLines) { @@ -162,7 +164,7 @@ export function Fence({ }; }, [copied]); const showRescopeMessage = - children.includes('@nx/') || command.includes('@nx/'); + (!skipRescope && children.includes('@nx/')) || command.includes('@nx/'); function highlightChange(item: { label: string; value: string }) { onLineGroupSelectionChange?.(item.value); } diff --git a/nx-dev/ui-markdoc/src/lib/nodes/fence.schema.tsx b/nx-dev/ui-markdoc/src/lib/nodes/fence.schema.tsx index 34575fff23456..e1591cab3f533 100644 --- a/nx-dev/ui-markdoc/src/lib/nodes/fence.schema.tsx +++ b/nx-dev/ui-markdoc/src/lib/nodes/fence.schema.tsx @@ -11,6 +11,7 @@ export const fence: Schema = { command: { type: 'String', default: '' }, path: { type: 'String', default: '~/workspace' }, process: { type: 'Boolean', render: false, default: true }, + skipRescope: { type: 'Boolean', default: false }, enableCopy: { type: 'Boolean', default: true }, }, transform(node, config) {