@nx/vue 0.0.0-pr-22179-271588f

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 (95) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +68 -0
  3. package/executors.json +3 -0
  4. package/generators.json +50 -0
  5. package/index.d.ts +13 -0
  6. package/index.js +21 -0
  7. package/migrations.json +14 -0
  8. package/package.json +52 -0
  9. package/src/generators/application/application.d.ts +5 -0
  10. package/src/generators/application/application.js +70 -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 +833 -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 +67 -0
  23. package/src/generators/application/lib/add-vite.d.ts +3 -0
  24. package/src/generators/application/lib/add-vite.js +35 -0
  25. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  26. package/src/generators/application/lib/create-application-files.js +30 -0
  27. package/src/generators/application/lib/normalize-options.d.ts +4 -0
  28. package/src/generators/application/lib/normalize-options.js +45 -0
  29. package/src/generators/application/schema.d.ts +31 -0
  30. package/src/generators/application/schema.json +140 -0
  31. package/src/generators/component/component.d.ts +5 -0
  32. package/src/generators/component/component.js +41 -0
  33. package/src/generators/component/files/__fileName__.spec.ts__tmpl__ +9 -0
  34. package/src/generators/component/files/__fileName__.vue__tmpl__ +10 -0
  35. package/src/generators/component/lib/utils.d.ts +4 -0
  36. package/src/generators/component/lib/utils.js +66 -0
  37. package/src/generators/component/schema.d.ts +37 -0
  38. package/src/generators/component/schema.json +104 -0
  39. package/src/generators/init/init.d.ts +4 -0
  40. package/src/generators/init/init.js +23 -0
  41. package/src/generators/init/schema.d.ts +5 -0
  42. package/src/generators/init/schema.json +27 -0
  43. package/src/generators/library/files/README.md +7 -0
  44. package/src/generators/library/files/package.json__tmpl__ +12 -0
  45. package/src/generators/library/files/src/index.ts__tmpl__ +0 -0
  46. package/src/generators/library/files/src/vue-shims.d.ts__tmpl__ +5 -0
  47. package/src/generators/library/files/tsconfig.lib.json__tmpl__ +27 -0
  48. package/src/generators/library/files/tsconfig.spec.json__tmpl__ +27 -0
  49. package/src/generators/library/lib/add-vite.d.ts +3 -0
  50. package/src/generators/library/lib/add-vite.js +58 -0
  51. package/src/generators/library/lib/create-library-files.d.ts +3 -0
  52. package/src/generators/library/lib/create-library-files.js +28 -0
  53. package/src/generators/library/lib/normalize-options.d.ts +3 -0
  54. package/src/generators/library/lib/normalize-options.js +56 -0
  55. package/src/generators/library/library.d.ts +5 -0
  56. package/src/generators/library/library.js +80 -0
  57. package/src/generators/library/schema.d.ts +42 -0
  58. package/src/generators/library/schema.json +139 -0
  59. package/src/generators/setup-tailwind/files/postcss.config.js.template +10 -0
  60. package/src/generators/setup-tailwind/files/tailwind.config.js.template +18 -0
  61. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.d.ts +3 -0
  62. package/src/generators/setup-tailwind/lib/add-tailwind-style-imports.js +32 -0
  63. package/src/generators/setup-tailwind/schema.d.ts +6 -0
  64. package/src/generators/setup-tailwind/schema.json +45 -0
  65. package/src/generators/setup-tailwind/setup-tailwind.d.ts +4 -0
  66. package/src/generators/setup-tailwind/setup-tailwind.js +25 -0
  67. package/src/generators/stories/lib/component-story.d.ts +3 -0
  68. package/src/generators/stories/lib/component-story.js +34 -0
  69. package/src/generators/stories/lib/files/js/__componentFileName__.stories.js__tmpl__ +25 -0
  70. package/src/generators/stories/lib/files/ts/__componentFileName__.stories.ts__tmpl__ +32 -0
  71. package/src/generators/stories/lib/utils.d.ts +10 -0
  72. package/src/generators/stories/lib/utils.js +75 -0
  73. package/src/generators/stories/schema.json +67 -0
  74. package/src/generators/stories/stories.d.ts +13 -0
  75. package/src/generators/stories/stories.js +62 -0
  76. package/src/generators/storybook-configuration/configuration.d.ts +5 -0
  77. package/src/generators/storybook-configuration/configuration.js +43 -0
  78. package/src/generators/storybook-configuration/schema.d.ts +13 -0
  79. package/src/generators/storybook-configuration/schema.json +80 -0
  80. package/src/tailwind.d.ts +6 -0
  81. package/src/tailwind.js +29 -0
  82. package/src/utils/add-linting.d.ts +13 -0
  83. package/src/utils/add-linting.js +118 -0
  84. package/src/utils/ast-utils.d.ts +3 -0
  85. package/src/utils/ast-utils.js +33 -0
  86. package/src/utils/create-ts-config.d.ts +8 -0
  87. package/src/utils/create-ts-config.js +66 -0
  88. package/src/utils/ensure-dependencies.d.ts +6 -0
  89. package/src/utils/ensure-dependencies.js +24 -0
  90. package/src/utils/lint.d.ts +8 -0
  91. package/src/utils/lint.js +12 -0
  92. package/src/utils/test-utils.d.ts +3 -0
  93. package/src/utils/test-utils.js +30 -0
  94. package/src/utils/versions.d.ts +14 -0
  95. package/src/utils/versions.js +22 -0
@@ -0,0 +1,833 @@
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
+ id="nx-console"
239
+ class="button-pill rounded shadow"
240
+ href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console&utm_source=nx-project"
241
+ target="_blank"
242
+ rel="noreferrer"
243
+ >
244
+ <svg
245
+ fill="currentColor"
246
+ role="img"
247
+ viewBox="0 0 24 24"
248
+ xmlns="http://www.w3.org/2000/svg"
249
+ >
250
+ <title>Visual Studio Code</title>
251
+ <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" />
252
+ </svg>
253
+ <span>
254
+ Install Nx Console for VSCode
255
+ <span>The official VSCode extension for Nx.</span>
256
+ </span>
257
+ </a>
258
+ <a
259
+ id="nx-console-jetbrains"
260
+ class="button-pill rounded shadow"
261
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
262
+ target="_blank"
263
+ rel="noreferrer"
264
+ >
265
+ <svg
266
+ height="48"
267
+ width="48"
268
+ viewBox="20 20 60 60"
269
+ xmlns="http://www.w3.org/2000/svg"
270
+ >
271
+ <path d="m22.5 22.5h60v60h-60z" />
272
+ <g fill="#fff">
273
+ <path d="m29.03 71.25h22.5v3.75h-22.5z" />
274
+ <path d="m28.09 38 1.67-1.58a1.88 1.88 0 0 0 1.47.87c.64 0 1.06-.44 1.06-1.31v-5.98h2.58v6a3.48 3.48 0 0 1 -.87 2.6 3.56 3.56 0 0 1 -2.57.95 3.84 3.84 0 0 1 -3.34-1.55z" />
275
+ <path d="m36 30h7.53v2.19h-5v1.44h4.49v2h-4.42v1.49h5v2.21h-7.6z" />
276
+ <path d="m47.23 32.29h-2.8v-2.29h8.21v2.27h-2.81v7.1h-2.6z" />
277
+ <path d="m29.13 43.08h4.42a3.53 3.53 0 0 1 2.55.83 2.09 2.09 0 0 1 .6 1.53 2.16 2.16 0 0 1 -1.44 2.09 2.27 2.27 0 0 1 1.86 2.29c0 1.61-1.31 2.59-3.55 2.59h-4.44zm5 2.89c0-.52-.42-.8-1.18-.8h-1.29v1.64h1.24c.79 0 1.25-.26 1.25-.81zm-.9 2.66h-1.57v1.73h1.62c.8 0 1.24-.31 1.24-.86 0-.5-.4-.87-1.27-.87z" />
278
+ <path d="m38 43.08h4.1a4.19 4.19 0 0 1 3 1 2.93 2.93 0 0 1 .9 2.19 3 3 0 0 1 -1.93 2.89l2.24 3.27h-3l-1.88-2.84h-.87v2.84h-2.56zm4 4.5c.87 0 1.39-.43 1.39-1.11 0-.75-.54-1.12-1.4-1.12h-1.44v2.26z" />
279
+ <path d="m49.59 43h2.5l4 9.44h-2.79l-.67-1.69h-3.63l-.67 1.69h-2.71zm2.27 5.73-1-2.65-1.06 2.65z" />
280
+ <path d="m56.46 43.05h2.6v9.37h-2.6z" />
281
+ <path d="m60.06 43.05h2.42l3.37 5v-5h2.57v9.37h-2.26l-3.53-5.14v5.14h-2.57z" />
282
+ <path d="m68.86 51 1.45-1.73a4.84 4.84 0 0 0 3 1.13c.71 0 1.08-.24 1.08-.65 0-.4-.31-.6-1.59-.91-2-.46-3.53-1-3.53-2.93 0-1.74 1.37-3 3.62-3a5.89 5.89 0 0 1 3.86 1.25l-1.26 1.84a4.63 4.63 0 0 0 -2.62-.92c-.63 0-.94.25-.94.6 0 .42.32.61 1.63.91 2.14.46 3.44 1.16 3.44 2.91 0 1.91-1.51 3-3.79 3a6.58 6.58 0 0 1 -4.35-1.5z" />
283
+ </g>
284
+ </svg>
285
+ <span>
286
+ Install Nx Console for JetBrains
287
+ <span>
288
+ Available for WebStorm, Intellij IDEA Ultimate and more!
289
+ </span>
290
+ </span>
291
+ </a>
292
+ <div id="nx-cloud" class="rounded shadow">
293
+ <div>
294
+ <svg
295
+ id="nx-cloud-logo"
296
+ role="img"
297
+ xmlns="http://www.w3.org/2000/svg"
298
+ stroke="currentColor"
299
+ fill="transparent"
300
+ viewBox="0 0 24 24"
301
+ >
302
+ <path
303
+ strokeWidth="2"
304
+ 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"
305
+ />
306
+ <path
307
+ strokeWidth="2"
308
+ 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"
309
+ />
310
+ </svg>
311
+ <h2>
312
+ Nx Cloud
313
+ <span>Enable faster CI & better DX</span>
314
+ </h2>
315
+ </div>
316
+ <p>
317
+ You can activate distributed tasks executions and caching by
318
+ running:
319
+ </p>
320
+ <pre>nx connect</pre>
321
+ <a
322
+ href="https://nx.app/?utm_source=nx-project"
323
+ target="_blank"
324
+ rel="noreferrer"
325
+ >
326
+ What is Nx Cloud?
327
+ </a>
328
+ </div>
329
+ <a
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>
349
+ </div>
350
+ </div>
351
+
352
+ <div id="commands" class="rounded shadow">
353
+ <h2>Next steps</h2>
354
+ <p>Here are some things you can do with Nx:</p>
355
+ <details>
356
+ <summary>
357
+ <svg
358
+ fill="none"
359
+ stroke="currentColor"
360
+ viewBox="0 0 24 24"
361
+ xmlns="http://www.w3.org/2000/svg"
362
+ >
363
+ <path
364
+ strokeLinecap="round"
365
+ strokeLinejoin="round"
366
+ strokeWidth="2"
367
+ 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"
368
+ />
369
+ </svg>
370
+ Add UI library
371
+ </summary>
372
+ <pre>
373
+ <span># Generate UI lib</span>
374
+ nx g @nx/vue:lib ui
375
+ <span># Add a component</span>
376
+ nx g @nx/vue:component ui/src/lib/button
377
+ </pre>
378
+ </details>
379
+ <details>
380
+ <summary>
381
+ <svg
382
+ fill="none"
383
+ stroke="currentColor"
384
+ viewBox="0 0 24 24"
385
+ xmlns="http://www.w3.org/2000/svg"
386
+ >
387
+ <path
388
+ strokeLinecap="round"
389
+ strokeLinejoin="round"
390
+ strokeWidth="2"
391
+ 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"
392
+ />
393
+ </svg>
394
+ View project details
395
+ </summary>
396
+ <pre>nx show project {{ title }} --web</pre>
397
+ </details>
398
+ <details>
399
+ <summary>
400
+ <svg
401
+ fill="none"
402
+ stroke="currentColor"
403
+ viewBox="0 0 24 24"
404
+ xmlns="http://www.w3.org/2000/svg"
405
+ >
406
+ <path
407
+ strokeLinecap="round"
408
+ strokeLinejoin="round"
409
+ strokeWidth="2"
410
+ 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"
411
+ />
412
+ </svg>
413
+ View interactive project graph
414
+ </summary>
415
+ <pre>nx graph</pre>
416
+ </details>
417
+ <details>
418
+ <summary>
419
+ <svg
420
+ fill="none"
421
+ stroke="currentColor"
422
+ viewBox="0 0 24 24"
423
+ xmlns="http://www.w3.org/2000/svg"
424
+ >
425
+ <path
426
+ strokeLinecap="round"
427
+ strokeLinejoin="round"
428
+ strokeWidth="2"
429
+ 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
+ />
431
+ </svg>
432
+ Run affected commands
433
+ </summary>
434
+ <pre>
435
+ <span># see what&apos;s been affected by changes</span>
436
+ nx affected:graph
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>
442
+ </details>
443
+ </div>
444
+
445
+ <p id="love">
446
+ Carefully crafted with
447
+ <svg
448
+ fill="currentColor"
449
+ stroke="none"
450
+ viewBox="0 0 24 24"
451
+ xmlns="http://www.w3.org/2000/svg"
452
+ >
453
+ <path
454
+ strokeLinecap="round"
455
+ strokeLinejoin="round"
456
+ strokeWidth="2"
457
+ 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"
458
+ />
459
+ </svg>
460
+ </p>
461
+ </div>
462
+ </div>
463
+ </template>
464
+
465
+ <style scoped>
466
+ svg {
467
+ display: block;
468
+ vertical-align: middle;
469
+ shape-rendering: auto;
470
+ text-rendering: optimizeLegibility;
471
+ }
472
+ pre {
473
+ background-color: rgba(55, 65, 81, 1);
474
+ border-radius: 0.25rem;
475
+ color: rgba(229, 231, 235, 1);
476
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
477
+ 'Liberation Mono', 'Courier New', monospace;
478
+ overflow: scroll;
479
+ padding: 0.5rem 0.75rem;
480
+ }
481
+
482
+ .shadow {
483
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1),
484
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
485
+ }
486
+ .rounded {
487
+ border-radius: 1.5rem;
488
+ }
489
+ .wrapper {
490
+ width: 100%;
491
+ }
492
+ .container {
493
+ margin-left: auto;
494
+ margin-right: auto;
495
+ max-width: 768px;
496
+ padding-bottom: 3rem;
497
+ padding-left: 1rem;
498
+ padding-right: 1rem;
499
+ color: rgba(55, 65, 81, 1);
500
+ width: 100%;
501
+ }
502
+ #welcome {
503
+ margin-top: 2.5rem;
504
+ }
505
+ #welcome h1 {
506
+ font-size: 3rem;
507
+ font-weight: 500;
508
+ letter-spacing: -0.025em;
509
+ line-height: 1;
510
+ }
511
+ #welcome span {
512
+ display: block;
513
+ font-size: 1.875rem;
514
+ font-weight: 300;
515
+ line-height: 2.25rem;
516
+ margin-bottom: 0.5rem;
517
+ }
518
+ #hero {
519
+ align-items: center;
520
+ background-color: hsla(214, 62%, 21%, 1);
521
+ border: none;
522
+ box-sizing: border-box;
523
+ color: rgba(55, 65, 81, 1);
524
+ display: grid;
525
+ grid-template-columns: 1fr;
526
+ margin-top: 3.5rem;
527
+ }
528
+ #hero .text-container {
529
+ color: rgba(255, 255, 255, 1);
530
+ padding: 3rem 2rem;
531
+ }
532
+ #hero .text-container h2 {
533
+ font-size: 1.5rem;
534
+ line-height: 2rem;
535
+ position: relative;
536
+ }
537
+ #hero .text-container h2 svg {
538
+ color: hsla(162, 47%, 50%, 1);
539
+ height: 2rem;
540
+ left: -0.25rem;
541
+ position: absolute;
542
+ top: 0;
543
+ width: 2rem;
544
+ }
545
+ #hero .text-container h2 span {
546
+ margin-left: 2.5rem;
547
+ }
548
+ #hero .text-container a {
549
+ background-color: rgba(255, 255, 255, 1);
550
+ border-radius: 0.75rem;
551
+ color: rgba(55, 65, 81, 1);
552
+ display: inline-block;
553
+ margin-top: 1.5rem;
554
+ padding: 1rem 2rem;
555
+ text-decoration: inherit;
556
+ }
557
+ #hero .logo-container {
558
+ display: none;
559
+ justify-content: center;
560
+ padding-left: 2rem;
561
+ padding-right: 2rem;
562
+ }
563
+ #hero .logo-container svg {
564
+ color: rgba(255, 255, 255, 1);
565
+ width: 66.666667%;
566
+ }
567
+ #middle-content {
568
+ align-items: flex-start;
569
+ display: grid;
570
+ gap: 4rem;
571
+ grid-template-columns: 1fr;
572
+ margin-top: 3.5rem;
573
+ }
574
+ #learning-materials {
575
+ padding: 2.5rem 2rem;
576
+ }
577
+ #learning-materials h2 {
578
+ font-weight: 500;
579
+ font-size: 1.25rem;
580
+ letter-spacing: -0.025em;
581
+ line-height: 1.75rem;
582
+ padding-left: 1rem;
583
+ padding-right: 1rem;
584
+ }
585
+ .list-item-link {
586
+ align-items: center;
587
+ border-radius: 0.75rem;
588
+ display: flex;
589
+ margin-top: 1rem;
590
+ padding: 1rem;
591
+ transition-property: background-color, border-color, color, fill, stroke,
592
+ opacity, box-shadow, transform, filter, backdrop-filter,
593
+ -webkit-backdrop-filter;
594
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
595
+ transition-duration: 150ms;
596
+ width: 100%;
597
+ }
598
+ .list-item-link svg:first-child {
599
+ margin-right: 1rem;
600
+ height: 1.5rem;
601
+ transition-property: background-color, border-color, color, fill, stroke,
602
+ opacity, box-shadow, transform, filter, backdrop-filter,
603
+ -webkit-backdrop-filter;
604
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
605
+ transition-duration: 150ms;
606
+ width: 1.5rem;
607
+ }
608
+ .list-item-link > span {
609
+ flex-grow: 1;
610
+ font-weight: 400;
611
+ transition-property: background-color, border-color, color, fill, stroke,
612
+ opacity, box-shadow, transform, filter, backdrop-filter,
613
+ -webkit-backdrop-filter;
614
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
615
+ transition-duration: 150ms;
616
+ }
617
+ .list-item-link > span > span {
618
+ color: rgba(107, 114, 128, 1);
619
+ display: block;
620
+ flex-grow: 1;
621
+ font-size: 0.75rem;
622
+ font-weight: 300;
623
+ line-height: 1rem;
624
+ transition-property: background-color, border-color, color, fill, stroke,
625
+ opacity, box-shadow, transform, filter, backdrop-filter,
626
+ -webkit-backdrop-filter;
627
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
628
+ transition-duration: 150ms;
629
+ }
630
+ .list-item-link svg:last-child {
631
+ height: 1rem;
632
+ transition-property: all;
633
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
634
+ transition-duration: 150ms;
635
+ width: 1rem;
636
+ }
637
+ .list-item-link:hover {
638
+ color: rgba(255, 255, 255, 1);
639
+ background-color: hsla(162, 47%, 50%, 1);
640
+ }
641
+ .list-item-link:hover > span {}
642
+ .list-item-link:hover > span > span {
643
+ color: rgba(243, 244, 246, 1);
644
+ }
645
+ .list-item-link:hover svg:last-child {
646
+ transform: translateX(0.25rem);
647
+ }
648
+ #other-links {}
649
+ .button-pill {
650
+ padding: 1.5rem 2rem;
651
+ margin-bottom: 2rem;
652
+ transition-duration: 300ms;
653
+ transition-property: background-color, border-color, color, fill, stroke,
654
+ opacity, box-shadow, transform, filter, backdrop-filter,
655
+ -webkit-backdrop-filter;
656
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
657
+ align-items: center;
658
+ display: flex;
659
+ }
660
+ .button-pill svg {
661
+ transition-property: background-color, border-color, color, fill, stroke,
662
+ opacity, box-shadow, transform, filter, backdrop-filter,
663
+ -webkit-backdrop-filter;
664
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
665
+ transition-duration: 150ms;
666
+ flex-shrink: 0;
667
+ width: 3rem;
668
+ }
669
+ .button-pill > span {
670
+ letter-spacing: -0.025em;
671
+ font-weight: 400;
672
+ font-size: 1.125rem;
673
+ line-height: 1.75rem;
674
+ padding-left: 1rem;
675
+ padding-right: 1rem;
676
+ }
677
+ .button-pill span span {
678
+ display: block;
679
+ font-size: 0.875rem;
680
+ font-weight: 300;
681
+ line-height: 1.25rem;
682
+ }
683
+ .button-pill:hover svg,
684
+ .button-pill:hover {
685
+ color: rgba(255, 255, 255, 1) !important;
686
+ }
687
+ #nx-console:hover {
688
+ background-color: rgba(0, 122, 204, 1);
689
+ }
690
+ #nx-console svg {
691
+ color: rgba(0, 122, 204, 1);
692
+ }
693
+ #nx-console-jetbrains {
694
+ margin-top: 2rem;
695
+ }
696
+ #nx-console-jetbrains:hover {
697
+ background-color: rgba(255, 49, 140, 1);
698
+ }
699
+ #nx-console-jetbrains svg {
700
+ color: rgba(255, 49, 140, 1);
701
+ }
702
+ #nx-repo:hover {
703
+ background-color: rgba(24, 23, 23, 1);
704
+ }
705
+ #nx-repo svg {
706
+ color: rgba(24, 23, 23, 1);
707
+ }
708
+ #nx-cloud {
709
+ margin-bottom: 2rem;
710
+ margin-top: 2rem;
711
+ padding: 2.5rem 2rem;
712
+ }
713
+ #nx-cloud > div {
714
+ align-items: center;
715
+ display: flex;
716
+ }
717
+ #nx-cloud > div svg {
718
+ border-radius: 0.375rem;
719
+ flex-shrink: 0;
720
+ width: 3rem;
721
+ }
722
+ #nx-cloud > div h2 {
723
+ font-size: 1.125rem;
724
+ font-weight: 400;
725
+ letter-spacing: -0.025em;
726
+ line-height: 1.75rem;
727
+ padding-left: 1rem;
728
+ padding-right: 1rem;
729
+ }
730
+ #nx-cloud > div h2 span {
731
+ display: block;
732
+ font-size: 0.875rem;
733
+ font-weight: 300;
734
+ line-height: 1.25rem;
735
+ }
736
+ #nx-cloud p {
737
+ font-size: 1rem;
738
+ line-height: 1.5rem;
739
+ margin-top: 1rem;
740
+ }
741
+ #nx-cloud pre {
742
+ margin-top: 1rem;
743
+ }
744
+ #nx-cloud a {
745
+ color: rgba(107, 114, 128, 1);
746
+ display: block;
747
+ font-size: 0.875rem;
748
+ line-height: 1.25rem;
749
+ margin-top: 1.5rem;
750
+ text-align: right;
751
+ }
752
+ #nx-cloud a:hover {
753
+ text-decoration: underline;
754
+ }
755
+ #commands {
756
+ padding: 2.5rem 2rem;
757
+ margin-top: 3.5rem;
758
+ }
759
+ #commands h2 {
760
+ font-size: 1.25rem;
761
+ font-weight: 400;
762
+ letter-spacing: -0.025em;
763
+ line-height: 1.75rem;
764
+ padding-left: 1rem;
765
+ padding-right: 1rem;
766
+ }
767
+ #commands p {
768
+ font-size: 1rem;
769
+ font-weight: 300;
770
+ line-height: 1.5rem;
771
+ margin-top: 1rem;
772
+ padding-left: 1rem;
773
+ padding-right: 1rem;
774
+ }
775
+ details {
776
+ align-items: center;
777
+ display: flex;
778
+ margin-top: 1rem;
779
+ padding-left: 1rem;
780
+ padding-right: 1rem;
781
+ width: 100%;
782
+ }
783
+ details pre > span {
784
+ color: rgba(181, 181, 181, 1);
785
+ display: block;
786
+ }
787
+ summary {
788
+ border-radius: 0.5rem;
789
+ display: flex;
790
+ font-weight: 400;
791
+ padding: 0.5rem;
792
+ cursor: pointer;
793
+ transition-property: background-color, border-color, color, fill, stroke,
794
+ opacity, box-shadow, transform, filter, backdrop-filter,
795
+ -webkit-backdrop-filter;
796
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
797
+ transition-duration: 150ms;
798
+ }
799
+ summary:hover {
800
+ background-color: rgba(243, 244, 246, 1);
801
+ }
802
+ summary svg {
803
+ height: 1.5rem;
804
+ margin-right: 1rem;
805
+ width: 1.5rem;
806
+ }
807
+ #love {
808
+ color: rgba(107, 114, 128, 1);
809
+ font-size: 0.875rem;
810
+ line-height: 1.25rem;
811
+ margin-top: 3.5rem;
812
+ opacity: 0.6;
813
+ text-align: center;
814
+ }
815
+ #love svg {
816
+ color: rgba(252, 165, 165, 1);
817
+ width: 1.25rem;
818
+ height: 1.25rem;
819
+ display: inline;
820
+ margin-top: -0.25rem;
821
+ }
822
+ @media screen and (min-width: 768px) {
823
+ #hero {
824
+ grid-template-columns: repeat(2, minmax(0, 1fr));
825
+ }
826
+ #hero .logo-container {
827
+ display: flex;
828
+ }
829
+ #middle-content {
830
+ grid-template-columns: repeat(2, minmax(0, 1fr));
831
+ }
832
+ }
833
+ </style>