@nx/vue 17.0.0-beta.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.
Files changed (99) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +63 -0
  3. package/executors.json +3 -0
  4. package/generators.json +50 -0
  5. package/index.d.ts +11 -0
  6. package/index.js +21 -0
  7. package/migrations.json +4 -0
  8. package/package.json +54 -0
  9. package/src/generators/application/application.d.ts +4 -0
  10. package/src/generators/application/application.js +52 -0
  11. package/src/generators/application/files/common/index.html.template +13 -0
  12. package/src/generators/application/files/common/src/app/App.spec.ts.template +12 -0
  13. package/src/generators/application/files/common/src/app/App.vue.template +54 -0
  14. package/src/generators/application/files/common/src/app/NxWelcome.vue.template +793 -0
  15. package/src/generators/application/files/common/src/main.ts.template +15 -0
  16. package/src/generators/application/files/common/tsconfig.app.json.template +8 -0
  17. package/src/generators/application/files/routing/src/router/index.ts.template +23 -0
  18. package/src/generators/application/files/routing/src/views/AboutView.vue.template +16 -0
  19. package/src/generators/application/files/routing/src/views/HomeView.vue.template +9 -0
  20. package/src/generators/application/files/stylesheet/src/styles.__style__.template +42 -0
  21. package/src/generators/application/lib/add-e2e.d.ts +3 -0
  22. package/src/generators/application/lib/add-e2e.js +48 -0
  23. package/src/generators/application/lib/add-jest.d.ts +5 -0
  24. package/src/generators/application/lib/add-jest.js +22 -0
  25. package/src/generators/application/lib/add-vite.d.ts +3 -0
  26. package/src/generators/application/lib/add-vite.js +32 -0
  27. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  28. package/src/generators/application/lib/create-application-files.js +30 -0
  29. package/src/generators/application/lib/normalize-options.d.ts +4 -0
  30. package/src/generators/application/lib/normalize-options.js +45 -0
  31. package/src/generators/application/schema.d.ts +30 -0
  32. package/src/generators/application/schema.json +140 -0
  33. package/src/generators/component/component.d.ts +4 -0
  34. package/src/generators/component/component.js +40 -0
  35. package/src/generators/component/files/__fileName__.spec.ts__tmpl__ +13 -0
  36. package/src/generators/component/files/__fileName__.vue__tmpl__ +10 -0
  37. package/src/generators/component/lib/utils.d.ts +7 -0
  38. package/src/generators/component/lib/utils.js +86 -0
  39. package/src/generators/component/schema.d.ts +22 -0
  40. package/src/generators/component/schema.json +107 -0
  41. package/src/generators/init/init.d.ts +4 -0
  42. package/src/generators/init/init.js +41 -0
  43. package/src/generators/init/schema.d.ts +7 -0
  44. package/src/generators/init/schema.json +37 -0
  45. package/src/generators/library/files/README.md +7 -0
  46. package/src/generators/library/files/package.json__tmpl__ +12 -0
  47. package/src/generators/library/files/src/index.ts__tmpl__ +0 -0
  48. package/src/generators/library/files/src/vue-shims.d.ts__tmpl__ +5 -0
  49. package/src/generators/library/files/tsconfig.lib.json__tmpl__ +34 -0
  50. package/src/generators/library/files/tsconfig.spec.json__tmpl__ +27 -0
  51. package/src/generators/library/lib/add-jest.d.ts +3 -0
  52. package/src/generators/library/lib/add-jest.js +23 -0
  53. package/src/generators/library/lib/add-vite.d.ts +3 -0
  54. package/src/generators/library/lib/add-vite.js +56 -0
  55. package/src/generators/library/lib/create-library-files.d.ts +3 -0
  56. package/src/generators/library/lib/create-library-files.js +28 -0
  57. package/src/generators/library/lib/normalize-options.d.ts +3 -0
  58. package/src/generators/library/lib/normalize-options.js +55 -0
  59. package/src/generators/library/library.d.ts +4 -0
  60. package/src/generators/library/library.js +71 -0
  61. package/src/generators/library/schema.d.ts +41 -0
  62. package/src/generators/library/schema.json +139 -0
  63. package/src/generators/setup-tailwind/files/postcss.config.js.template +10 -0
  64. package/src/generators/setup-tailwind/files/tailwind.config.js.template +18 -0
  65. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +3 -0
  66. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +25 -0
  67. package/src/generators/setup-tailwind/schema.d.ts +6 -0
  68. package/src/generators/setup-tailwind/schema.json +45 -0
  69. package/src/generators/setup-tailwind/setup-tailwind.d.ts +4 -0
  70. package/src/generators/setup-tailwind/setup-tailwind.js +25 -0
  71. package/src/generators/stories/lib/component-story.d.ts +3 -0
  72. package/src/generators/stories/lib/component-story.js +34 -0
  73. package/src/generators/stories/lib/files/js/__componentFileName__.stories.js__tmpl__ +25 -0
  74. package/src/generators/stories/lib/files/ts/__componentFileName__.stories.ts__tmpl__ +32 -0
  75. package/src/generators/stories/lib/utils.d.ts +10 -0
  76. package/src/generators/stories/lib/utils.js +75 -0
  77. package/src/generators/stories/schema.json +64 -0
  78. package/src/generators/stories/stories.d.ts +13 -0
  79. package/src/generators/stories/stories.js +61 -0
  80. package/src/generators/storybook-configuration/configuration.d.ts +4 -0
  81. package/src/generators/storybook-configuration/configuration.js +35 -0
  82. package/src/generators/storybook-configuration/schema.d.ts +12 -0
  83. package/src/generators/storybook-configuration/schema.json +77 -0
  84. package/src/tailwind.d.ts +6 -0
  85. package/src/tailwind.js +29 -0
  86. package/src/utils/add-linting.d.ts +12 -0
  87. package/src/utils/add-linting.js +121 -0
  88. package/src/utils/ast-utils.d.ts +3 -0
  89. package/src/utils/ast-utils.js +33 -0
  90. package/src/utils/create-ts-config.d.ts +9 -0
  91. package/src/utils/create-ts-config.js +66 -0
  92. package/src/utils/lint.d.ts +9 -0
  93. package/src/utils/lint.js +26 -0
  94. package/src/utils/setup-jest.d.ts +4 -0
  95. package/src/utils/setup-jest.js +96 -0
  96. package/src/utils/test-utils.d.ts +3 -0
  97. package/src/utils/test-utils.js +30 -0
  98. package/src/utils/versions.d.ts +16 -0
  99. package/src/utils/versions.js +25 -0
@@ -0,0 +1,793 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ title: string
4
+ }>()
5
+ </script>
6
+
7
+ <template>
8
+ <div class="wrapper">
9
+ <div class="container">
10
+ <div id="welcome">
11
+ <h1>
12
+ <span> Hello there, </span>
13
+ Welcome {{ title }} 👋
14
+ </h1>
15
+ </div>
16
+
17
+ <div id="hero" class="rounded">
18
+ <div class="text-container">
19
+ <h2>
20
+ <svg
21
+ fill="none"
22
+ stroke="currentColor"
23
+ viewBox="0 0 24 24"
24
+ xmlns="http://www.w3.org/2000/svg"
25
+ >
26
+ <path
27
+ strokeLinecap="round"
28
+ strokeLinejoin="round"
29
+ strokeWidth="2"
30
+ d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
31
+ />
32
+ </svg>
33
+ <span>You&apos;re up and running</span>
34
+ </h2>
35
+ <a href="#commands"> What&apos;s next? </a>
36
+ </div>
37
+ <div class="logo-container">
38
+ <svg
39
+ fill="currentColor"
40
+ role="img"
41
+ viewBox="0 0 24 24"
42
+ xmlns="http://www.w3.org/2000/svg"
43
+ >
44
+ <path d="M11.987 14.138l-3.132 4.923-5.193-8.427-.012 8.822H0V4.544h3.691l5.247 8.833.005-3.998 3.044 4.759zm.601-5.761c.024-.048 0-3.784.008-3.833h-3.65c.002.059-.005 3.776-.003 3.833h3.645zm5.634 4.134a2.061 2.061 0 0 0-1.969 1.336 1.963 1.963 0 0 1 2.343-.739c.396.161.917.422 1.33.283a2.1 2.1 0 0 0-1.704-.88zm3.39 1.061c-.375-.13-.8-.277-1.109-.681-.06-.08-.116-.17-.176-.265a2.143 2.143 0 0 0-.533-.642c-.294-.216-.68-.322-1.18-.322a2.482 2.482 0 0 0-2.294 1.536 2.325 2.325 0 0 1 4.002.388.75.75 0 0 0 .836.334c.493-.105.46.36 1.203.518v-.133c-.003-.446-.246-.55-.75-.733zm2.024 1.266a.723.723 0 0 0 .347-.638c-.01-2.957-2.41-5.487-5.37-5.487a5.364 5.364 0 0 0-4.487 2.418c-.01-.026-1.522-2.39-1.538-2.418H8.943l3.463 5.423-3.379 5.32h3.54l1.54-2.366 1.568 2.366h3.541l-3.21-5.052a.7.7 0 0 1-.084-.32 2.69 2.69 0 0 1 2.69-2.691h.001c1.488 0 1.736.89 2.057 1.308.634.826 1.9.464 1.9 1.541a.707.707 0 0 0 1.066.596zm.35.133c-.173.372-.56.338-.755.639-.176.271.114.412.114.412s.337.156.538-.311c.104-.231.14-.488.103-.74z" />
45
+ </svg>
46
+ </div>
47
+ </div>
48
+
49
+ <div id="middle-content">
50
+ <div id="learning-materials" class="rounded shadow">
51
+ <h2>Learning materials</h2>
52
+ <a
53
+ href="https://nx.dev/getting-started/intro?utm_source=nx-project"
54
+ target="_blank"
55
+ rel="noreferrer"
56
+ class="list-item-link"
57
+ >
58
+ <svg
59
+ fill="none"
60
+ stroke="currentColor"
61
+ viewBox="0 0 24 24"
62
+ xmlns="http://www.w3.org/2000/svg"
63
+ >
64
+ <path
65
+ strokeLinecap="round"
66
+ strokeLinejoin="round"
67
+ strokeWidth="2"
68
+ d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"
69
+ />
70
+ </svg>
71
+ <span>
72
+ Documentation
73
+ <span> Everything is in there </span>
74
+ </span>
75
+ <svg
76
+ fill="none"
77
+ stroke="currentColor"
78
+ viewBox="0 0 24 24"
79
+ xmlns="http://www.w3.org/2000/svg"
80
+ >
81
+ <path
82
+ strokeLinecap="round"
83
+ strokeLinejoin="round"
84
+ strokeWidth="2"
85
+ d="M9 5l7 7-7 7"
86
+ />
87
+ </svg>
88
+ </a>
89
+ <a
90
+ href="https://blog.nrwl.io/?utm_source=nx-project"
91
+ target="_blank"
92
+ rel="noreferrer"
93
+ class="list-item-link"
94
+ >
95
+ <svg
96
+ fill="none"
97
+ stroke="currentColor"
98
+ viewBox="0 0 24 24"
99
+ xmlns="http://www.w3.org/2000/svg"
100
+ >
101
+ <path
102
+ strokeLinecap="round"
103
+ strokeLinejoin="round"
104
+ strokeWidth="2"
105
+ d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
106
+ />
107
+ </svg>
108
+ <span>
109
+ Blog
110
+ <span> Changelog, features & events </span>
111
+ </span>
112
+ <svg
113
+ fill="none"
114
+ stroke="currentColor"
115
+ viewBox="0 0 24 24"
116
+ xmlns="http://www.w3.org/2000/svg"
117
+ >
118
+ <path
119
+ strokeLinecap="round"
120
+ strokeLinejoin="round"
121
+ strokeWidth="2"
122
+ d="M9 5l7 7-7 7"
123
+ />
124
+ </svg>
125
+ </a>
126
+ <a
127
+ href="https://www.youtube.com/@NxDevtools/videos?utm_source=nx-project&sub_confirmation=1"
128
+ target="_blank"
129
+ rel="noreferrer"
130
+ class="list-item-link"
131
+ >
132
+ <svg
133
+ role="img"
134
+ viewBox="0 0 24 24"
135
+ fill="currentColor"
136
+ xmlns="http://www.w3.org/2000/svg"
137
+ >
138
+ <title>YouTube</title>
139
+ <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
140
+ </svg>
141
+ <span>
142
+ YouTube channel
143
+ <span> Nx Show, talks & tutorials </span>
144
+ </span>
145
+ <svg
146
+ fill="none"
147
+ stroke="currentColor"
148
+ viewBox="0 0 24 24"
149
+ xmlns="http://www.w3.org/2000/svg"
150
+ >
151
+ <path
152
+ strokeLinecap="round"
153
+ strokeLinejoin="round"
154
+ strokeWidth="2"
155
+ d="M9 5l7 7-7 7"
156
+ />
157
+ </svg>
158
+ </a>
159
+ <a
160
+ href="https://nx.dev/react-tutorial/1-code-generation?utm_source=nx-project"
161
+ target="_blank"
162
+ rel="noreferrer"
163
+ class="list-item-link"
164
+ >
165
+ <svg
166
+ fill="none"
167
+ stroke="currentColor"
168
+ viewBox="0 0 24 24"
169
+ xmlns="http://www.w3.org/2000/svg"
170
+ >
171
+ <path
172
+ strokeLinecap="round"
173
+ strokeLinejoin="round"
174
+ strokeWidth="2"
175
+ d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
176
+ />
177
+ </svg>
178
+ <span>
179
+ Interactive tutorials
180
+ <span> Create an app, step-by-step </span>
181
+ </span>
182
+ <svg
183
+ fill="none"
184
+ stroke="currentColor"
185
+ viewBox="0 0 24 24"
186
+ xmlns="http://www.w3.org/2000/svg"
187
+ >
188
+ <path
189
+ strokeLinecap="round"
190
+ strokeLinejoin="round"
191
+ strokeWidth="2"
192
+ d="M9 5l7 7-7 7"
193
+ />
194
+ </svg>
195
+ </a>
196
+ <a
197
+ href="https://nxplaybook.com/?utm_source=nx-project"
198
+ target="_blank"
199
+ rel="noreferrer"
200
+ class="list-item-link"
201
+ >
202
+ <svg
203
+ fill="none"
204
+ stroke="currentColor"
205
+ viewBox="0 0 24 24"
206
+ xmlns="http://www.w3.org/2000/svg"
207
+ >
208
+ <path d="M12 14l9-5-9-5-9 5 9 5z" />
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
+ />
216
+ </svg>
217
+ <span>
218
+ Video courses
219
+ <span> Nx custom courses </span>
220
+ </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
+ </a>
235
+ </div>
236
+ <div id="other-links">
237
+ <a
238
+ class="button-pill nx-console rounded shadow"
239
+ href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console&utm_source=nx-project"
240
+ target="_blank"
241
+ rel="noreferrer"
242
+ >
243
+ <svg
244
+ fill="currentColor"
245
+ role="img"
246
+ viewBox="0 0 24 24"
247
+ xmlns="http://www.w3.org/2000/svg"
248
+ >
249
+ <title>Visual Studio Code</title>
250
+ <path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
251
+ </svg>
252
+ <span>
253
+ Install Nx Console for VSCode
254
+ <span>The official VSCode plugin for Nx.</span>
255
+ </span>
256
+ </a>
257
+ <a
258
+ class="button-pill nx-console rounded shadow"
259
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
260
+ target="_blank"
261
+ rel="noreferrer"
262
+ >
263
+ <svg
264
+ fill="currentColor"
265
+ role="img"
266
+ viewBox="0 0 24 24"
267
+ xmlns="http://www.w3.org/2000/svg"
268
+ >
269
+ <title>IntelliJ</title>
270
+ <path d="M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z"></path>
271
+ </svg>
272
+ <span>
273
+ Install Nx Console for JetBrains
274
+ <span>
275
+ Available for WebStorm, Intellij IDEA Ultimate and more!
276
+ </span>
277
+ </span>
278
+ </a>
279
+ <div id="nx-cloud" class="rounded shadow">
280
+ <div>
281
+ <svg
282
+ id="nx-cloud-logo"
283
+ role="img"
284
+ xmlns="http://www.w3.org/2000/svg"
285
+ stroke="currentColor"
286
+ fill="transparent"
287
+ viewBox="0 0 24 24"
288
+ >
289
+ <path
290
+ strokeWidth="2"
291
+ d="M23 3.75V6.5c-3.036 0-5.5 2.464-5.5 5.5s-2.464 5.5-5.5 5.5-5.5 2.464-5.5 5.5H3.75C2.232 23 1 21.768 1 20.25V3.75C1 2.232 2.232 1 3.75 1h16.5C21.768 1 23 2.232 23 3.75Z"
292
+ />
293
+ <path
294
+ strokeWidth="2"
295
+ d="M23 6v14.1667C23 21.7307 21.7307 23 20.1667 23H6c0-3.128 2.53867-5.6667 5.6667-5.6667 3.128 0 5.6666-2.5386 5.6666-5.6666C17.3333 8.53867 19.872 6 23 6Z"
296
+ />
297
+ </svg>
298
+ <h2>
299
+ NxCloud
300
+ <span>Enable faster CI & better DX</span>
301
+ </h2>
302
+ </div>
303
+ <p>
304
+ You can activate distributed tasks executions and caching by
305
+ running:
306
+ </p>
307
+ <pre>nx connect-to-nx-cloud</pre>
308
+ <a
309
+ href="https://nx.app/?utm_source=nx-project"
310
+ target="_blank"
311
+ rel="noreferrer"
312
+ >
313
+ {' '}
314
+ What is Nx Cloud?{' '}
315
+ </a>
316
+ </div>
317
+ <a
318
+ id="nx-repo"
319
+ class="button-pill rounded shadow"
320
+ href="https://github.com/nrwl/nx?utm_source=nx-project"
321
+ target="_blank"
322
+ rel="noreferrer"
323
+ >
324
+ <svg
325
+ fill="currentColor"
326
+ role="img"
327
+ viewBox="0 0 24 24"
328
+ xmlns="http://www.w3.org/2000/svg"
329
+ >
330
+ <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" />
331
+ </svg>
332
+ <span>
333
+ Nx is open source
334
+ <span> Love Nx? Give us a star! </span>
335
+ </span>
336
+ </a>
337
+ </div>
338
+ </div>
339
+
340
+ <div id="commands" class="rounded shadow">
341
+ <h2>Next steps</h2>
342
+ <p>Here are some things you can do with Nx:</p>
343
+ <details>
344
+ <summary>
345
+ <svg
346
+ fill="none"
347
+ stroke="currentColor"
348
+ viewBox="0 0 24 24"
349
+ xmlns="http://www.w3.org/2000/svg"
350
+ >
351
+ <path
352
+ strokeLinecap="round"
353
+ strokeLinejoin="round"
354
+ strokeWidth="2"
355
+ 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"
356
+ />
357
+ </svg>
358
+ Add UI library
359
+ </summary>
360
+ <pre>
361
+ <span># Generate UI lib</span>
362
+ nx g @nx/react:lib ui
363
+ <span># Add a component</span>
364
+ nx g @nx/react:component button --project ui
365
+ </pre>
366
+ </details>
367
+ <details>
368
+ <summary>
369
+ <svg
370
+ fill="none"
371
+ stroke="currentColor"
372
+ viewBox="0 0 24 24"
373
+ xmlns="http://www.w3.org/2000/svg"
374
+ >
375
+ <path
376
+ strokeLinecap="round"
377
+ strokeLinejoin="round"
378
+ strokeWidth="2"
379
+ 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"
380
+ />
381
+ </svg>
382
+ View interactive project graph
383
+ </summary>
384
+ <pre>nx graph</pre>
385
+ </details>
386
+ <details>
387
+ <summary>
388
+ <svg
389
+ fill="none"
390
+ stroke="currentColor"
391
+ viewBox="0 0 24 24"
392
+ xmlns="http://www.w3.org/2000/svg"
393
+ >
394
+ <path
395
+ strokeLinecap="round"
396
+ strokeLinejoin="round"
397
+ strokeWidth="2"
398
+ 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"
399
+ />
400
+ </svg>
401
+ Run affected commands
402
+ </summary>
403
+ <pre>
404
+ <span># see what&apos;s been affected by changes</span>
405
+ nx affected:graph
406
+ <span># run tests for current changes</span>
407
+ nx affected:test
408
+ <span># run e2e tests for current changes</span>
409
+ nx affected:e2e
410
+ </pre>
411
+ </details>
412
+ </div>
413
+
414
+ <p id="love">
415
+ Carefully crafted with
416
+ <svg
417
+ fill="currentColor"
418
+ stroke="none"
419
+ viewBox="0 0 24 24"
420
+ xmlns="http://www.w3.org/2000/svg"
421
+ >
422
+ <path
423
+ strokeLinecap="round"
424
+ strokeLinejoin="round"
425
+ strokeWidth="2"
426
+ d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
427
+ />
428
+ </svg>
429
+ </p>
430
+ </div>
431
+ </div>
432
+ </template>
433
+
434
+ <style scoped>
435
+ svg {
436
+ display: block;
437
+ vertical-align: middle;
438
+ shape-rendering: auto;
439
+ text-rendering: optimizeLegibility;
440
+ }
441
+ pre {
442
+ background-color: rgba(55, 65, 81, 1);
443
+ border-radius: 0.25rem;
444
+ color: rgba(229, 231, 235, 1);
445
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
446
+ 'Liberation Mono', 'Courier New', monospace;
447
+ overflow: scroll;
448
+ padding: 0.5rem 0.75rem;
449
+ }
450
+
451
+ .shadow {
452
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1),
453
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
454
+ }
455
+ .rounded {
456
+ border-radius: 1.5rem;
457
+ }
458
+ .wrapper {
459
+ width: 100%;
460
+ }
461
+ .container {
462
+ margin-left: auto;
463
+ margin-right: auto;
464
+ max-width: 768px;
465
+ padding-bottom: 3rem;
466
+ padding-left: 1rem;
467
+ padding-right: 1rem;
468
+ color: rgba(55, 65, 81, 1);
469
+ width: 100%;
470
+ }
471
+ #welcome {
472
+ margin-top: 2.5rem;
473
+ }
474
+ #welcome h1 {
475
+ font-size: 3rem;
476
+ font-weight: 500;
477
+ letter-spacing: -0.025em;
478
+ line-height: 1;
479
+ }
480
+ #welcome span {
481
+ display: block;
482
+ font-size: 1.875rem;
483
+ font-weight: 300;
484
+ line-height: 2.25rem;
485
+ margin-bottom: 0.5rem;
486
+ }
487
+ #hero {
488
+ align-items: center;
489
+ background-color: hsla(214, 62%, 21%, 1);
490
+ border: none;
491
+ box-sizing: border-box;
492
+ color: rgba(55, 65, 81, 1);
493
+ display: grid;
494
+ grid-template-columns: 1fr;
495
+ margin-top: 3.5rem;
496
+ }
497
+ #hero .text-container {
498
+ color: rgba(255, 255, 255, 1);
499
+ padding: 3rem 2rem;
500
+ }
501
+ #hero .text-container h2 {
502
+ font-size: 1.5rem;
503
+ line-height: 2rem;
504
+ position: relative;
505
+ }
506
+ #hero .text-container h2 svg {
507
+ color: hsla(162, 47%, 50%, 1);
508
+ height: 2rem;
509
+ left: -0.25rem;
510
+ position: absolute;
511
+ top: 0;
512
+ width: 2rem;
513
+ }
514
+ #hero .text-container h2 span {
515
+ margin-left: 2.5rem;
516
+ }
517
+ #hero .text-container a {
518
+ background-color: rgba(255, 255, 255, 1);
519
+ border-radius: 0.75rem;
520
+ color: rgba(55, 65, 81, 1);
521
+ display: inline-block;
522
+ margin-top: 1.5rem;
523
+ padding: 1rem 2rem;
524
+ text-decoration: inherit;
525
+ }
526
+ #hero .logo-container {
527
+ display: none;
528
+ justify-content: center;
529
+ padding-left: 2rem;
530
+ padding-right: 2rem;
531
+ }
532
+ #hero .logo-container svg {
533
+ color: rgba(255, 255, 255, 1);
534
+ width: 66.666667%;
535
+ }
536
+ #middle-content {
537
+ align-items: flex-start;
538
+ display: grid;
539
+ gap: 4rem;
540
+ grid-template-columns: 1fr;
541
+ margin-top: 3.5rem;
542
+ }
543
+ #learning-materials {
544
+ padding: 2.5rem 2rem;
545
+ }
546
+ #learning-materials h2 {
547
+ font-weight: 500;
548
+ font-size: 1.25rem;
549
+ letter-spacing: -0.025em;
550
+ line-height: 1.75rem;
551
+ padding-left: 1rem;
552
+ padding-right: 1rem;
553
+ }
554
+ .list-item-link {
555
+ align-items: center;
556
+ border-radius: 0.75rem;
557
+ display: flex;
558
+ margin-top: 1rem;
559
+ padding: 1rem;
560
+ transition-property: background-color, border-color, color, fill, stroke,
561
+ opacity, box-shadow, transform, filter, backdrop-filter,
562
+ -webkit-backdrop-filter;
563
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
564
+ transition-duration: 150ms;
565
+ width: 100%;
566
+ }
567
+ .list-item-link svg:first-child {
568
+ margin-right: 1rem;
569
+ height: 1.5rem;
570
+ transition-property: background-color, border-color, color, fill, stroke,
571
+ opacity, box-shadow, transform, filter, backdrop-filter,
572
+ -webkit-backdrop-filter;
573
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
574
+ transition-duration: 150ms;
575
+ width: 1.5rem;
576
+ }
577
+ .list-item-link > span {
578
+ flex-grow: 1;
579
+ font-weight: 400;
580
+ transition-property: background-color, border-color, color, fill, stroke,
581
+ opacity, box-shadow, transform, filter, backdrop-filter,
582
+ -webkit-backdrop-filter;
583
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
584
+ transition-duration: 150ms;
585
+ }
586
+ .list-item-link > span > span {
587
+ color: rgba(107, 114, 128, 1);
588
+ display: block;
589
+ flex-grow: 1;
590
+ font-size: 0.75rem;
591
+ font-weight: 300;
592
+ line-height: 1rem;
593
+ transition-property: background-color, border-color, color, fill, stroke,
594
+ opacity, box-shadow, transform, filter, backdrop-filter,
595
+ -webkit-backdrop-filter;
596
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
597
+ transition-duration: 150ms;
598
+ }
599
+ .list-item-link svg:last-child {
600
+ height: 1rem;
601
+ transition-property: all;
602
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
603
+ transition-duration: 150ms;
604
+ width: 1rem;
605
+ }
606
+ .list-item-link:hover {
607
+ color: rgba(255, 255, 255, 1);
608
+ background-color: hsla(162, 47%, 50%, 1);
609
+ }
610
+ .list-item-link:hover > span {}
611
+ .list-item-link:hover > span > span {
612
+ color: rgba(243, 244, 246, 1);
613
+ }
614
+ .list-item-link:hover svg:last-child {
615
+ transform: translateX(0.25rem);
616
+ }
617
+ #other-links {}
618
+ .button-pill {
619
+ padding: 1.5rem 2rem;
620
+ margin-bottom: 2rem;
621
+ transition-duration: 300ms;
622
+ transition-property: background-color, border-color, color, fill, stroke,
623
+ opacity, box-shadow, transform, filter, backdrop-filter,
624
+ -webkit-backdrop-filter;
625
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
626
+ align-items: center;
627
+ display: flex;
628
+ }
629
+ .button-pill svg {
630
+ transition-property: background-color, border-color, color, fill, stroke,
631
+ opacity, box-shadow, transform, filter, backdrop-filter,
632
+ -webkit-backdrop-filter;
633
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
634
+ transition-duration: 150ms;
635
+ flex-shrink: 0;
636
+ width: 3rem;
637
+ }
638
+ .button-pill > span {
639
+ letter-spacing: -0.025em;
640
+ font-weight: 400;
641
+ font-size: 1.125rem;
642
+ line-height: 1.75rem;
643
+ padding-left: 1rem;
644
+ padding-right: 1rem;
645
+ }
646
+ .button-pill span span {
647
+ display: block;
648
+ font-size: 0.875rem;
649
+ font-weight: 300;
650
+ line-height: 1.25rem;
651
+ }
652
+ .button-pill:hover svg,
653
+ .button-pill:hover {
654
+ color: rgba(255, 255, 255, 1) !important;
655
+ }
656
+ .nx-console:hover {
657
+ background-color: rgba(0, 122, 204, 1);
658
+ }
659
+ .nx-console svg {
660
+ color: rgba(0, 122, 204, 1);
661
+ }
662
+ #nx-repo:hover {
663
+ background-color: rgba(24, 23, 23, 1);
664
+ }
665
+ #nx-repo svg {
666
+ color: rgba(24, 23, 23, 1);
667
+ }
668
+ #nx-cloud {
669
+ margin-bottom: 2rem;
670
+ margin-top: 2rem;
671
+ padding: 2.5rem 2rem;
672
+ }
673
+ #nx-cloud > div {
674
+ align-items: center;
675
+ display: flex;
676
+ }
677
+ #nx-cloud > div svg {
678
+ border-radius: 0.375rem;
679
+ flex-shrink: 0;
680
+ width: 3rem;
681
+ }
682
+ #nx-cloud > div h2 {
683
+ font-size: 1.125rem;
684
+ font-weight: 400;
685
+ letter-spacing: -0.025em;
686
+ line-height: 1.75rem;
687
+ padding-left: 1rem;
688
+ padding-right: 1rem;
689
+ }
690
+ #nx-cloud > div h2 span {
691
+ display: block;
692
+ font-size: 0.875rem;
693
+ font-weight: 300;
694
+ line-height: 1.25rem;
695
+ }
696
+ #nx-cloud p {
697
+ font-size: 1rem;
698
+ line-height: 1.5rem;
699
+ margin-top: 1rem;
700
+ }
701
+ #nx-cloud pre {
702
+ margin-top: 1rem;
703
+ }
704
+ #nx-cloud a {
705
+ color: rgba(107, 114, 128, 1);
706
+ display: block;
707
+ font-size: 0.875rem;
708
+ line-height: 1.25rem;
709
+ margin-top: 1.5rem;
710
+ text-align: right;
711
+ }
712
+ #nx-cloud a:hover {
713
+ text-decoration: underline;
714
+ }
715
+ #commands {
716
+ padding: 2.5rem 2rem;
717
+ margin-top: 3.5rem;
718
+ }
719
+ #commands h2 {
720
+ font-size: 1.25rem;
721
+ font-weight: 400;
722
+ letter-spacing: -0.025em;
723
+ line-height: 1.75rem;
724
+ padding-left: 1rem;
725
+ padding-right: 1rem;
726
+ }
727
+ #commands p {
728
+ font-size: 1rem;
729
+ font-weight: 300;
730
+ line-height: 1.5rem;
731
+ margin-top: 1rem;
732
+ padding-left: 1rem;
733
+ padding-right: 1rem;
734
+ }
735
+ details {
736
+ align-items: center;
737
+ display: flex;
738
+ margin-top: 1rem;
739
+ padding-left: 1rem;
740
+ padding-right: 1rem;
741
+ width: 100%;
742
+ }
743
+ details pre > span {
744
+ color: rgba(181, 181, 181, 1);
745
+ display: block;
746
+ }
747
+ summary {
748
+ border-radius: 0.5rem;
749
+ display: flex;
750
+ font-weight: 400;
751
+ padding: 0.5rem;
752
+ cursor: pointer;
753
+ transition-property: background-color, border-color, color, fill, stroke,
754
+ opacity, box-shadow, transform, filter, backdrop-filter,
755
+ -webkit-backdrop-filter;
756
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
757
+ transition-duration: 150ms;
758
+ }
759
+ summary:hover {
760
+ background-color: rgba(243, 244, 246, 1);
761
+ }
762
+ summary svg {
763
+ height: 1.5rem;
764
+ margin-right: 1rem;
765
+ width: 1.5rem;
766
+ }
767
+ #love {
768
+ color: rgba(107, 114, 128, 1);
769
+ font-size: 0.875rem;
770
+ line-height: 1.25rem;
771
+ margin-top: 3.5rem;
772
+ opacity: 0.6;
773
+ text-align: center;
774
+ }
775
+ #love svg {
776
+ color: rgba(252, 165, 165, 1);
777
+ width: 1.25rem;
778
+ height: 1.25rem;
779
+ display: inline;
780
+ margin-top: -0.25rem;
781
+ }
782
+ @media screen and (min-width: 768px) {
783
+ #hero {
784
+ grid-template-columns: repeat(2, minmax(0, 1fr));
785
+ }
786
+ #hero .logo-container {
787
+ display: flex;
788
+ }
789
+ #middle-content {
790
+ grid-template-columns: repeat(2, minmax(0, 1fr));
791
+ }
792
+ }
793
+ </style>