create-nx-plugin 17.0.3 → 17.0.4

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-2023 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2024 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,4 +1,9 @@
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>
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>
2
7
 
3
8
  <div style="text-align: center;">
4
9
 
@@ -17,7 +22,7 @@
17
22
 
18
23
  # `> npx create-nx-plugin`
19
24
 
20
- Nx is a next generation build system with first class monorepo support and powerful integrations.
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.
21
26
 
22
27
  ## What is It?
23
28
 
@@ -35,5 +40,5 @@ It's a command to create an Nx workspace to develop an Nx plugin.
35
40
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
36
41
 
37
42
  <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"
38
- width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
43
+ width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
39
44
 
@@ -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.0.3",
3
+ "version": "17.0.4",
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.3",
32
+ "create-nx-workspace": "17.0.4",
33
33
  "chalk": "^4.1.0",
34
34
  "enquirer": "~2.3.6",
35
35
  "tslib": "^2.3.0",