create-nx-plugin 17.0.5 → 17.0.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2024 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2023 Narwhal Technologies Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -1,9 +1,4 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
7
2
 
8
3
  <div style="text-align: center;">
9
4
 
@@ -22,7 +17,7 @@
22
17
 
23
18
  # `> npx create-nx-plugin`
24
19
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
22
  ## What is It?
28
23
 
@@ -40,5 +35,5 @@ It's a command to create an Nx workspace to develop an Nx plugin.
40
35
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
41
36
 
42
37
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
43
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
38
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
44
39
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import yargs = require('yargs');
3
- import { NxCloud } from 'create-nx-workspace/src/utils/nx/nx-cloud';
3
+ import { CI } from 'create-nx-workspace/src/utils/ci/ci-list';
4
4
  import type { PackageManager } from 'create-nx-workspace/src/utils/package-manager';
5
5
  export declare const yargsDecorator: {
6
6
  'Options:': string;
@@ -18,8 +18,9 @@ interface CreateNxPluginArguments {
18
18
  pluginName: string;
19
19
  createPackageName?: string;
20
20
  packageManager: PackageManager;
21
+ ci: CI;
21
22
  allPrompts: boolean;
22
- nxCloud: NxCloud;
23
+ nxCloud: boolean;
23
24
  }
24
25
  export declare const commandsObject: yargs.Argv<CreateNxPluginArguments>;
25
26
  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.withAllPrompts, yargs_options_1.withPackageManager, yargs_options_1.withGitOptions), async (argv) => {
72
+ }), yargs_options_1.withNxCloud, yargs_options_1.withCI, 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,11 +100,8 @@ 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 !== 'skip',
104
- meta: [
105
- ab_testing_1.messages.codeOfSelectedPromptMessage('setupCI'),
106
- ab_testing_1.messages.codeOfSelectedPromptMessage('setupNxCloud'),
107
- ],
103
+ useCloud: parsedArgs.nxCloud,
104
+ meta: ab_testing_1.messages.codeOfSelectedPromptMessage('nxCloudCreation'),
108
105
  });
109
106
  if (parsedArgs.nxCloud && workspaceInfo.nxCloudInfo) {
110
107
  (0, nx_cloud_1.printNxCloudSuccessMessage)(workspaceInfo.nxCloudInfo);
@@ -123,12 +120,14 @@ async function normalizeArgsMiddleware(argv) {
123
120
  const packageManager = await (0, prompts_1.determinePackageManager)(argv);
124
121
  const defaultBase = await (0, prompts_1.determineDefaultBase)(argv);
125
122
  const nxCloud = await (0, prompts_1.determineNxCloud)(argv);
123
+ const ci = await (0, prompts_1.determineCI)(argv, nxCloud);
126
124
  Object.assign(argv, {
127
125
  pluginName,
128
126
  createPackageName,
129
127
  nxCloud,
130
128
  packageManager,
131
129
  defaultBase,
130
+ ci,
132
131
  });
133
132
  }
134
133
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-plugin",
3
- "version": "17.0.5",
3
+ "version": "v17.0.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.0.5",
32
+ "create-nx-workspace": "v17.0.6",
33
33
  "chalk": "^4.1.0",
34
34
  "enquirer": "~2.3.6",
35
35
  "tslib": "^2.3.0",