create-nx-workspace 23.2.1 → 23.3.0-beta.1

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,5 +1,6 @@
1
1
  import type { BannerVariant, CompletionMessageKey } from './messages';
2
2
  export declare const NX_CLOUD_URL = "https://nx.dev/nx-cloud";
3
+ export declare const NX_CLOUD_DEMO_URL = "https://cloud.nx.app/demo/intro";
3
4
  /**
4
5
  * Clickable Nx Cloud marketing link for cloud prompt footers. Every
5
6
  * create-nx-workspace prompt reports the same content tag, so the link is a
@@ -8,6 +9,8 @@ export declare const NX_CLOUD_URL = "https://nx.dev/nx-cloud";
8
9
  * without OSC 8 support just render the bare URL (CLOUD-4642).
9
10
  */
10
11
  export declare const NX_CLOUD_HYPERLINK: string;
12
+ /** Same as `NX_CLOUD_HYPERLINK`, pointing at the Nx Cloud demo (CLOUD-4640). */
13
+ export declare const NX_CLOUD_DEMO_HYPERLINK: string;
11
14
  /**
12
15
  * Returns the flow variant for tracking (0, 1, or 2).
13
16
  * Returns '0' for docs generation to preserve deterministic output.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.messages = exports.PromptMessages = exports.NxCloudChoices = exports.NX_CLOUD_HYPERLINK = exports.NX_CLOUD_URL = void 0;
3
+ exports.messages = exports.PromptMessages = exports.NxCloudChoices = exports.NX_CLOUD_DEMO_HYPERLINK = exports.NX_CLOUD_HYPERLINK = exports.NX_CLOUD_DEMO_URL = exports.NX_CLOUD_URL = void 0;
4
4
  exports.getFlowVariant = getFlowVariant;
5
5
  exports.getCompletionMessageKeyForVariant = getCompletionMessageKeyForVariant;
6
6
  exports.isEnterpriseCloudUrl = isEnterpriseCloudUrl;
@@ -15,6 +15,8 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
15
15
  const is_ci_1 = require("../ci/is-ci");
16
16
  const terminal_link_1 = require("../terminal-link");
17
17
  exports.NX_CLOUD_URL = 'https://nx.dev/nx-cloud';
18
+ exports.NX_CLOUD_DEMO_URL = 'https://cloud.nx.app/demo/intro';
19
+ const UTM_QUERY = '?utm_source=nx-cli&utm_medium=cli&utm_campaign=nx-cloud-connect&utm_content=create-nx-workspace';
18
20
  /**
19
21
  * Clickable Nx Cloud marketing link for cloud prompt footers. Every
20
22
  * create-nx-workspace prompt reports the same content tag, so the link is a
@@ -22,7 +24,9 @@ exports.NX_CLOUD_URL = 'https://nx.dev/nx-cloud';
22
24
  * the clean `NX_CLOUD_URL` while clicks carry UTM attribution; terminals
23
25
  * without OSC 8 support just render the bare URL (CLOUD-4642).
24
26
  */
25
- exports.NX_CLOUD_HYPERLINK = (0, terminal_link_1.terminalLink)(exports.NX_CLOUD_URL, `${exports.NX_CLOUD_URL}?utm_source=nx-cli&utm_medium=cli&utm_campaign=nx-cloud-connect&utm_content=create-nx-workspace`);
27
+ exports.NX_CLOUD_HYPERLINK = (0, terminal_link_1.terminalLink)(exports.NX_CLOUD_URL, `${exports.NX_CLOUD_URL}${UTM_QUERY}`);
28
+ /** Same as `NX_CLOUD_HYPERLINK`, pointing at the Nx Cloud demo (CLOUD-4640). */
29
+ exports.NX_CLOUD_DEMO_HYPERLINK = (0, terminal_link_1.terminalLink)(exports.NX_CLOUD_DEMO_URL, `${exports.NX_CLOUD_DEMO_URL}${UTM_QUERY}`);
26
30
  // Flow variant controls both tracking and banner display (CLOUD-4235)
27
31
  // Variants: 0 = control, 1 = updated prompt, 2 = no prompt (auto-connect)
28
32
  const FLOW_VARIANT_CACHE_FILE = (0, node_path_1.join)((0, node_os_1.tmpdir)(), 'nx-cnw-flow-variant');
@@ -179,7 +183,7 @@ const messageOptions = {
179
183
  { value: 'circleci', name: 'Circle CI\n' },
180
184
  { value: 'skip', name: 'Do it later' },
181
185
  ],
182
- footer: `\nSelf-healing CI, remote caching, and task distribution are provided by Nx Cloud: ${exports.NX_CLOUD_HYPERLINK}`,
186
+ footer: `\nSelf-healing CI, remote caching, and task distribution are provided by Nx Cloud: ${exports.NX_CLOUD_HYPERLINK}\nSee it in action: ${exports.NX_CLOUD_DEMO_HYPERLINK}`,
183
187
  fallback: { value: 'skip', key: 'setupNxCloud' },
184
188
  completionMessage: 'ci-setup',
185
189
  },
@@ -197,7 +201,7 @@ const messageOptions = {
197
201
  { value: 'yes', name: 'Yes' },
198
202
  { value: 'skip', name: 'Skip' },
199
203
  ],
200
- footer: `\nAutomatically fix broken PRs, 70% faster CI: ${exports.NX_CLOUD_HYPERLINK}`,
204
+ footer: `\nAutomatically fix broken PRs, 70% faster CI: ${exports.NX_CLOUD_HYPERLINK}\nSee it in action: ${exports.NX_CLOUD_DEMO_HYPERLINK}`,
201
205
  fallback: undefined,
202
206
  completionMessage: 'platform-setup',
203
207
  },
@@ -215,7 +219,7 @@ const messageOptions = {
215
219
  { value: 'skip', name: 'Skip for now' },
216
220
  { value: 'never', name: chalk_1.default.dim("No, don't ask again") },
217
221
  ],
218
- footer: `\nFree for small teams. Remote caching and task distribution. 2-minute setup: ${exports.NX_CLOUD_HYPERLINK}`,
222
+ footer: `\nFree for small teams. Remote caching and task distribution. 2-minute setup: ${exports.NX_CLOUD_HYPERLINK}\nSee it in action: ${exports.NX_CLOUD_DEMO_HYPERLINK}`,
219
223
  fallback: undefined,
220
224
  completionMessage: 'platform-setup',
221
225
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "23.2.1",
3
+ "version": "23.3.0-beta.1",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast Builds",
6
6
  "repository": {