create-nx-workspace 19.4.2 → 19.4.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/README.md CHANGED
@@ -63,7 +63,7 @@ npx nx@latest init
63
63
  - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
64
64
  - [Intro to Nx](https://nx.dev/getting-started/intro)
65
65
  - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
66
- - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
66
+ - [Blog Posts About Nx](https://nx.dev/blog)
67
67
 
68
68
  <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"
69
69
  width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "19.4.2",
3
+ "version": "19.4.4",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast CI",
6
6
  "repository": {
@@ -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, and test splitting are provided by Nx Cloud. Read more at https://nx.dev/ci',
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: 'set-up-ci',
35
- message: `Set up CI with caching, distribution and test deflaking`,
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: 'CircleCI' },
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: 'bitbucket',
44
- name: 'BitBucket Pipelines',
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, and test splitting are provided by Nx Cloud. Read more at https://nx.dev/ci',
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(it's free and can be disabled any time)`,
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
  ],