From edad5ef48ae80de3e170544d449165b5f97046f8 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Fri, 2 Dec 2022 18:11:37 +0200 Subject: [PATCH] fix(bundling): hide newProject from vite config gen (#13592) --- docs/generated/packages/vite.json | 3 ++- packages/vite/src/generators/configuration/schema.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/generated/packages/vite.json b/docs/generated/packages/vite.json index 89d64261c7acb..6c9acaa5e88bf 100644 --- a/docs/generated/packages/vite.json +++ b/docs/generated/packages/vite.json @@ -80,7 +80,8 @@ "newProject": { "type": "boolean", "description": "Is this a new project?", - "default": false + "default": false, + "hidden": true } }, "examplesFile": "This is a generator for setting up Vite configuration for an existing React or Web application. It will change the build and serve targets to use the `@nrwl/vite` executors for serving and building the application. This generator will modify your code, so make sure to commit your changes before running it.\n\n```bash\nnx g @nrwl/vite:configuration\n```\n\nWhen running this generator, you will be prompted to provide the following:\n\n- The `project`, as the name of the project you want to generate the configuration for.\n- The `uiFramework` you want to use. Supported values are: `react` and `none`.\n\nYou must provide a `project` and a `uiFramework` for the generator to work.\n\nYou can read more about how this generator works, in the [Vite package overview page](/packages/vite).\n\n## Examples\n\n### Change a React app to use Vite\n\n```bash\nnx g @nrwl/vite:configuration --project=my-app --uiFramework=react\n```\n\nThis will change the `my-app` project to use Vite instead of the default Webpack configuration. The changes this generator will do are described in the [Vite package overview page](/packages/vite).\n\n### Change a Web app to use Vite\n\n```bash\nnx g @nrwl/vite:configuration --project=my-app --uiFramework=none\n```\n\nThis will change the `my-app` project to use Vite instead of the existing bundler configuration.\n", diff --git a/packages/vite/src/generators/configuration/schema.json b/packages/vite/src/generators/configuration/schema.json index 29614c003e564..c506bd7691629 100644 --- a/packages/vite/src/generators/configuration/schema.json +++ b/packages/vite/src/generators/configuration/schema.json @@ -31,7 +31,8 @@ "newProject": { "type": "boolean", "description": "Is this a new project?", - "default": false + "default": false, + "hidden": true } }, "examplesFile": "../../../docs/configuration-examples.md"