Commit 7a8d23b
authored
chore(core): lock in Nx Cloud prompt A/B winner for init and CNW (#35390)
## Current Behavior
`create-nx-workspace` randomly serves one of three Nx Cloud prompt copy
variants during the template flow; `nx init` pins a baseline copy that
predates the test.
A/B results (NXC-4336):
- Variant 0 (baseline): `Enable remote caching to speed up builds with
Nx Cloud?` — 15.4% yes / 29.2% never
- Variant 1: `Never rebuild the same code twice — enable Nx Cloud?` —
13.4% yes / 28.4% never
- **Variant 2: `Speed up GitHub Actions, GitLab CI, and more with Nx
Cloud?` — 17.8% yes / 22.4% never**
## Expected Behavior
Both `create-nx-workspace` (`setupNxCloudV2`) and `nx init`
(`setupNxCloud`) serve the winning variant. Footer is reworded to lead
with the free-tier messaging:
> Free for small teams. Remote caching and task distribution. 2-minute
setup: https://nx.dev/nx-cloud
The CNW `setupNxCloudV2` array collapses from 3 variants to 1;
`PromptMessages.getPrompt` already falls back to index 0 when
`flowVariant >= length`, so existing flow-variant plumbing keeps
working. Spec updated to assert the locked-in code for all flow variants
(0/1/2) and docs generation.
## Related Issue(s)
Fixes NXC-43361 parent a97bd37 commit 7a8d23b
3 files changed
Lines changed: 17 additions & 45 deletions
File tree
- packages
- create-nx-workspace/src/utils/nx
- nx/src/utils
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
130 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | | - | |
| 132 | + | |
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 212 | + | |
241 | 213 | | |
242 | 214 | | |
243 | 215 | | |
| |||
246 | 218 | | |
247 | 219 | | |
248 | 220 | | |
249 | | - | |
| 221 | + | |
250 | 222 | | |
251 | 223 | | |
252 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments