create-nx-workspace 19.4.2 → 19.4.3
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/package.json +1 -1
- package/src/utils/nx/ab-testing.js +32 -12
package/package.json
CHANGED
|
@@ -9,11 +9,14 @@ exports.NxCloudChoices = [
|
|
|
9
9
|
'circleci',
|
|
10
10
|
'gitlab',
|
|
11
11
|
'azure',
|
|
12
|
-
'bitbucket',
|
|
12
|
+
'bitbucket-pipelines',
|
|
13
13
|
'skip',
|
|
14
14
|
'yes', // Deprecated but still handled
|
|
15
15
|
];
|
|
16
16
|
const messageOptions = {
|
|
17
|
+
/**
|
|
18
|
+
* These messages are for setting up CI as part of create-nx-workspace and nx init
|
|
19
|
+
*/
|
|
17
20
|
setupCI: [
|
|
18
21
|
{
|
|
19
22
|
code: 'which-ci-provider',
|
|
@@ -24,31 +27,33 @@ const messageOptions = {
|
|
|
24
27
|
{ value: 'circleci', name: 'Circle CI' },
|
|
25
28
|
{ value: 'gitlab', name: 'Gitlab' },
|
|
26
29
|
{ value: 'azure', name: 'Azure DevOps' },
|
|
27
|
-
{ value: 'bitbucket', name: 'BitBucket Pipelines' },
|
|
30
|
+
{ value: 'bitbucket-pipelines', name: 'BitBucket Pipelines' },
|
|
28
31
|
{ value: 'skip', name: '\nDo it later' },
|
|
29
32
|
],
|
|
30
|
-
footer: '\nRemote caching, task distribution
|
|
33
|
+
footer: '\nRemote caching, task distribution and test splitting are provided by Nx Cloud. Read more at https://nx.dev/ci',
|
|
31
34
|
fallback: { value: 'skip', key: 'setupNxCloud' },
|
|
32
35
|
},
|
|
33
36
|
{
|
|
34
|
-
code: '
|
|
35
|
-
message: `
|
|
37
|
+
code: 'which-ci-provider2',
|
|
38
|
+
message: `Which CI provider would you like to use?`,
|
|
36
39
|
initial: 0,
|
|
37
40
|
choices: [
|
|
38
41
|
{ value: 'github', name: 'GitHub Actions' },
|
|
39
|
-
{ value: 'circleci', name: '
|
|
42
|
+
{ value: 'circleci', name: 'Circle CI' },
|
|
40
43
|
{ value: 'gitlab', name: 'Gitlab' },
|
|
41
44
|
{ value: 'azure', name: 'Azure DevOps' },
|
|
45
|
+
{ value: 'bitbucket-pipelines', name: 'BitBucket Pipelines' },
|
|
42
46
|
{
|
|
43
|
-
value: '
|
|
44
|
-
name: '
|
|
47
|
+
value: 'skip',
|
|
48
|
+
name: '\nNo - I would not like to set up CI with remote caching, task distribution and test splitting',
|
|
45
49
|
},
|
|
46
|
-
{ value: 'skip', name: '\nDo it later' },
|
|
47
50
|
],
|
|
48
|
-
footer: '\nRemote caching, task distribution
|
|
49
|
-
fallback: { value: 'skip', key: 'setupNxCloud' },
|
|
51
|
+
footer: '\nRemote caching, task distribution and test splitting are provided by Nx Cloud. Read more at https://nx.dev/ci',
|
|
50
52
|
},
|
|
51
53
|
],
|
|
54
|
+
/**
|
|
55
|
+
* These messages are a fallback for setting up CI as well as when migrating major versions
|
|
56
|
+
*/
|
|
52
57
|
setupNxCloud: [
|
|
53
58
|
{
|
|
54
59
|
code: 'enable-caching',
|
|
@@ -59,7 +64,22 @@ const messageOptions = {
|
|
|
59
64
|
{ value: 'skip', name: 'Skip for now' },
|
|
60
65
|
],
|
|
61
66
|
footer: '\nRead more about remote caching at https://nx.dev/ci/features/remote-cache',
|
|
62
|
-
hint: `\n(
|
|
67
|
+
hint: `\n(can be disabled any time)`,
|
|
68
|
+
fallback: undefined,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
code: 'enable-caching2',
|
|
72
|
+
message: `Would you like remote caching to make your build faster?`,
|
|
73
|
+
initial: 0,
|
|
74
|
+
choices: [
|
|
75
|
+
{ value: 'yes', name: 'Yes' },
|
|
76
|
+
{
|
|
77
|
+
value: 'skip',
|
|
78
|
+
name: 'No - I would not like remote caching',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
footer: '\nRead more about remote caching at https://nx.dev/ci/features/remote-cache',
|
|
82
|
+
hint: `\n(can be disabled any time)`,
|
|
63
83
|
fallback: undefined,
|
|
64
84
|
},
|
|
65
85
|
],
|