@nx/angular 22.6.0-beta.1 → 22.6.0-beta.11
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/migrations.json +172 -0
- package/package.json +9 -9
- package/src/executors/application/schema.json +8 -0
- package/src/executors/application/utils/validate-options.d.ts.map +1 -1
- package/src/executors/application/utils/validate-options.js +5 -0
- package/src/executors/unit-test/schema.json +4 -0
- package/src/executors/unit-test/unit-test.impl.d.ts.map +1 -1
- package/src/executors/unit-test/unit-test.impl.js +8 -2
- package/src/generators/application/files/nx-welcome/claimed/ng-module/src/app/nx-welcome__componentFileSuffix__.ts__tpl__ +336 -0
- package/src/generators/application/files/nx-welcome/claimed/standalone/src/app/nx-welcome__componentFileSuffix__.ts__tpl__ +336 -0
- package/src/generators/application/files/nx-welcome/not-configured/ng-module/src/app/nx-welcome__componentFileSuffix__.ts__tpl__ +336 -0
- package/src/generators/application/files/nx-welcome/not-configured/standalone/src/app/nx-welcome__componentFileSuffix__.ts__tpl__ +336 -0
- package/src/generators/application/files/nx-welcome/unclaimed/ng-module/src/app/nx-welcome__componentFileSuffix__.ts__tpl__ +336 -0
- package/src/generators/application/files/nx-welcome/unclaimed/standalone/src/app/nx-welcome__componentFileSuffix__.ts__tpl__ +336 -0
- package/src/generators/application/lib/update-tsconfig-files.d.ts.map +1 -1
- package/src/generators/application/lib/update-tsconfig-files.js +6 -1
- package/src/generators/utils/add-vitest.d.ts.map +1 -1
- package/src/generators/utils/add-vitest.js +1 -42
- package/src/utils/versions.d.ts +5 -5
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +5 -5
|
@@ -12,6 +12,341 @@ import { CommonModule } from '@angular/common';
|
|
|
12
12
|
Delete this file and get started with your project!
|
|
13
13
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
14
14
|
-->
|
|
15
|
+
<% if (style === 'sass') { %>
|
|
16
|
+
<style>
|
|
17
|
+
html
|
|
18
|
+
-webkit-text-size-adjust: 100%
|
|
19
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
|
20
|
+
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
|
21
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
22
|
+
'Noto Color Emoji'
|
|
23
|
+
line-height: 1.5
|
|
24
|
+
tab-size: 4
|
|
25
|
+
scroll-behavior: smooth
|
|
26
|
+
body
|
|
27
|
+
font-family: inherit
|
|
28
|
+
line-height: inherit
|
|
29
|
+
margin: 0
|
|
30
|
+
h1, h2, p, pre
|
|
31
|
+
margin: 0
|
|
32
|
+
*, ::before, ::after
|
|
33
|
+
box-sizing: border-box
|
|
34
|
+
border-width: 0
|
|
35
|
+
border-style: solid
|
|
36
|
+
border-color: currentColor
|
|
37
|
+
h1, h2
|
|
38
|
+
font-size: inherit
|
|
39
|
+
font-weight: inherit
|
|
40
|
+
a
|
|
41
|
+
color: inherit
|
|
42
|
+
text-decoration: inherit
|
|
43
|
+
pre
|
|
44
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
45
|
+
'Liberation Mono', 'Courier New', monospace
|
|
46
|
+
svg
|
|
47
|
+
display: block
|
|
48
|
+
vertical-align: middle
|
|
49
|
+
svg
|
|
50
|
+
shape-rendering: auto
|
|
51
|
+
text-rendering: optimizeLegibility
|
|
52
|
+
pre
|
|
53
|
+
background-color: rgba(55, 65, 81, 1)
|
|
54
|
+
border-radius: 0.25rem
|
|
55
|
+
color: rgba(229, 231, 235, 1)
|
|
56
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
57
|
+
'Liberation Mono', 'Courier New', monospace
|
|
58
|
+
overflow: auto
|
|
59
|
+
padding: 0.5rem 0.75rem
|
|
60
|
+
.shadow
|
|
61
|
+
box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
62
|
+
0 4px 6px -2px rgba(0, 0, 0, 0.05)
|
|
63
|
+
.rounded
|
|
64
|
+
border-radius: 1.5rem
|
|
65
|
+
.wrapper
|
|
66
|
+
width: 100%
|
|
67
|
+
.container
|
|
68
|
+
margin-left: auto
|
|
69
|
+
margin-right: auto
|
|
70
|
+
max-width: 768px
|
|
71
|
+
padding-bottom: 3rem
|
|
72
|
+
padding-left: 1rem
|
|
73
|
+
padding-right: 1rem
|
|
74
|
+
color: rgba(55, 65, 81, 1)
|
|
75
|
+
width: 100%
|
|
76
|
+
#welcome
|
|
77
|
+
margin-top: 2.5rem
|
|
78
|
+
#welcome h1
|
|
79
|
+
font-size: 3rem
|
|
80
|
+
font-weight: 500
|
|
81
|
+
letter-spacing: -0.025em
|
|
82
|
+
line-height: 1
|
|
83
|
+
#welcome span
|
|
84
|
+
display: block
|
|
85
|
+
font-size: 1.875rem
|
|
86
|
+
font-weight: 300
|
|
87
|
+
line-height: 2.25rem
|
|
88
|
+
margin-bottom: 0.5rem
|
|
89
|
+
#hero
|
|
90
|
+
align-items: center
|
|
91
|
+
background-color: hsla(214, 62%, 21%, 1)
|
|
92
|
+
border: none
|
|
93
|
+
box-sizing: border-box
|
|
94
|
+
color: rgba(55, 65, 81, 1)
|
|
95
|
+
display: grid
|
|
96
|
+
grid-template-columns: 1fr
|
|
97
|
+
margin-top: 3.5rem
|
|
98
|
+
#hero .text-container
|
|
99
|
+
color: rgba(255, 255, 255, 1)
|
|
100
|
+
padding: 3rem 2rem
|
|
101
|
+
#hero .text-container h2
|
|
102
|
+
font-size: 1.5rem
|
|
103
|
+
line-height: 2rem
|
|
104
|
+
position: relative
|
|
105
|
+
#hero .text-container h2 svg
|
|
106
|
+
color: hsla(162, 47%, 50%, 1)
|
|
107
|
+
height: 2rem
|
|
108
|
+
left: -0.25rem
|
|
109
|
+
position: absolute
|
|
110
|
+
top: 0
|
|
111
|
+
width: 2rem
|
|
112
|
+
#hero .text-container h2 span
|
|
113
|
+
margin-left: 2.5rem
|
|
114
|
+
#hero .text-container a
|
|
115
|
+
background-color: rgba(255, 255, 255, 1)
|
|
116
|
+
border-radius: 0.75rem
|
|
117
|
+
color: rgba(55, 65, 81, 1)
|
|
118
|
+
display: inline-block
|
|
119
|
+
margin-top: 1.5rem
|
|
120
|
+
padding: 1rem 2rem
|
|
121
|
+
text-decoration: inherit
|
|
122
|
+
#hero .logo-container
|
|
123
|
+
display: none
|
|
124
|
+
justify-content: center
|
|
125
|
+
padding-left: 2rem
|
|
126
|
+
padding-right: 2rem
|
|
127
|
+
#hero .logo-container svg
|
|
128
|
+
color: rgba(255, 255, 255, 1)
|
|
129
|
+
width: 66.666667%
|
|
130
|
+
#middle-content
|
|
131
|
+
align-items: flex-start
|
|
132
|
+
display: grid
|
|
133
|
+
grid-template-columns: 1fr
|
|
134
|
+
margin-top: 3.5rem
|
|
135
|
+
#middle-content #middle-left-content
|
|
136
|
+
display: flex
|
|
137
|
+
flex-direction: column
|
|
138
|
+
gap: 2rem
|
|
139
|
+
#learning-materials
|
|
140
|
+
padding: 2.5rem 2rem
|
|
141
|
+
#learning-materials h2
|
|
142
|
+
font-weight: 500
|
|
143
|
+
font-size: 1.25rem
|
|
144
|
+
letter-spacing: -0.025em
|
|
145
|
+
line-height: 1.75rem
|
|
146
|
+
padding-left: 1rem
|
|
147
|
+
padding-right: 1rem
|
|
148
|
+
.list-item-link
|
|
149
|
+
align-items: center
|
|
150
|
+
border-radius: 0.75rem
|
|
151
|
+
display: flex
|
|
152
|
+
margin-top: 1rem
|
|
153
|
+
padding: 1rem
|
|
154
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
155
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
156
|
+
-webkit-backdrop-filter
|
|
157
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
158
|
+
transition-duration: 150ms
|
|
159
|
+
width: 100%
|
|
160
|
+
.list-item-link svg:first-child
|
|
161
|
+
margin-right: 1rem
|
|
162
|
+
height: 1.5rem
|
|
163
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
164
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
165
|
+
-webkit-backdrop-filter
|
|
166
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
167
|
+
transition-duration: 150ms
|
|
168
|
+
width: 1.5rem
|
|
169
|
+
.list-item-link > span
|
|
170
|
+
flex-grow: 1
|
|
171
|
+
font-weight: 400
|
|
172
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
173
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
174
|
+
-webkit-backdrop-filter
|
|
175
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
176
|
+
.list-item-link > span > span
|
|
177
|
+
color: rgba(107, 114, 128, 1)
|
|
178
|
+
display: block
|
|
179
|
+
flex-grow: 1
|
|
180
|
+
font-size: 0.75rem
|
|
181
|
+
font-weight: 300
|
|
182
|
+
line-height: 1rem
|
|
183
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
184
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
185
|
+
-webkit-backdrop-filter
|
|
186
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
187
|
+
.list-item-link svg:last-child
|
|
188
|
+
height: 1rem
|
|
189
|
+
transition-property: all
|
|
190
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
191
|
+
transition-duration: 150ms
|
|
192
|
+
width: 1rem
|
|
193
|
+
.list-item-link:hover
|
|
194
|
+
color: rgba(255, 255, 255, 1)
|
|
195
|
+
background-color: hsla(162, 55%, 33%, 1)
|
|
196
|
+
.list-item-link:hover > span > span
|
|
197
|
+
color: rgba(243, 244, 246, 1)
|
|
198
|
+
.list-item-link:hover svg:last-child
|
|
199
|
+
transform: translateX(0.25rem)
|
|
200
|
+
.button-pill
|
|
201
|
+
padding: 1.5rem 2rem
|
|
202
|
+
margin-bottom: 2rem
|
|
203
|
+
transition-duration: 300ms
|
|
204
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
205
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
206
|
+
-webkit-backdrop-filter
|
|
207
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
208
|
+
align-items: center
|
|
209
|
+
display: flex
|
|
210
|
+
.button-pill svg
|
|
211
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
212
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
213
|
+
-webkit-backdrop-filter
|
|
214
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
215
|
+
transition-duration: 150ms
|
|
216
|
+
flex-shrink: 0
|
|
217
|
+
width: 3rem
|
|
218
|
+
.button-pill > span
|
|
219
|
+
letter-spacing: -0.025em
|
|
220
|
+
font-weight: 400
|
|
221
|
+
font-size: 1.125rem
|
|
222
|
+
line-height: 1.75rem
|
|
223
|
+
padding-left: 1rem
|
|
224
|
+
padding-right: 1rem
|
|
225
|
+
.button-pill span span
|
|
226
|
+
display: block
|
|
227
|
+
font-size: 0.875rem
|
|
228
|
+
font-weight: 300
|
|
229
|
+
line-height: 1.25rem
|
|
230
|
+
.button-pill:hover svg, .button-pill:hover
|
|
231
|
+
color: rgba(255, 255, 255, 1) !important
|
|
232
|
+
.nx-console:hover
|
|
233
|
+
background-color: rgba(0, 122, 204, 1)
|
|
234
|
+
.nx-console svg
|
|
235
|
+
color: rgba(0, 122, 204, 1)
|
|
236
|
+
.nx-console-jetbrains
|
|
237
|
+
margin-top: 2rem
|
|
238
|
+
.nx-console-jetbrains:hover
|
|
239
|
+
background-color: rgba(255, 49, 140, 1)
|
|
240
|
+
.nx-console-jetbrains svg
|
|
241
|
+
color: rgba(255, 49, 140, 1)
|
|
242
|
+
#nx-repo:hover
|
|
243
|
+
background-color: rgba(24, 23, 23, 1)
|
|
244
|
+
#nx-repo svg
|
|
245
|
+
color: rgba(24, 23, 23, 1)
|
|
246
|
+
#nx-cloud
|
|
247
|
+
margin-bottom: 2rem
|
|
248
|
+
margin-top: 2rem
|
|
249
|
+
padding: 2.5rem 2rem
|
|
250
|
+
#nx-cloud > div
|
|
251
|
+
align-items: center
|
|
252
|
+
display: flex
|
|
253
|
+
#nx-cloud > div svg
|
|
254
|
+
border-radius: 0.375rem
|
|
255
|
+
flex-shrink: 0
|
|
256
|
+
width: 3rem
|
|
257
|
+
#nx-cloud > div h2
|
|
258
|
+
font-size: 1.125rem
|
|
259
|
+
font-weight: 400
|
|
260
|
+
letter-spacing: -0.025em
|
|
261
|
+
line-height: 1.75rem
|
|
262
|
+
padding-left: 1rem
|
|
263
|
+
padding-right: 1rem
|
|
264
|
+
#nx-cloud > div h2 span
|
|
265
|
+
display: block
|
|
266
|
+
font-size: 0.875rem
|
|
267
|
+
font-weight: 300
|
|
268
|
+
line-height: 1.25rem
|
|
269
|
+
#nx-cloud p
|
|
270
|
+
font-size: 1rem
|
|
271
|
+
line-height: 1.5rem
|
|
272
|
+
margin-top: 1rem
|
|
273
|
+
#nx-cloud pre
|
|
274
|
+
margin-top: 1rem
|
|
275
|
+
#nx-cloud a
|
|
276
|
+
border-radius: 0.75rem
|
|
277
|
+
color: white
|
|
278
|
+
background-color: hsla(214, 62%, 21%, 1)
|
|
279
|
+
display: inline-block
|
|
280
|
+
margin-top: 1.5rem
|
|
281
|
+
padding: 0.5rem 1rem
|
|
282
|
+
text-align:left
|
|
283
|
+
text-decoration: inherit
|
|
284
|
+
#commands
|
|
285
|
+
padding: 2.5rem 2rem
|
|
286
|
+
margin-top: 3.5rem
|
|
287
|
+
#commands h2
|
|
288
|
+
font-size: 1.25rem
|
|
289
|
+
font-weight: 400
|
|
290
|
+
letter-spacing: -0.025em
|
|
291
|
+
line-height: 1.75rem
|
|
292
|
+
padding-left: 1rem
|
|
293
|
+
padding-right: 1rem
|
|
294
|
+
#commands p
|
|
295
|
+
font-size: 1rem
|
|
296
|
+
font-weight: 300
|
|
297
|
+
line-height: 1.5rem
|
|
298
|
+
margin-top: 1rem
|
|
299
|
+
padding-left: 1rem
|
|
300
|
+
padding-right: 1rem
|
|
301
|
+
details
|
|
302
|
+
align-items: center
|
|
303
|
+
display: flex
|
|
304
|
+
margin-top: 1rem
|
|
305
|
+
padding-left: 1rem
|
|
306
|
+
padding-right: 1rem
|
|
307
|
+
width: 100%
|
|
308
|
+
details pre > span
|
|
309
|
+
color: rgba(181, 181, 181, 1)
|
|
310
|
+
summary
|
|
311
|
+
border-radius: 0.5rem
|
|
312
|
+
display: flex
|
|
313
|
+
font-weight: 400
|
|
314
|
+
padding: 0.5rem
|
|
315
|
+
cursor: pointer
|
|
316
|
+
transition-property: background-color, border-color, color, fill, stroke,
|
|
317
|
+
opacity, box-shadow, transform, filter, backdrop-filter,
|
|
318
|
+
-webkit-backdrop-filter
|
|
319
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
320
|
+
transition-duration: 150ms
|
|
321
|
+
summary:hover
|
|
322
|
+
background-color: rgba(243, 244, 246, 1)
|
|
323
|
+
summary svg
|
|
324
|
+
height: 1.5rem
|
|
325
|
+
margin-right: 1rem
|
|
326
|
+
width: 1.5rem
|
|
327
|
+
#love
|
|
328
|
+
color: rgba(107, 114, 128, 1)
|
|
329
|
+
font-size: 0.875rem
|
|
330
|
+
line-height: 1.25rem
|
|
331
|
+
margin-top: 3.5rem
|
|
332
|
+
opacity: 0.6
|
|
333
|
+
text-align: center
|
|
334
|
+
#love svg
|
|
335
|
+
color: rgba(252, 165, 165, 1)
|
|
336
|
+
width: 1.25rem
|
|
337
|
+
height: 1.25rem
|
|
338
|
+
display: inline
|
|
339
|
+
margin-top: -0.25rem
|
|
340
|
+
@media screen and (min-width: 768px)
|
|
341
|
+
#hero
|
|
342
|
+
grid-template-columns: repeat(2, minmax(0, 1fr))
|
|
343
|
+
#hero .logo-container
|
|
344
|
+
display: flex
|
|
345
|
+
#middle-content
|
|
346
|
+
grid-template-columns: repeat(2, minmax(0, 1fr))
|
|
347
|
+
gap: 4rem
|
|
348
|
+
</style>
|
|
349
|
+
<% } else { %>
|
|
15
350
|
<style>
|
|
16
351
|
html {
|
|
17
352
|
-webkit-text-size-adjust: 100%;
|
|
@@ -426,6 +761,7 @@ import { CommonModule } from '@angular/common';
|
|
|
426
761
|
}
|
|
427
762
|
}
|
|
428
763
|
</style>
|
|
764
|
+
<% } %>
|
|
429
765
|
<div class="wrapper">
|
|
430
766
|
<div class="container">
|
|
431
767
|
<!-- WELCOME -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-tsconfig-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/update-tsconfig-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"update-tsconfig-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/update-tsconfig-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAmFxE"}
|
|
@@ -47,7 +47,12 @@ function updateTsconfigFiles(tree, options) {
|
|
|
47
47
|
...json.compilerOptions,
|
|
48
48
|
...compilerOptions,
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
// For standalone projects, rootTsConfigPath and tsconfigPath are the same
|
|
51
|
+
// file. Calling getNeededCompilerOptionOverrides would compare the file
|
|
52
|
+
// against itself and strip options like skipLibCheck that are already set.
|
|
53
|
+
if (tsconfigPath !== rootTsConfigPath) {
|
|
54
|
+
json.compilerOptions = (0, configuration_1.getNeededCompilerOptionOverrides)(tree, json.compilerOptions, rootTsConfigPath);
|
|
55
|
+
}
|
|
51
56
|
return json;
|
|
52
57
|
});
|
|
53
58
|
if (options.unitTestRunner === 'jest') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-vitest.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/utils/add-vitest.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAUpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC,CA2Cf;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"add-vitest.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/utils/add-vitest.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAUpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC,CA2Cf;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAmCf"}
|
|
@@ -98,8 +98,8 @@ async function addVitestAnalog(tree, options) {
|
|
|
98
98
|
addPlugin: options.addPlugin ?? false,
|
|
99
99
|
skipFormat: options.skipFormat,
|
|
100
100
|
skipPackageJson: options.skipPackageJson,
|
|
101
|
+
zoneless: options.zoneless,
|
|
101
102
|
});
|
|
102
|
-
createAnalogSetupFile(tree, options, angularMajorVersion);
|
|
103
103
|
}
|
|
104
104
|
function validateVitestVersion(tree) {
|
|
105
105
|
let installedVitestVersion = null;
|
|
@@ -179,44 +179,3 @@ function addVitestScreenshotsToGitIgnore(tree) {
|
|
|
179
179
|
devkit_1.logger.warn(`Couldn't find .gitignore file to update`);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function createAnalogSetupFile(tree, options, angularMajorVersion) {
|
|
183
|
-
let setupFile;
|
|
184
|
-
if (angularMajorVersion >= 21) {
|
|
185
|
-
setupFile = `import '@angular/compiler';
|
|
186
|
-
import '@analogjs/vitest-angular/setup-snapshots';
|
|
187
|
-
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
|
188
|
-
|
|
189
|
-
setupTestBed(${options.zoneless ? '' : '{ zoneless: false }'});
|
|
190
|
-
`;
|
|
191
|
-
}
|
|
192
|
-
else if (angularMajorVersion === 20) {
|
|
193
|
-
setupFile = `import '@angular/compiler';
|
|
194
|
-
import '@analogjs/vitest-angular/setup-zone';
|
|
195
|
-
import {
|
|
196
|
-
BrowserTestingModule,
|
|
197
|
-
platformBrowserTesting,
|
|
198
|
-
} from '@angular/platform-browser/testing';
|
|
199
|
-
import { getTestBed } from '@angular/core/testing';
|
|
200
|
-
|
|
201
|
-
getTestBed().initTestEnvironment(
|
|
202
|
-
BrowserTestingModule,
|
|
203
|
-
platformBrowserTesting(),
|
|
204
|
-
);
|
|
205
|
-
`;
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
setupFile = `import '@analogjs/vitest-angular/setup-zone';
|
|
209
|
-
import {
|
|
210
|
-
BrowserDynamicTestingModule,
|
|
211
|
-
platformBrowserDynamicTesting,
|
|
212
|
-
} from '@angular/platform-browser-dynamic/testing';
|
|
213
|
-
import { getTestBed } from '@angular/core/testing';
|
|
214
|
-
|
|
215
|
-
getTestBed().initTestEnvironment(
|
|
216
|
-
BrowserDynamicTestingModule,
|
|
217
|
-
platformBrowserDynamicTesting(),
|
|
218
|
-
);
|
|
219
|
-
`;
|
|
220
|
-
}
|
|
221
|
-
tree.write((0, devkit_1.joinPathFragments)(options.projectRoot, 'src/test-setup.ts'), setupFile);
|
|
222
|
-
}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const angularVersion = "~21.
|
|
3
|
-
export declare const angularDevkitVersion = "~21.
|
|
4
|
-
export declare const ngPackagrVersion = "~21.
|
|
2
|
+
export declare const angularVersion = "~21.2.0";
|
|
3
|
+
export declare const angularDevkitVersion = "~21.2.0";
|
|
4
|
+
export declare const ngPackagrVersion = "~21.2.0";
|
|
5
5
|
export declare const ngrxVersion = "^21.0.0";
|
|
6
6
|
export declare const rxjsVersion = "~7.8.0";
|
|
7
7
|
export declare const zoneJsVersion = "~0.15.0";
|
|
@@ -12,9 +12,9 @@ export declare const expressVersion = "^4.21.2";
|
|
|
12
12
|
export declare const typesExpressVersion = "^4.17.21";
|
|
13
13
|
export declare const browserSyncVersion = "^3.0.0";
|
|
14
14
|
export declare const moduleFederationNodeVersion = "^2.7.21";
|
|
15
|
-
export declare const moduleFederationEnhancedVersion = "^
|
|
15
|
+
export declare const moduleFederationEnhancedVersion = "^2.1.0";
|
|
16
16
|
export declare const webpackMergeVersion = "^5.8.0";
|
|
17
|
-
export declare const angularEslintVersion = "^21.0
|
|
17
|
+
export declare const angularEslintVersion = "^21.2.0";
|
|
18
18
|
export declare const typescriptEslintVersion = "^7.16.0";
|
|
19
19
|
export declare const tailwindVersion = "^3.0.2";
|
|
20
20
|
export declare const postcssVersion = "^8.4.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,WAAW,YAAY,CAAC;AACrC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,2BAA2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,WAAW,YAAY,CAAC;AACrC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,2BAA2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,WAAW,CAAC;AACxD,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC,eAAO,MAAM,wBAAwB,WAAW,CAAC"}
|
package/src/utils/versions.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.jsoncEslintParserVersion = exports.jsdomVersion = exports.vitestVersion = exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.jestPresetAngularVersion = exports.lessVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssVersion = exports.tailwindVersion = exports.typescriptEslintVersion = exports.angularEslintVersion = exports.webpackMergeVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.browserSyncVersion = exports.typesExpressVersion = exports.expressVersion = exports.typesCorsVersion = exports.corsVersion = exports.tsLibVersion = exports.zoneJsVersion = exports.rxjsVersion = exports.ngrxVersion = exports.ngPackagrVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
-
exports.angularVersion = '~21.
|
|
6
|
-
exports.angularDevkitVersion = '~21.
|
|
7
|
-
exports.ngPackagrVersion = '~21.
|
|
5
|
+
exports.angularVersion = '~21.2.0';
|
|
6
|
+
exports.angularDevkitVersion = '~21.2.0';
|
|
7
|
+
exports.ngPackagrVersion = '~21.2.0';
|
|
8
8
|
exports.ngrxVersion = '^21.0.0';
|
|
9
9
|
exports.rxjsVersion = '~7.8.0';
|
|
10
10
|
exports.zoneJsVersion = '~0.15.0';
|
|
@@ -15,9 +15,9 @@ exports.expressVersion = '^4.21.2';
|
|
|
15
15
|
exports.typesExpressVersion = '^4.17.21';
|
|
16
16
|
exports.browserSyncVersion = '^3.0.0';
|
|
17
17
|
exports.moduleFederationNodeVersion = '^2.7.21';
|
|
18
|
-
exports.moduleFederationEnhancedVersion = '^
|
|
18
|
+
exports.moduleFederationEnhancedVersion = '^2.1.0';
|
|
19
19
|
exports.webpackMergeVersion = '^5.8.0';
|
|
20
|
-
exports.angularEslintVersion = '^21.0
|
|
20
|
+
exports.angularEslintVersion = '^21.2.0';
|
|
21
21
|
exports.typescriptEslintVersion = '^7.16.0';
|
|
22
22
|
exports.tailwindVersion = '^3.0.2';
|
|
23
23
|
exports.postcssVersion = '^8.4.5';
|