@nx/vue 19.5.7 → 19.6.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.
- package/package.json +6 -6
- package/src/generators/application/application.js +1 -1
- package/src/generators/application/files/nx-welcome/claimed/src/app/NxWelcome.vue.template +791 -0
- package/src/generators/application/files/{common → nx-welcome/not-configured}/src/app/NxWelcome.vue.template +52 -90
- package/src/generators/application/files/nx-welcome/unclaimed/src/app/NxWelcome.vue.template +792 -0
- package/src/generators/application/lib/add-e2e.js +57 -9
- package/src/generators/application/lib/create-application-files.d.ts +1 -1
- package/src/generators/application/lib/create-application-files.js +11 -1
- package/src/generators/application/schema.d.ts +1 -0
|
@@ -47,6 +47,7 @@ defineProps<{
|
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<div id="middle-content">
|
|
50
|
+
<div id="middle-left-content">
|
|
50
51
|
<div id="learning-materials" class="rounded shadow">
|
|
51
52
|
<h2>Learning materials</h2>
|
|
52
53
|
<a
|
|
@@ -157,7 +158,7 @@ defineProps<{
|
|
|
157
158
|
</svg>
|
|
158
159
|
</a>
|
|
159
160
|
<a
|
|
160
|
-
href="https://nx.dev/
|
|
161
|
+
href="https://nx.dev/getting-started/tutorials/vue-standalone-tutorial?utm_source=nx-project"
|
|
161
162
|
target="_blank"
|
|
162
163
|
rel="noreferrer"
|
|
163
164
|
class="list-item-link"
|
|
@@ -193,44 +194,26 @@ defineProps<{
|
|
|
193
194
|
/>
|
|
194
195
|
</svg>
|
|
195
196
|
</a>
|
|
197
|
+
</div>
|
|
196
198
|
<a
|
|
197
|
-
|
|
199
|
+
id="nx-repo"
|
|
200
|
+
class="button-pill rounded shadow"
|
|
201
|
+
href="https://github.com/nrwl/nx?utm_source=nx-project"
|
|
198
202
|
target="_blank"
|
|
199
203
|
rel="noreferrer"
|
|
200
|
-
class="list-item-link"
|
|
201
204
|
>
|
|
202
205
|
<svg
|
|
203
|
-
fill="
|
|
204
|
-
|
|
206
|
+
fill="currentColor"
|
|
207
|
+
role="img"
|
|
205
208
|
viewBox="0 0 24 24"
|
|
206
209
|
xmlns="http://www.w3.org/2000/svg"
|
|
207
210
|
>
|
|
208
|
-
<path d="M12
|
|
209
|
-
<path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z" />
|
|
210
|
-
<path
|
|
211
|
-
strokeLinecap="round"
|
|
212
|
-
strokeLinejoin="round"
|
|
213
|
-
strokeWidth="2"
|
|
214
|
-
d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
|
|
215
|
-
/>
|
|
211
|
+
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
|
|
216
212
|
</svg>
|
|
217
213
|
<span>
|
|
218
|
-
|
|
219
|
-
<span> Nx
|
|
214
|
+
Nx is open source
|
|
215
|
+
<span> Love Nx? Give us a star! </span>
|
|
220
216
|
</span>
|
|
221
|
-
<svg
|
|
222
|
-
fill="none"
|
|
223
|
-
stroke="currentColor"
|
|
224
|
-
viewBox="0 0 24 24"
|
|
225
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
226
|
-
>
|
|
227
|
-
<path
|
|
228
|
-
strokeLinecap="round"
|
|
229
|
-
strokeLinejoin="round"
|
|
230
|
-
strokeWidth="2"
|
|
231
|
-
d="M9 5l7 7-7 7"
|
|
232
|
-
/>
|
|
233
|
-
</svg>
|
|
234
217
|
</a>
|
|
235
218
|
</div>
|
|
236
219
|
<div id="other-links">
|
|
@@ -319,63 +302,43 @@ defineProps<{
|
|
|
319
302
|
</p>
|
|
320
303
|
<pre>nx connect</pre>
|
|
321
304
|
<a
|
|
322
|
-
href="https://nx.
|
|
305
|
+
href="https://nx.dev/nx-cloud?utm_source=nx-project"
|
|
323
306
|
target="_blank"
|
|
324
307
|
rel="noreferrer"
|
|
325
308
|
>
|
|
326
309
|
What is Nx Cloud?
|
|
327
310
|
</a>
|
|
328
311
|
</div>
|
|
329
|
-
|
|
330
|
-
id="nx-repo"
|
|
331
|
-
class="button-pill rounded shadow"
|
|
332
|
-
href="https://github.com/nrwl/nx?utm_source=nx-project"
|
|
333
|
-
target="_blank"
|
|
334
|
-
rel="noreferrer"
|
|
335
|
-
>
|
|
336
|
-
<svg
|
|
337
|
-
fill="currentColor"
|
|
338
|
-
role="img"
|
|
339
|
-
viewBox="0 0 24 24"
|
|
340
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
341
|
-
>
|
|
342
|
-
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
|
|
343
|
-
</svg>
|
|
344
|
-
<span>
|
|
345
|
-
Nx is open source
|
|
346
|
-
<span> Love Nx? Give us a star! </span>
|
|
347
|
-
</span>
|
|
348
|
-
</a>
|
|
312
|
+
|
|
349
313
|
</div>
|
|
350
314
|
</div>
|
|
351
315
|
|
|
352
316
|
<div id="commands" class="rounded shadow">
|
|
353
317
|
<h2>Next steps</h2>
|
|
354
318
|
<p>Here are some things you can do with Nx:</p>
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
<pre>
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
</details>
|
|
319
|
+
<details>
|
|
320
|
+
<summary>
|
|
321
|
+
<svg
|
|
322
|
+
fill="none"
|
|
323
|
+
stroke="currentColor"
|
|
324
|
+
viewBox="0 0 24 24"
|
|
325
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
326
|
+
>
|
|
327
|
+
<path
|
|
328
|
+
strokeLinecap="round"
|
|
329
|
+
strokeLinejoin="round"
|
|
330
|
+
strokeWidth="2"
|
|
331
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
332
|
+
/>
|
|
333
|
+
</svg>
|
|
334
|
+
Build, test and lint your app
|
|
335
|
+
</summary>
|
|
336
|
+
<pre><% if(rootProject) {%><span># Build</span>nx build<span># Test</span>nx test
|
|
337
|
+
<span># Lint</span>nx lint
|
|
338
|
+
<span># Run them together!</span>nx run-many -t build test lint <%} else {%> <span># Build</span>nx build {{ title }}<span># Test</span>nx test {{ title }}
|
|
339
|
+
<span># Lint</span>nx lint {{ title }}
|
|
340
|
+
<span># Run them together!</span>nx run-many -p {{ title }} -t build test lint <% } %></pre>
|
|
341
|
+
</details>
|
|
379
342
|
<details>
|
|
380
343
|
<summary>
|
|
381
344
|
<svg
|
|
@@ -393,7 +356,7 @@ defineProps<{
|
|
|
393
356
|
</svg>
|
|
394
357
|
View project details
|
|
395
358
|
</summary>
|
|
396
|
-
<pre>nx show project {{ title }}
|
|
359
|
+
<pre>nx show project {{ title }}</pre>
|
|
397
360
|
</details>
|
|
398
361
|
<details>
|
|
399
362
|
<summary>
|
|
@@ -429,16 +392,11 @@ defineProps<{
|
|
|
429
392
|
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
430
393
|
/>
|
|
431
394
|
</svg>
|
|
432
|
-
|
|
395
|
+
Add UI library
|
|
433
396
|
</summary>
|
|
434
|
-
<pre>
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
<span># run tests for current changes</span>
|
|
438
|
-
nx affected:test
|
|
439
|
-
<span># run e2e tests for current changes</span>
|
|
440
|
-
nx affected:e2e
|
|
441
|
-
</pre>
|
|
397
|
+
<pre><span># Generate UI lib</span>nx g @nx/vue:lib ui
|
|
398
|
+
<span># Add a component</span>nx g @nx/vue:component ui/src/lib/button
|
|
399
|
+
</pre>
|
|
442
400
|
</details>
|
|
443
401
|
</div>
|
|
444
402
|
|
|
@@ -475,7 +433,7 @@ pre {
|
|
|
475
433
|
color: rgba(229, 231, 235, 1);
|
|
476
434
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
477
435
|
'Liberation Mono', 'Courier New', monospace;
|
|
478
|
-
overflow:
|
|
436
|
+
overflow: auto;
|
|
479
437
|
padding: 0.5rem 0.75rem;
|
|
480
438
|
}
|
|
481
439
|
|
|
@@ -567,10 +525,15 @@ pre {
|
|
|
567
525
|
#middle-content {
|
|
568
526
|
align-items: flex-start;
|
|
569
527
|
display: grid;
|
|
570
|
-
gap: 4rem;
|
|
571
528
|
grid-template-columns: 1fr;
|
|
572
529
|
margin-top: 3.5rem;
|
|
573
530
|
}
|
|
531
|
+
|
|
532
|
+
#middle-content #middle-left-content {
|
|
533
|
+
display: flex;
|
|
534
|
+
flex-direction: column;
|
|
535
|
+
gap: 2rem;
|
|
536
|
+
}
|
|
574
537
|
#learning-materials {
|
|
575
538
|
padding: 2.5rem 2rem;
|
|
576
539
|
}
|
|
@@ -612,7 +575,6 @@ pre {
|
|
|
612
575
|
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
613
576
|
-webkit-backdrop-filter;
|
|
614
577
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
615
|
-
transition-duration: 150ms;
|
|
616
578
|
}
|
|
617
579
|
.list-item-link > span > span {
|
|
618
580
|
color: rgba(107, 114, 128, 1);
|
|
@@ -625,7 +587,6 @@ pre {
|
|
|
625
587
|
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
626
588
|
-webkit-backdrop-filter;
|
|
627
589
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
628
|
-
transition-duration: 150ms;
|
|
629
590
|
}
|
|
630
591
|
.list-item-link svg:last-child {
|
|
631
592
|
height: 1rem;
|
|
@@ -636,16 +597,16 @@ pre {
|
|
|
636
597
|
}
|
|
637
598
|
.list-item-link:hover {
|
|
638
599
|
color: rgba(255, 255, 255, 1);
|
|
639
|
-
background-color: hsla(162,
|
|
600
|
+
background-color: hsla(162, 55%, 33%, 1);
|
|
640
601
|
}
|
|
641
|
-
|
|
602
|
+
|
|
642
603
|
.list-item-link:hover > span > span {
|
|
643
604
|
color: rgba(243, 244, 246, 1);
|
|
644
605
|
}
|
|
645
606
|
.list-item-link:hover svg:last-child {
|
|
646
607
|
transform: translateX(0.25rem);
|
|
647
608
|
}
|
|
648
|
-
|
|
609
|
+
|
|
649
610
|
.button-pill {
|
|
650
611
|
padding: 1.5rem 2rem;
|
|
651
612
|
margin-bottom: 2rem;
|
|
@@ -828,6 +789,7 @@ summary svg {
|
|
|
828
789
|
}
|
|
829
790
|
#middle-content {
|
|
830
791
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
792
|
+
gap: 4rem;
|
|
831
793
|
}
|
|
832
794
|
}
|
|
833
795
|
</style>
|