create-nx-plugin 17.3.0-beta.4 → 17.3.0-beta.6

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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import yargs = require('yargs');
3
- import { CI } from 'create-nx-workspace/src/utils/ci/ci-list';
3
+ import { NxCloud } from 'create-nx-workspace/src/utils/nx/nx-cloud';
4
4
  import type { PackageManager } from 'create-nx-workspace/src/utils/package-manager';
5
5
  export declare const yargsDecorator: {
6
6
  'Options:': string;
@@ -18,9 +18,8 @@ interface CreateNxPluginArguments {
18
18
  pluginName: string;
19
19
  createPackageName?: string;
20
20
  packageManager: PackageManager;
21
- ci: CI;
22
21
  allPrompts: boolean;
23
- nxCloud: boolean;
22
+ nxCloud: NxCloud;
24
23
  }
25
24
  export declare const commandsObject: yargs.Argv<CreateNxPluginArguments>;
26
25
  export {};
@@ -69,7 +69,7 @@ exports.commandsObject = yargs
69
69
  .option('createPackageName', {
70
70
  describe: 'Name of the CLI package to create workspace with plugin',
71
71
  type: 'string',
72
- }), yargs_options_1.withNxCloud, yargs_options_1.withCI, yargs_options_1.withAllPrompts, yargs_options_1.withPackageManager, yargs_options_1.withGitOptions), async (argv) => {
72
+ }), yargs_options_1.withNxCloud, yargs_options_1.withAllPrompts, yargs_options_1.withPackageManager, yargs_options_1.withGitOptions), async (argv) => {
73
73
  await main(argv).catch((error) => {
74
74
  const { version } = require('../package.json');
75
75
  output_1.output.error({
@@ -100,8 +100,11 @@ async function main(parsedArgs) {
100
100
  await (0, ab_testing_1.recordStat)({
101
101
  nxVersion,
102
102
  command: 'create-nx-workspace',
103
- useCloud: parsedArgs.nxCloud,
104
- meta: ab_testing_1.messages.codeOfSelectedPromptMessage('nxCloudCreation'),
103
+ useCloud: parsedArgs.nxCloud !== 'skip',
104
+ meta: [
105
+ ab_testing_1.messages.codeOfSelectedPromptMessage('setupCI'),
106
+ ab_testing_1.messages.codeOfSelectedPromptMessage('setupNxCloud'),
107
+ ],
105
108
  });
106
109
  if (parsedArgs.nxCloud && workspaceInfo.nxCloudInfo) {
107
110
  (0, nx_cloud_1.printNxCloudSuccessMessage)(workspaceInfo.nxCloudInfo);
@@ -120,14 +123,12 @@ async function normalizeArgsMiddleware(argv) {
120
123
  const packageManager = await (0, prompts_1.determinePackageManager)(argv);
121
124
  const defaultBase = await (0, prompts_1.determineDefaultBase)(argv);
122
125
  const nxCloud = await (0, prompts_1.determineNxCloud)(argv);
123
- const ci = await (0, prompts_1.determineCI)(argv, nxCloud);
124
126
  Object.assign(argv, {
125
127
  pluginName,
126
128
  createPackageName,
127
129
  nxCloud,
128
130
  packageManager,
129
131
  defaultBase,
130
- ci,
131
132
  });
132
133
  }
133
134
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-plugin",
3
- "version": "17.3.0-beta.4",
3
+ "version": "17.3.0-beta.6",
4
4
  "private": false,
5
5
  "description": "This package is used to scaffold a brand-new workspace used to develop an Nx plugin, and sets up a pre-configured plugin with the specified name. The new plugin is created with a default generator, executor, and e2e app.",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "homepage": "https://nx.dev",
31
31
  "dependencies": {
32
- "create-nx-workspace": "17.3.0-beta.4",
32
+ "create-nx-workspace": "17.3.0-beta.6",
33
33
  "chalk": "^4.1.0",
34
34
  "enquirer": "~2.3.6",
35
35
  "tslib": "^2.3.0",