Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(core): make CNW preset property open for custom presets
  • Loading branch information
meeroslav authored and FrozenPandaz committed Apr 19, 2022
1 parent 92737a6 commit 0078e3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions docs/generated/cli/create-nx-workspace.md
Expand Up @@ -85,9 +85,7 @@ Package manager to use

Type: string

Choices: [apps, empty, core, npm, ts, web-components, angular, angular-nest, react, react-express, react-native, next, nest, express]

Customizes the initial content of your workspace. To build your own see https://nx.dev/nx-plugin/overview#preset
Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular", "angular-nest", "react", "react-express", "react-native", "next", "nest", "express"]. To build your own see https://nx.dev/nx-plugin/overview#preset

### style

Expand Down
9 changes: 7 additions & 2 deletions packages/create-nx-workspace/bin/create-nx-workspace.ts
Expand Up @@ -132,8 +132,13 @@ export const commandsObject: yargs.Argv<Arguments> = yargs
type: 'string',
})
.option('preset', {
describe: chalk.dim`Customizes the initial content of your workspace. To build your own see https://nx.dev/nx-plugin/overview#preset`,
choices: Object.values(Preset),
describe: chalk.dim`Customizes the initial content of your workspace. Default presets include: [${Object.values(
Preset
)
.map((p) => `"${p}"`)
.join(
', '
)}]. To build your own see https://nx.dev/nx-plugin/overview#preset`,
type: 'string',
})
.option('appName', {
Expand Down

0 comments on commit 0078e3f

Please sign in to comment.