create-nx-workspace 19.7.0-beta.3 → 19.7.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,61 +27,63 @@ exports.commandsObject = yargs
27
27
  // this is the default and only command
28
28
  '$0 [name] [options]', 'Create a new Nx workspace', (yargs) => (0, yargs_options_1.withOptions)(yargs
29
29
  .option('name', {
30
- describe: chalk.dim `Workspace name (e.g. org name)`,
30
+ describe: chalk.dim `Workspace name (e.g. org name).`,
31
31
  type: 'string',
32
32
  })
33
33
  .option('preset', {
34
+ // This describe is hard to auto-fix because of the loop in the code.
35
+ // eslint-disable-next-line @nx/workspace/valid-command-object
34
36
  describe: chalk.dim `Customizes the initial content of your workspace. Default presets include: [${Object.values(preset_1.Preset)
35
37
  .map((p) => `"${p}"`)
36
- .join(', ')}]. To build your own see https://nx.dev/extending-nx/recipes/create-preset`,
38
+ .join(', ')}]. To build your own see https://nx.dev/extending-nx/recipes/create-preset.`,
37
39
  type: 'string',
38
40
  })
39
41
  .option('interactive', {
40
- describe: chalk.dim `Enable interactive mode with presets`,
42
+ describe: chalk.dim `Enable interactive mode with presets.`,
41
43
  type: 'boolean',
42
44
  default: true,
43
45
  })
44
46
  .option('workspaceType', {
45
- describe: chalk.dim `The type of workspace to create`,
47
+ describe: chalk.dim `The type of workspace to create.`,
46
48
  choices: ['integrated', 'package-based', 'standalone'],
47
49
  type: 'string',
48
50
  })
49
51
  .option('appName', {
50
- describe: chalk.dim `The name of the app when using a monorepo with certain stacks`,
52
+ describe: chalk.dim `The name of the app when using a monorepo with certain stacks.`,
51
53
  type: 'string',
52
54
  })
53
55
  .option('style', {
54
- describe: chalk.dim `Stylesheet type to be used with certain stacks`,
56
+ describe: chalk.dim `Stylesheet type to be used with certain stacks.`,
55
57
  type: 'string',
56
58
  })
57
59
  .option('standaloneApi', {
58
- describe: chalk.dim `Use Standalone Components if generating an Angular app`,
60
+ describe: chalk.dim `Use Standalone Components if generating an Angular app.`,
59
61
  type: 'boolean',
60
62
  default: true,
61
63
  })
62
64
  .option('routing', {
63
- describe: chalk.dim `Add a routing setup for an Angular app`,
65
+ describe: chalk.dim `Add a routing setup for an Angular app.`,
64
66
  type: 'boolean',
65
67
  default: true,
66
68
  })
67
69
  .option('bundler', {
68
- describe: chalk.dim `Bundler to be used to build the app`,
70
+ describe: chalk.dim `Bundler to be used to build the app.`,
69
71
  type: 'string',
70
72
  })
71
73
  .option('framework', {
72
- describe: chalk.dim `Framework option to be used with certain stacks`,
74
+ describe: chalk.dim `Framework option to be used with certain stacks.`,
73
75
  type: 'string',
74
76
  })
75
77
  .option('docker', {
76
- describe: chalk.dim `Generate a Dockerfile for the Node API`,
78
+ describe: chalk.dim `Generate a Dockerfile for the Node API.`,
77
79
  type: 'boolean',
78
80
  })
79
81
  .option('nextAppDir', {
80
- describe: chalk.dim `Enable the App Router for Next.js`,
82
+ describe: chalk.dim `Enable the App Router for Next.js.`,
81
83
  type: 'boolean',
82
84
  })
83
85
  .option('nextSrcDir', {
84
- describe: chalk.dim `Generate a 'src/' directory for Next.js`,
86
+ describe: chalk.dim `Generate a 'src/' directory for Next.js.`,
85
87
  type: 'boolean',
86
88
  })
87
89
  .option('e2eTestRunner', {
@@ -90,7 +92,7 @@ exports.commandsObject = yargs
90
92
  type: 'string',
91
93
  })
92
94
  .option('ssr', {
93
- describe: chalk.dim `Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application`,
95
+ describe: chalk.dim `Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.`,
94
96
  type: 'boolean',
95
97
  })
96
98
  .option('prefix', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "19.7.0-beta.3",
3
+ "version": "19.7.0-beta.5",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast CI",
6
6
  "repository": {
@@ -29,7 +29,7 @@ function withUseGitHub(argv) {
29
29
  function withAllPrompts(argv) {
30
30
  return argv.option('allPrompts', {
31
31
  alias: 'a',
32
- describe: chalk.dim `Show all prompts`,
32
+ describe: chalk.dim `Show all prompts.`,
33
33
  type: 'boolean',
34
34
  default: false,
35
35
  });
@@ -37,7 +37,7 @@ function withAllPrompts(argv) {
37
37
  function withPackageManager(argv) {
38
38
  return argv.option('packageManager', {
39
39
  alias: 'pm',
40
- describe: chalk.dim `Package manager to use`,
40
+ describe: chalk.dim `Package manager to use.`,
41
41
  choices: [...package_manager_1.packageManagerList].sort(),
42
42
  defaultDescription: 'npm',
43
43
  type: 'string',
@@ -47,25 +47,25 @@ function withGitOptions(argv) {
47
47
  return argv
48
48
  .option('defaultBase', {
49
49
  defaultDescription: 'main',
50
- describe: chalk.dim `Default base to use for new projects`,
50
+ describe: chalk.dim `Default base to use for new projects.`,
51
51
  type: 'string',
52
52
  })
53
53
  .option('skipGit', {
54
- describe: chalk.dim `Skip initializing a git repository`,
54
+ describe: chalk.dim `Skip initializing a git repository.`,
55
55
  type: 'boolean',
56
56
  default: false,
57
57
  alias: 'g',
58
58
  })
59
59
  .option('commit.name', {
60
- describe: chalk.dim `Name of the committer`,
60
+ describe: chalk.dim `Name of the committer.`,
61
61
  type: 'string',
62
62
  })
63
63
  .option('commit.email', {
64
- describe: chalk.dim `E-mail of the committer`,
64
+ describe: chalk.dim `E-mail of the committer.`,
65
65
  type: 'string',
66
66
  })
67
67
  .option('commit.message', {
68
- describe: chalk.dim `Commit message`,
68
+ describe: chalk.dim `Commit message.`,
69
69
  type: 'string',
70
70
  default: 'Initial commit',
71
71
  });