create-nx-workspace 22.4.0 → 22.4.2
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/bin/create-nx-workspace.d.ts.map +1 -1
- package/bin/create-nx-workspace.js +12 -12
- package/package.json +1 -1
- package/src/create-workspace.d.ts.map +1 -1
- package/src/create-workspace.js +1 -1
- package/src/internal-utils/prompts.d.ts.map +1 -1
- package/src/internal-utils/prompts.js +29 -14
- package/src/utils/git/git.d.ts.map +1 -1
- package/src/utils/git/git.js +2 -14
- package/src/utils/nx/ab-testing.d.ts +13 -0
- package/src/utils/nx/ab-testing.d.ts.map +1 -1
- package/src/utils/nx/ab-testing.js +37 -2
- package/src/utils/nx/messages.d.ts +5 -1
- package/src/utils/nx/messages.d.ts.map +1 -1
- package/src/utils/nx/messages.js +30 -6
- package/src/utils/nx/nx-cloud.d.ts +1 -1
- package/src/utils/nx/nx-cloud.d.ts.map +1 -1
- package/src/utils/nx/nx-cloud.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-nx-workspace.d.ts","sourceRoot":"","sources":["../../../../packages/create-nx-workspace/bin/create-nx-workspace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,sBAAsB,EAEvB,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EAAiB,MAAM,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-nx-workspace.d.ts","sourceRoot":"","sources":["../../../../packages/create-nx-workspace/bin/create-nx-workspace.ts"],"names":[],"mappings":"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"}
|
|
@@ -209,6 +209,9 @@ process.on('uncaughtException', (error) => {
|
|
|
209
209
|
process.on('SIGINT', async () => {
|
|
210
210
|
const { directory, connectUrl } = (0, create_workspace_1.getInterruptedWorkspaceState)();
|
|
211
211
|
if (directory) {
|
|
212
|
+
const path = require('path');
|
|
213
|
+
const workspaceName = path.basename(directory);
|
|
214
|
+
const githubUrl = `https://github.com/new?name=${encodeURIComponent(workspaceName)}`;
|
|
212
215
|
console.log(''); // New line after ^C
|
|
213
216
|
output_1.output.log({
|
|
214
217
|
title: 'Workspace creation interrupted',
|
|
@@ -216,7 +219,7 @@ process.on('SIGINT', async () => {
|
|
|
216
219
|
`Your workspace was created at: ${directory}`,
|
|
217
220
|
'',
|
|
218
221
|
'To complete the setup:',
|
|
219
|
-
|
|
222
|
+
` 1. Ensure your repo is pushed (e.g. ${githubUrl})`,
|
|
220
223
|
connectUrl
|
|
221
224
|
? ` 2. Connect to Nx Cloud: ${connectUrl}`
|
|
222
225
|
: ' 2. Connect to Nx Cloud: Run "nx connect"',
|
|
@@ -297,24 +300,23 @@ async function normalizeArgsMiddleware(argv) {
|
|
|
297
300
|
const ghAvailable = (0, git_1.isGhCliAvailable)();
|
|
298
301
|
let nxCloud;
|
|
299
302
|
let completionMessageKey;
|
|
303
|
+
const flowVariant = (0, ab_testing_1.getFlowVariant)();
|
|
300
304
|
if (argv.skipGit === true) {
|
|
301
305
|
nxCloud = 'skip';
|
|
302
306
|
completionMessageKey = undefined;
|
|
303
307
|
}
|
|
304
|
-
else if (
|
|
305
|
-
// Variant
|
|
308
|
+
else if (flowVariant === '2') {
|
|
309
|
+
// Variant 2: Skip cloud prompt, auto-connect
|
|
306
310
|
// Respect --nxCloud=skip if explicitly provided
|
|
307
311
|
nxCloud = argv.nxCloud === 'skip' ? 'skip' : 'yes';
|
|
308
312
|
completionMessageKey =
|
|
309
|
-
nxCloud === 'skip' ? undefined :
|
|
313
|
+
nxCloud === 'skip' ? undefined : (0, ab_testing_1.getCompletionMessageKeyForVariant)();
|
|
310
314
|
}
|
|
311
315
|
else {
|
|
312
|
-
//
|
|
316
|
+
// Variants 0 & 1: Show cloud prompt (different copy based on variant)
|
|
313
317
|
nxCloud = await (0, prompts_1.determineNxCloudV2)(argv);
|
|
314
318
|
completionMessageKey =
|
|
315
|
-
nxCloud === 'skip'
|
|
316
|
-
? undefined
|
|
317
|
-
: ab_testing_1.messages.completionMessageOfSelectedPrompt('setupNxCloudV2');
|
|
319
|
+
nxCloud === 'skip' ? undefined : (0, ab_testing_1.getCompletionMessageKeyForVariant)();
|
|
318
320
|
}
|
|
319
321
|
packageManager = argv.packageManager ?? (0, package_manager_1.detectInvokedPackageManager)();
|
|
320
322
|
Object.assign(argv, {
|
|
@@ -325,7 +327,7 @@ async function normalizeArgsMiddleware(argv) {
|
|
|
325
327
|
defaultBase: 'main',
|
|
326
328
|
aiAgents,
|
|
327
329
|
ghAvailable,
|
|
328
|
-
skipCloudConnect:
|
|
330
|
+
skipCloudConnect: flowVariant === '2',
|
|
329
331
|
});
|
|
330
332
|
await (0, ab_testing_1.recordStat)({
|
|
331
333
|
nxVersion: nx_version_1.nxVersion,
|
|
@@ -383,9 +385,7 @@ async function normalizeArgsMiddleware(argv) {
|
|
|
383
385
|
nxCloud = await (0, prompts_1.determineNxCloudV2)(argv);
|
|
384
386
|
useGitHub = nxCloud !== 'skip';
|
|
385
387
|
completionMessageKey =
|
|
386
|
-
nxCloud === 'skip'
|
|
387
|
-
? undefined
|
|
388
|
-
: ab_testing_1.messages.completionMessageOfSelectedPrompt('setupNxCloudV2');
|
|
388
|
+
nxCloud === 'skip' ? undefined : (0, ab_testing_1.getCompletionMessageKeyForVariant)();
|
|
389
389
|
}
|
|
390
390
|
Object.assign(argv, {
|
|
391
391
|
nxCloud,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-workspace.d.ts","sourceRoot":"","sources":["../../../../packages/create-nx-workspace/src/create-workspace.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAGL,aAAa,EACd,MAAM,iBAAiB,CAAC;AAsBzB,wBAAgB,4BAA4B,IAAI;IAC9C,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAEA;AAED,wBAAsB,eAAe,CAAC,CAAC,SAAS,sBAAsB,EACpE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,OAAO,CAAC,EAAE,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"create-workspace.d.ts","sourceRoot":"","sources":["../../../../packages/create-nx-workspace/src/create-workspace.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EAGL,aAAa,EACd,MAAM,iBAAiB,CAAC;AAsBzB,wBAAgB,4BAA4B,IAAI;IAC9C,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAEA;AAED,wBAAsB,eAAe,CAAC,CAAC,SAAS,sBAAsB,EACpE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,OAAO,CAAC,EAAE,CAAC;;;;;GA0LZ;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI7D"}
|
package/src/create-workspace.js
CHANGED
|
@@ -140,7 +140,7 @@ async function createWorkspace(preset, options, rawArgs) {
|
|
|
140
140
|
connectUrl = await (0, nx_cloud_1.createNxCloudOnboardingUrl)(nxCloud, token, directory, useGitHub);
|
|
141
141
|
// Store for SIGINT handler
|
|
142
142
|
cloudConnectUrl = connectUrl;
|
|
143
|
-
nxCloudInfo = await (0, nx_cloud_1.getNxCloudInfo)(connectUrl, pushedToVcs, options.completionMessageKey);
|
|
143
|
+
nxCloudInfo = await (0, nx_cloud_1.getNxCloudInfo)(connectUrl, pushedToVcs, options.completionMessageKey, name);
|
|
144
144
|
}
|
|
145
145
|
else if (isTemplate && nxCloud === 'skip') {
|
|
146
146
|
// Show nx connect message when user skips cloud in template flow
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../../packages/create-nx-workspace/src/internal-utils/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../../packages/create-nx-workspace/src/internal-utils/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,EAEL,cAAc,EAEf,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EACL,KAAK,EAGN,MAAM,6BAA6B,CAAC;AAGrC,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,GAChD,OAAO,CAAC,OAAO,CAAC,CAQlB;AAED,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GACvE,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,CAsD5B;AAED,wBAAsB,2BAA2B,CAC/C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GACrE,OAAO,CAAC,OAAO,CAAC,CAelB;AA4BD,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC,GACD,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,CA4C5B;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GACzE,OAAO,CAAC,KAAK,EAAE,CAAC,CAElB;AAqBD,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACpD,OAAO,CAAC,MAAM,CAAC,CAwBjB;AAED,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,GACtD,OAAO,CAAC,cAAc,CAAC,CAiCzB"}
|
|
@@ -37,21 +37,36 @@ async function determineNxCloudV2(parsedArgs) {
|
|
|
37
37
|
if (!parsedArgs.interactive || (0, is_ci_1.isCI)()) {
|
|
38
38
|
return 'skip';
|
|
39
39
|
}
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
name: 'nxCloud',
|
|
44
|
-
message,
|
|
45
|
-
type: 'autocomplete',
|
|
46
|
-
choices,
|
|
47
|
-
initial,
|
|
48
|
-
}; // types in enquirer are not up to date
|
|
49
|
-
if (footer) {
|
|
50
|
-
promptConfig.footer = () => footer;
|
|
51
|
-
}
|
|
52
|
-
if (hint) {
|
|
53
|
-
promptConfig.hint = () => hint;
|
|
40
|
+
// Variant 2: Skip prompt and auto-connect
|
|
41
|
+
if (!(0, ab_testing_1.shouldShowCloudPrompt)()) {
|
|
42
|
+
return 'github';
|
|
54
43
|
}
|
|
44
|
+
// Variants 0 & 1: Show cloud prompt with different copy
|
|
45
|
+
const variant = (0, ab_testing_1.getFlowVariant)();
|
|
46
|
+
const promptConfig = variant === '1'
|
|
47
|
+
? {
|
|
48
|
+
name: 'nxCloud',
|
|
49
|
+
message: 'Would you like remote caching to make your build faster?',
|
|
50
|
+
type: 'autocomplete',
|
|
51
|
+
choices: [
|
|
52
|
+
{ value: 'yes', name: 'Yes' },
|
|
53
|
+
{ value: 'skip', name: 'Skip' },
|
|
54
|
+
],
|
|
55
|
+
initial: 0,
|
|
56
|
+
hint: () => chalk.dim('\n(can be disabled any time)'),
|
|
57
|
+
footer: () => chalk.dim('\nRead more about remote caching at https://nx.dev/ci/features/remote-cache'),
|
|
58
|
+
}
|
|
59
|
+
: {
|
|
60
|
+
name: 'nxCloud',
|
|
61
|
+
message: 'Try the full Nx platform?',
|
|
62
|
+
type: 'autocomplete',
|
|
63
|
+
choices: [
|
|
64
|
+
{ value: 'yes', name: 'Yes' },
|
|
65
|
+
{ value: 'skip', name: 'Skip' },
|
|
66
|
+
],
|
|
67
|
+
initial: 0,
|
|
68
|
+
footer: () => chalk.dim('\nAutomatically fix broken PRs, 70% faster CI: https://nx.dev/nx-cloud'),
|
|
69
|
+
};
|
|
55
70
|
const result = await enquirer.prompt([
|
|
56
71
|
promptConfig,
|
|
57
72
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/git/git.ts"],"names":[],"mappings":"AAMA,oBAAY,aAAa;IACvB,WAAW,gBAAgB;IAC3B,sBAAsB,2BAA2B;IACjD,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;CAC1B;AAED,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,SAAgB,KAAK,yBAAyB;gBAElC,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAQ1E;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAOxC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAO1C;AA0ED,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,iBAsDF;AAED,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE;IACP,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GACA,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/git/git.ts"],"names":[],"mappings":"AAMA,oBAAY,aAAa;IACvB,WAAW,gBAAgB;IAC3B,sBAAsB,2BAA2B;IACjD,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;CAC1B;AAED,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,SAAgB,KAAK,yBAAyB;gBAElC,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAQ1E;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAOxC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAO1C;AA0ED,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,iBAsDF;AAED,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE;IACP,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GACA,OAAO,CAAC,aAAa,CAAC,CAuGxB"}
|
package/src/utils/git/git.js
CHANGED
|
@@ -235,24 +235,12 @@ async function pushToGitHub(directory, options) {
|
|
|
235
235
|
return VcsPushStatus.PushedToVcs;
|
|
236
236
|
}
|
|
237
237
|
catch (e) {
|
|
238
|
-
const isVerbose = options.verbose || process.env.NX_VERBOSE_LOGGING === 'true';
|
|
239
|
-
const errorMessage = e instanceof Error ? e.message : String(e);
|
|
240
238
|
// Error code 127 means gh wasn't installed
|
|
241
239
|
// GitHubPushSkippedError means user hasn't opted in or we couldn't authenticate
|
|
242
240
|
const title = e instanceof GitHubPushSkippedError || e?.code === 127
|
|
243
241
|
? 'Push your workspace to GitHub.'
|
|
244
|
-
: 'Could not push.
|
|
245
|
-
|
|
246
|
-
output_1.output.log({
|
|
247
|
-
title,
|
|
248
|
-
bodyLines: isVerbose
|
|
249
|
-
? [
|
|
250
|
-
`Go to ${createRepoUrl} and push this workspace.`,
|
|
251
|
-
'Error details:',
|
|
252
|
-
errorMessage,
|
|
253
|
-
]
|
|
254
|
-
: [`Go to ${createRepoUrl} and push this workspace.`],
|
|
255
|
-
});
|
|
242
|
+
: 'Could not push.';
|
|
243
|
+
output_1.output.log({ title });
|
|
256
244
|
return VcsPushStatus.FailedToPushToVcs;
|
|
257
245
|
}
|
|
258
246
|
}
|
|
@@ -3,6 +3,19 @@ import type { CompletionMessageKey } from './messages';
|
|
|
3
3
|
* Returns the flow variant for tracking (0 = preset, 1 = template).
|
|
4
4
|
*/
|
|
5
5
|
export declare function getFlowVariant(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the completion message key based on the current flow variant.
|
|
8
|
+
* - Variant 0: 'platform-setup' (shows "Try the full Nx platform?" prompt)
|
|
9
|
+
* - Variant 1: 'cache-setup' (shows "Would you like remote caching..." prompt)
|
|
10
|
+
* - Variant 2: 'platform-promo' (skips prompt, auto-connects, shows promo message)
|
|
11
|
+
*/
|
|
12
|
+
export declare function getCompletionMessageKeyForVariant(): CompletionMessageKey;
|
|
13
|
+
/**
|
|
14
|
+
* Returns whether the cloud prompt should be shown.
|
|
15
|
+
* Variants 0 and 1 show prompts (with different copy).
|
|
16
|
+
* Variant 2 skips the prompt and auto-connects.
|
|
17
|
+
*/
|
|
18
|
+
export declare function shouldShowCloudPrompt(): boolean;
|
|
6
19
|
export declare const NxCloudChoices: string[];
|
|
7
20
|
declare const messageOptions: Record<string, MessageData[]>;
|
|
8
21
|
export type MessageKey = keyof typeof messageOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ab-testing.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/nx/ab-testing.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ab-testing.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/nx/ab-testing.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAqEvD;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAKvC;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,IAAI,oBAAoB,CASxE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAG/C;AAED,eAAO,MAAM,cAAc,UAQ1B,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAsGjD,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,cAAc,CAAC;AACrD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,UAAU,CAAA;KAAE,CAAC;IAC9C,iBAAiB,EAAE,oBAAoB,CAAC;CACzC;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,gBAAgB,CAAwC;IAEhE,SAAS,CAAC,GAAG,EAAE,UAAU,GAAG,WAAW;IAavC,2BAA2B,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM;IAQpD,iCAAiC,CAAC,GAAG,EAAE,UAAU,GAAG,oBAAoB;CAQzE;AAED,eAAO,MAAM,QAAQ,gBAAuB,CAAC;AAS7C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,cAAc,GACtB,mBAAmB,GACnB,sBAAsB,GACtB,mBAAmB,GACnB,oBAAoB,GACpB,uBAAuB,CAAC;AAE5B;;;GAGG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;CACtB,iBAuBA"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.messages = exports.PromptMessages = exports.NxCloudChoices = void 0;
|
|
4
4
|
exports.getFlowVariant = getFlowVariant;
|
|
5
|
+
exports.getCompletionMessageKeyForVariant = getCompletionMessageKeyForVariant;
|
|
6
|
+
exports.shouldShowCloudPrompt = shouldShowCloudPrompt;
|
|
5
7
|
exports.recordStat = recordStat;
|
|
6
8
|
const node_child_process_1 = require("node:child_process");
|
|
7
9
|
const node_fs_1 = require("node:fs");
|
|
@@ -29,7 +31,7 @@ function readCachedFlowVariant() {
|
|
|
29
31
|
return null;
|
|
30
32
|
}
|
|
31
33
|
const value = (0, node_fs_1.readFileSync)(FLOW_VARIANT_CACHE_FILE, 'utf-8').trim();
|
|
32
|
-
return value === '0' || value === '1' ? value : null;
|
|
34
|
+
return value === '0' || value === '1' || value === '2' ? value : null;
|
|
33
35
|
}
|
|
34
36
|
catch {
|
|
35
37
|
return null;
|
|
@@ -43,6 +45,14 @@ function writeCachedFlowVariant(variant) {
|
|
|
43
45
|
// Ignore write errors
|
|
44
46
|
}
|
|
45
47
|
}
|
|
48
|
+
function selectRandomVariant() {
|
|
49
|
+
const rand = Math.random();
|
|
50
|
+
if (rand < 0.33)
|
|
51
|
+
return '0';
|
|
52
|
+
if (rand < 0.66)
|
|
53
|
+
return '1';
|
|
54
|
+
return '2';
|
|
55
|
+
}
|
|
46
56
|
/**
|
|
47
57
|
* Internal function to determine and cache the flow variant.
|
|
48
58
|
*/
|
|
@@ -51,7 +61,7 @@ function getFlowVariantInternal() {
|
|
|
51
61
|
return flowVariantCache;
|
|
52
62
|
const variant = process.env.NX_CNW_FLOW_VARIANT ??
|
|
53
63
|
readCachedFlowVariant() ??
|
|
54
|
-
(
|
|
64
|
+
selectRandomVariant();
|
|
55
65
|
flowVariantCache = variant;
|
|
56
66
|
// Only write to cache if we randomly assigned a variant and no cache exists yet
|
|
57
67
|
// This ensures the cache expiry is based on original creation time, not last access
|
|
@@ -70,6 +80,31 @@ function getFlowVariant() {
|
|
|
70
80
|
}
|
|
71
81
|
return flowVariantCache ?? getFlowVariantInternal();
|
|
72
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns the completion message key based on the current flow variant.
|
|
85
|
+
* - Variant 0: 'platform-setup' (shows "Try the full Nx platform?" prompt)
|
|
86
|
+
* - Variant 1: 'cache-setup' (shows "Would you like remote caching..." prompt)
|
|
87
|
+
* - Variant 2: 'platform-promo' (skips prompt, auto-connects, shows promo message)
|
|
88
|
+
*/
|
|
89
|
+
function getCompletionMessageKeyForVariant() {
|
|
90
|
+
const variant = getFlowVariant();
|
|
91
|
+
if (variant === '1') {
|
|
92
|
+
return 'cache-setup';
|
|
93
|
+
}
|
|
94
|
+
if (variant === '2') {
|
|
95
|
+
return 'platform-promo';
|
|
96
|
+
}
|
|
97
|
+
return 'platform-setup';
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns whether the cloud prompt should be shown.
|
|
101
|
+
* Variants 0 and 1 show prompts (with different copy).
|
|
102
|
+
* Variant 2 skips the prompt and auto-connects.
|
|
103
|
+
*/
|
|
104
|
+
function shouldShowCloudPrompt() {
|
|
105
|
+
const variant = getFlowVariant();
|
|
106
|
+
return variant !== '2';
|
|
107
|
+
}
|
|
73
108
|
exports.NxCloudChoices = [
|
|
74
109
|
'github',
|
|
75
110
|
'gitlab',
|
|
@@ -13,9 +13,13 @@ declare const completionMessages: {
|
|
|
13
13
|
readonly 'platform-setup': {
|
|
14
14
|
readonly title: "Your platform setup is almost complete.";
|
|
15
15
|
};
|
|
16
|
+
readonly 'platform-promo': {
|
|
17
|
+
readonly title: "Want faster builds?";
|
|
18
|
+
readonly subtext: "Remote caching · Self-healing CI · Task distribution";
|
|
19
|
+
};
|
|
16
20
|
};
|
|
17
21
|
export type CompletionMessageKey = keyof typeof completionMessages;
|
|
18
|
-
export declare function getCompletionMessage(completionMessageKey: CompletionMessageKey | undefined, url: string | null, pushedToVcs: VcsPushStatus): {
|
|
22
|
+
export declare function getCompletionMessage(completionMessageKey: CompletionMessageKey | undefined, url: string | null, pushedToVcs: VcsPushStatus, workspaceName?: string): {
|
|
19
23
|
title: string;
|
|
20
24
|
bodyLines: string[];
|
|
21
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/nx/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/nx/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAoC3C;;;GAGG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;CAcd,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEnE,wBAAgB,oBAAoB,CAClC,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,EACtD,GAAG,EAAE,MAAM,GAAG,IAAI,EAClB,WAAW,EAAE,aAAa,EAC1B,aAAa,CAAC,EAAE,MAAM,GACrB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CAgBxC;AAED,wBAAgB,sBAAsB,IAAI;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAUA"}
|
package/src/utils/nx/messages.js
CHANGED
|
@@ -3,16 +3,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getCompletionMessage = getCompletionMessage;
|
|
4
4
|
exports.getSkippedCloudMessage = getSkippedCloudMessage;
|
|
5
5
|
const git_1 = require("../git/git");
|
|
6
|
-
function getSetupMessage(url, pushedToVcs) {
|
|
6
|
+
function getSetupMessage(url, pushedToVcs, workspaceName, isPromo) {
|
|
7
|
+
const githubUrl = workspaceName
|
|
8
|
+
? `https://github.com/new?name=${encodeURIComponent(workspaceName)}`
|
|
9
|
+
: 'https://github.com/new';
|
|
10
|
+
if (isPromo) {
|
|
11
|
+
if (pushedToVcs === git_1.VcsPushStatus.PushedToVcs) {
|
|
12
|
+
return url
|
|
13
|
+
? `Connect your repo to enable remote caching and self-healing CI at: ${url}`
|
|
14
|
+
: 'Connect your repo at https://cloud.nx.app to enable remote caching and self-healing CI.';
|
|
15
|
+
}
|
|
16
|
+
return url
|
|
17
|
+
? `Connect your repo (${githubUrl}) to enable remote caching and self-healing CI at: ${url}`
|
|
18
|
+
: `Connect your repo (${githubUrl}) to enable remote caching and self-healing CI at https://cloud.nx.app`;
|
|
19
|
+
}
|
|
7
20
|
if (pushedToVcs === git_1.VcsPushStatus.PushedToVcs) {
|
|
8
21
|
return url
|
|
9
22
|
? `Go to Nx Cloud and finish the setup: ${url}`
|
|
10
23
|
: 'Return to Nx Cloud and finish the setup.';
|
|
11
24
|
}
|
|
12
|
-
// User
|
|
25
|
+
// User needs to push first
|
|
13
26
|
const action = url ? 'go' : 'return';
|
|
14
27
|
const urlSuffix = url ? `: ${url}` : '.';
|
|
15
|
-
return `Push your repo (
|
|
28
|
+
return `Push your repo (${githubUrl}), then ${action} to Nx Cloud and finish the setup${urlSuffix}`;
|
|
16
29
|
}
|
|
17
30
|
/**
|
|
18
31
|
* Completion messages shown after workspace creation.
|
|
@@ -28,12 +41,23 @@ const completionMessages = {
|
|
|
28
41
|
'platform-setup': {
|
|
29
42
|
title: 'Your platform setup is almost complete.',
|
|
30
43
|
},
|
|
44
|
+
'platform-promo': {
|
|
45
|
+
title: 'Want faster builds?',
|
|
46
|
+
subtext: 'Remote caching \u00b7 Self-healing CI \u00b7 Task distribution',
|
|
47
|
+
},
|
|
31
48
|
};
|
|
32
|
-
function getCompletionMessage(completionMessageKey, url, pushedToVcs) {
|
|
49
|
+
function getCompletionMessage(completionMessageKey, url, pushedToVcs, workspaceName) {
|
|
33
50
|
const key = completionMessageKey ?? 'ci-setup';
|
|
51
|
+
const messageConfig = completionMessages[key];
|
|
52
|
+
const isPromo = key === 'platform-promo';
|
|
53
|
+
const bodyLines = [getSetupMessage(url, pushedToVcs, workspaceName, isPromo)];
|
|
54
|
+
if ('subtext' in messageConfig && messageConfig.subtext) {
|
|
55
|
+
bodyLines.push('');
|
|
56
|
+
bodyLines.push(messageConfig.subtext);
|
|
57
|
+
}
|
|
34
58
|
return {
|
|
35
|
-
title:
|
|
36
|
-
bodyLines
|
|
59
|
+
title: messageConfig.title,
|
|
60
|
+
bodyLines,
|
|
37
61
|
};
|
|
38
62
|
}
|
|
39
63
|
function getSkippedCloudMessage() {
|
|
@@ -4,6 +4,6 @@ export type NxCloud = 'yes' | 'github' | 'gitlab' | 'azure' | 'bitbucket-pipelin
|
|
|
4
4
|
export declare function connectToNxCloudForTemplate(directory: string, installationSource: string, useGitHub?: boolean): Promise<string | null>;
|
|
5
5
|
export declare function readNxCloudToken(directory: string): string;
|
|
6
6
|
export declare function createNxCloudOnboardingUrl(nxCloud: NxCloud, token: string | undefined, directory: string, useGitHub?: boolean): Promise<string>;
|
|
7
|
-
export declare function getNxCloudInfo(connectCloudUrl: string, pushedToVcs: VcsPushStatus, completionMessageKey?: CompletionMessageKey): Promise<string>;
|
|
7
|
+
export declare function getNxCloudInfo(connectCloudUrl: string, pushedToVcs: VcsPushStatus, completionMessageKey?: CompletionMessageKey, workspaceName?: string): Promise<string>;
|
|
8
8
|
export declare function getSkippedNxCloudInfo(): string;
|
|
9
9
|
//# sourceMappingURL=nx-cloud.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx-cloud.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/nx/nx-cloud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAGL,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAIpB,MAAM,MAAM,OAAO,GACf,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,qBAAqB,GACrB,UAAU,GACV,MAAM,CAAC;AAEX,wBAAsB,2BAA2B,CAC/C,SAAS,EAAE,MAAM,EACjB,kBAAkB,EAAE,MAAM,EAC1B,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA+BxB;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,UAgBjD;AAED,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,MAAM,CAAC,CA6BjB;AAED,wBAAsB,cAAc,CAClC,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,aAAa,EAC1B,oBAAoB,CAAC,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"nx-cloud.d.ts","sourceRoot":"","sources":["../../../../../../packages/create-nx-workspace/src/utils/nx/nx-cloud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAGL,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAIpB,MAAM,MAAM,OAAO,GACf,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,qBAAqB,GACrB,UAAU,GACV,MAAM,CAAC;AAEX,wBAAsB,2BAA2B,CAC/C,SAAS,EAAE,MAAM,EACjB,kBAAkB,EAAE,MAAM,EAC1B,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA+BxB;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,UAgBjD;AAED,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,MAAM,CAAC,CA6BjB;AAED,wBAAsB,cAAc,CAClC,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,aAAa,EAC1B,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,aAAa,CAAC,EAAE,MAAM,mBAWvB;AAED,wBAAgB,qBAAqB,WAIpC"}
|
package/src/utils/nx/nx-cloud.js
CHANGED
|
@@ -58,9 +58,9 @@ async function createNxCloudOnboardingUrl(nxCloud, token, directory, useGitHub)
|
|
|
58
58
|
return createNxCloudOnboardingURL(source, token, meta, false, useGitHub ??
|
|
59
59
|
(nxCloud === 'yes' || nxCloud === 'github' || nxCloud === 'circleci'), directory);
|
|
60
60
|
}
|
|
61
|
-
async function getNxCloudInfo(connectCloudUrl, pushedToVcs, completionMessageKey) {
|
|
61
|
+
async function getNxCloudInfo(connectCloudUrl, pushedToVcs, completionMessageKey, workspaceName) {
|
|
62
62
|
const out = new output_1.CLIOutput(false);
|
|
63
|
-
const message = (0, messages_1.getCompletionMessage)(completionMessageKey, connectCloudUrl, pushedToVcs);
|
|
63
|
+
const message = (0, messages_1.getCompletionMessage)(completionMessageKey, connectCloudUrl, pushedToVcs, workspaceName);
|
|
64
64
|
out.success(message);
|
|
65
65
|
return out.getOutput();
|
|
66
66
|
}
|