From 40d6c1e4c861128c481ba70b02c67eb2ab4bed3f Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Wed, 13 Sep 2023 16:22:22 -0400 Subject: [PATCH] feat(core): hide vue preset options from create-nx-workspace --- docs/generated/cli/create-nx-workspace.md | 2 +- .../packages/nx/documents/create-nx-workspace.md | 2 +- .../create-nx-workspace/bin/create-nx-workspace.ts | 12 ++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/generated/cli/create-nx-workspace.md b/docs/generated/cli/create-nx-workspace.md index 2d26849dfb9665..1d129d85d048c8 100644 --- a/docs/generated/cli/create-nx-workspace.md +++ b/docs/generated/cli/create-nx-workspace.md @@ -139,7 +139,7 @@ Package manager to use Type: `string` -Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular-monorepo", "angular-standalone", "react-monorepo", "react-standalone", "vue-monorepo", "vue-standalone", "next", "nextjs-standalone", "react-native", "expo", "nest", "express", "react", "angular", "node-standalone", "node-monorepo", "ts-standalone"]. To build your own see https://nx.dev/extending-nx/recipes/create-preset +Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular-monorepo", "angular-standalone", "react-monorepo", "react-standalone", "next", "nextjs-standalone", "react-native", "expo", "nest", "express", "react", "angular", "node-standalone", "node-monorepo", "ts-standalone"]. To build your own see https://nx.dev/extending-nx/recipes/create-preset ### routing diff --git a/docs/generated/packages/nx/documents/create-nx-workspace.md b/docs/generated/packages/nx/documents/create-nx-workspace.md index 2d26849dfb9665..1d129d85d048c8 100644 --- a/docs/generated/packages/nx/documents/create-nx-workspace.md +++ b/docs/generated/packages/nx/documents/create-nx-workspace.md @@ -139,7 +139,7 @@ Package manager to use Type: `string` -Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular-monorepo", "angular-standalone", "react-monorepo", "react-standalone", "vue-monorepo", "vue-standalone", "next", "nextjs-standalone", "react-native", "expo", "nest", "express", "react", "angular", "node-standalone", "node-monorepo", "ts-standalone"]. To build your own see https://nx.dev/extending-nx/recipes/create-preset +Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular-monorepo", "angular-standalone", "react-monorepo", "react-standalone", "next", "nextjs-standalone", "react-native", "expo", "nest", "express", "react", "angular", "node-standalone", "node-monorepo", "ts-standalone"]. To build your own see https://nx.dev/extending-nx/recipes/create-preset ### routing diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index 712a477d7b15ef..5bb6cde5643651 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -112,6 +112,10 @@ export const commandsObject: yargs.Argv = yargs describe: chalk.dim`Customizes the initial content of your workspace. Default presets include: [${Object.values( Preset ) + // TODO(v17): Remove this option when @nx/vue is released. + .filter( + (p) => p !== Preset.VueStandalone && p !== Preset.VueMonorepo + ) .map((p) => `"${p}"`) .join( ', ' @@ -406,10 +410,10 @@ async function determineStack( name: `react`, message: `React: Configures a React application with your framework of choice.`, }, - { - name: `vue`, - message: `Vue: Configures a Vue application with modern tooling.`, - }, + // { + // name: `vue`, + // message: `Vue: Configures a Vue application with modern tooling.`, + // }, { name: `angular`, message: `Angular: Configures a Angular application with modern tooling.`,