Skip to content

Commit

Permalink
fix(bundling): hide newProject from vite config gen (#13592)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Dec 2, 2022
1 parent fb9467a commit edad5ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/generated/packages/vite.json
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/vite/src/generators/configuration/schema.json
Expand Up @@ -31,7 +31,8 @@
"newProject": {
"type": "boolean",
"description": "Is this a new project?",
"default": false
"default": false,
"hidden": true
}
},
"examplesFile": "../../../docs/configuration-examples.md"
Expand Down

1 comment on commit edad5ef

@vercel
Copy link

@vercel vercel bot commented on edad5ef Dec 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.