@nrwl/angular 13.10.0-beta.6 → 13.10.0-beta.9

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 (158) hide show
  1. package/esm2020/mfe/index.mjs +2 -2
  2. package/executors.json +4 -4
  3. package/fesm2015/nrwl-angular-mfe.mjs +1 -1
  4. package/fesm2015/nrwl-angular-mfe.mjs.map +1 -1
  5. package/fesm2015/nrwl-angular-testing.mjs.map +1 -1
  6. package/fesm2015/nrwl-angular.mjs.map +1 -1
  7. package/fesm2020/nrwl-angular-mfe.mjs +1 -1
  8. package/fesm2020/nrwl-angular-mfe.mjs.map +1 -1
  9. package/fesm2020/nrwl-angular-testing.mjs.map +1 -1
  10. package/fesm2020/nrwl-angular.mjs.map +1 -1
  11. package/generators.json +9 -11
  12. package/mfe/index.d.ts +1 -1
  13. package/mfe/index.js +2 -1
  14. package/mfe/index.js.map +1 -1
  15. package/migrations.json +2 -407
  16. package/package.json +7 -7
  17. package/src/builders/webpack-browser/schema.json +18 -1
  18. package/src/builders/webpack-server/schema.json +6 -0
  19. package/src/executors/ng-packagr-lite/schema.json +14 -0
  20. package/src/executors/package/schema.json +14 -0
  21. package/src/executors/utilities/tailwindcss.js +2 -2
  22. package/src/executors/utilities/tailwindcss.js.map +1 -1
  23. package/src/generators/application/lib/add-mfe.js +1 -0
  24. package/src/generators/application/lib/add-mfe.js.map +1 -1
  25. package/src/generators/application/schema.d.ts +1 -0
  26. package/src/generators/application/schema.json +9 -3
  27. package/src/generators/component/schema.json +4 -4
  28. package/src/generators/convert-to-with-mf/convert-to-with-mf.js +2 -1
  29. package/src/generators/convert-to-with-mf/convert-to-with-mf.js.map +1 -1
  30. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.d.ts +1 -1
  31. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +17 -14
  32. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js.map +1 -1
  33. package/src/generators/convert-tslint-to-eslint/schema.json +4 -4
  34. package/src/generators/downgrade-module/schema.json +1 -0
  35. package/src/generators/init/schema.json +1 -1
  36. package/src/generators/karma/karma.d.ts +1 -1
  37. package/src/generators/karma/karma.js +17 -15
  38. package/src/generators/karma/karma.js.map +1 -1
  39. package/src/generators/karma/schema.json +1 -0
  40. package/src/generators/karma-project/karma-project.js +2 -0
  41. package/src/generators/karma-project/karma-project.js.map +1 -1
  42. package/src/generators/karma-project/schema.d.ts +1 -0
  43. package/src/generators/karma-project/schema.json +6 -0
  44. package/src/generators/library/schema.json +2 -1
  45. package/src/generators/library-secondary-entry-point/schema.json +1 -0
  46. package/src/generators/mfe-host/mfe-host.js +1 -0
  47. package/src/generators/mfe-host/mfe-host.js.map +1 -1
  48. package/src/generators/mfe-host/schema.d.ts +1 -0
  49. package/src/generators/mfe-host/schema.json +11 -10
  50. package/src/generators/mfe-remote/schema.json +2 -2
  51. package/src/generators/move/lib/update-ng-package.js +1 -1
  52. package/src/generators/move/lib/update-ng-package.js.map +1 -1
  53. package/src/generators/move/schema.json +3 -3
  54. package/src/generators/ng-add/compat.d.ts +1 -1
  55. package/src/generators/ng-add/files/{root → root-karma}/karma.conf.js__tmpl__ +0 -0
  56. package/src/generators/ng-add/migrate-from-angular-cli.d.ts +2 -2
  57. package/src/generators/ng-add/migrate-from-angular-cli.js +38 -607
  58. package/src/generators/ng-add/migrate-from-angular-cli.js.map +1 -1
  59. package/src/generators/ng-add/ng-add.d.ts +3 -3
  60. package/src/generators/ng-add/ng-add.js +2 -2
  61. package/src/generators/ng-add/ng-add.js.map +1 -1
  62. package/src/generators/ng-add/schema.d.ts +1 -1
  63. package/src/generators/ng-add/utilities/app.migrator.d.ts +18 -0
  64. package/src/generators/ng-add/utilities/app.migrator.js +182 -0
  65. package/src/generators/ng-add/utilities/app.migrator.js.map +1 -0
  66. package/src/generators/ng-add/utilities/e2e-project.migrator.d.ts +19 -0
  67. package/src/generators/ng-add/utilities/e2e-project.migrator.js +186 -0
  68. package/src/generators/ng-add/utilities/e2e-project.migrator.js.map +1 -0
  69. package/src/generators/ng-add/utilities/e2e-utils.d.ts +7 -0
  70. package/src/generators/ng-add/utilities/e2e-utils.js +46 -0
  71. package/src/generators/ng-add/utilities/e2e-utils.js.map +1 -0
  72. package/src/generators/ng-add/utilities/get-all-projects.d.ts +3 -0
  73. package/src/generators/ng-add/utilities/get-all-projects.js +26 -0
  74. package/src/generators/ng-add/utilities/get-all-projects.js.map +1 -0
  75. package/src/generators/ng-add/utilities/normalize-options.d.ts +3 -0
  76. package/src/generators/ng-add/utilities/normalize-options.js +24 -0
  77. package/src/generators/ng-add/utilities/normalize-options.js.map +1 -0
  78. package/src/generators/ng-add/utilities/project.migrator.d.ts +21 -0
  79. package/src/generators/ng-add/utilities/project.migrator.js +53 -0
  80. package/src/generators/ng-add/utilities/project.migrator.js.map +1 -0
  81. package/src/generators/ng-add/utilities/types.d.ts +10 -0
  82. package/src/generators/ng-add/utilities/types.js +3 -0
  83. package/src/generators/ng-add/utilities/types.js.map +1 -0
  84. package/src/generators/ng-add/utilities/workspace.d.ts +12 -0
  85. package/src/generators/ng-add/utilities/workspace.js +258 -0
  86. package/src/generators/ng-add/utilities/workspace.js.map +1 -0
  87. package/src/generators/ngrx/schema.json +1 -0
  88. package/src/generators/scam/schema.json +6 -6
  89. package/src/generators/scam-directive/schema.json +3 -3
  90. package/src/generators/scam-pipe/schema.json +1 -1
  91. package/src/generators/setup-mfe/files/webpack/mfe.config.js__tmpl__ +7 -0
  92. package/src/generators/setup-mfe/files/webpack/webpack.config.js__tmpl__ +2 -7
  93. package/src/generators/setup-mfe/lib/add-remote-to-host.d.ts +2 -2
  94. package/src/generators/setup-mfe/lib/add-remote-to-host.js +49 -24
  95. package/src/generators/setup-mfe/lib/add-remote-to-host.js.map +1 -1
  96. package/src/generators/setup-mfe/lib/fix-bootstrap.d.ts +2 -1
  97. package/src/generators/setup-mfe/lib/fix-bootstrap.js +13 -4
  98. package/src/generators/setup-mfe/lib/fix-bootstrap.js.map +1 -1
  99. package/src/generators/setup-mfe/lib/generate-config.js +2 -1
  100. package/src/generators/setup-mfe/lib/generate-config.js.map +1 -1
  101. package/src/generators/setup-mfe/lib/index.d.ts +1 -0
  102. package/src/generators/setup-mfe/lib/index.js +1 -0
  103. package/src/generators/setup-mfe/lib/index.js.map +1 -1
  104. package/src/generators/setup-mfe/lib/setup-host-if-dynamic.d.ts +3 -0
  105. package/src/generators/setup-mfe/lib/setup-host-if-dynamic.js +15 -0
  106. package/src/generators/setup-mfe/lib/setup-host-if-dynamic.js.map +1 -0
  107. package/src/generators/setup-mfe/schema.d.ts +1 -0
  108. package/src/generators/setup-mfe/schema.json +7 -1
  109. package/src/generators/setup-mfe/setup-mfe.d.ts +1 -1
  110. package/src/generators/setup-mfe/setup-mfe.js +16 -13
  111. package/src/generators/setup-mfe/setup-mfe.js.map +1 -1
  112. package/src/generators/stories/schema.json +2 -0
  113. package/src/generators/storybook-configuration/schema.json +2 -0
  114. package/src/generators/storybook-migrate-defaults-5-to-6/schema.json +2 -0
  115. package/src/generators/storybook-migrate-stories-to-6-2/schema.json +2 -0
  116. package/src/generators/upgrade-module/schema.json +1 -0
  117. package/src/migrations/update-12-3-0/update-storybook.js +1 -1
  118. package/src/utils/mfe/mfe-webpack.js +2 -2
  119. package/src/utils/mfe/mfe-webpack.js.map +1 -1
  120. package/src/utils/mfe/with-module-federation.js +4 -1
  121. package/src/utils/mfe/with-module-federation.js.map +1 -1
  122. package/src/utils/versions.js +1 -1
  123. package/src/generators/ng-add/files/decorate-angular-cli/decorate-angular-cli.js__tmpl__ +0 -69
  124. package/src/generators/ng-add/files/root/nx.json__tmpl__ +0 -29
  125. package/src/migrations/update-10-0-0/update-10-0-0.d.ts +0 -1
  126. package/src/migrations/update-10-0-0/update-10-0-0.js +0 -15
  127. package/src/migrations/update-10-0-0/update-10-0-0.js.map +0 -1
  128. package/src/migrations/update-10-2-0/update-10-2-0.d.ts +0 -1
  129. package/src/migrations/update-10-2-0/update-10-2-0.js +0 -14
  130. package/src/migrations/update-10-2-0/update-10-2-0.js.map +0 -1
  131. package/src/migrations/update-10-3-0/files/tsconfig.editor.json +0 -11
  132. package/src/migrations/update-10-3-0/update-10-3-0.d.ts +0 -2
  133. package/src/migrations/update-10-3-0/update-10-3-0.js +0 -79
  134. package/src/migrations/update-10-3-0/update-10-3-0.js.map +0 -1
  135. package/src/migrations/update-10-4-0/update-10-4-0.d.ts +0 -2
  136. package/src/migrations/update-10-4-0/update-10-4-0.js +0 -36
  137. package/src/migrations/update-10-4-0/update-10-4-0.js.map +0 -1
  138. package/src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint.d.ts +0 -2
  139. package/src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint.js +0 -118
  140. package/src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint.js.map +0 -1
  141. package/src/migrations/update-11-0-0/update-builders-config.d.ts +0 -2
  142. package/src/migrations/update-11-0-0/update-builders-config.js +0 -55
  143. package/src/migrations/update-11-0-0/update-builders-config.js.map +0 -1
  144. package/src/migrations/update-8-12-0/change-angular-lib-builder.d.ts +0 -2
  145. package/src/migrations/update-8-12-0/change-angular-lib-builder.js +0 -25
  146. package/src/migrations/update-8-12-0/change-angular-lib-builder.js.map +0 -1
  147. package/src/migrations/update-8-3-0/upgrade-ngrx-8-0.d.ts +0 -1
  148. package/src/migrations/update-8-3-0/upgrade-ngrx-8-0.js +0 -49
  149. package/src/migrations/update-8-3-0/upgrade-ngrx-8-0.js.map +0 -1
  150. package/src/migrations/update-8-5-0/upgrade-cli-8-3.d.ts +0 -1
  151. package/src/migrations/update-8-5-0/upgrade-cli-8-3.js +0 -55
  152. package/src/migrations/update-8-5-0/upgrade-cli-8-3.js.map +0 -1
  153. package/src/migrations/update-9-0-0/add-postinstall.d.ts +0 -1
  154. package/src/migrations/update-9-0-0/add-postinstall.js +0 -22
  155. package/src/migrations/update-9-0-0/add-postinstall.js.map +0 -1
  156. package/src/migrations/update-9-0-0/update-9-0-0.d.ts +0 -2
  157. package/src/migrations/update-9-0-0/update-9-0-0.js +0 -18
  158. package/src/migrations/update-9-0-0/update-9-0-0.js.map +0 -1
package/migrations.json CHANGED
@@ -1,61 +1,5 @@
1
1
  {
2
2
  "schematics": {
3
- "add-postinstall": {
4
- "version": "0.0.0",
5
- "description": "Adds postinstall to run ngcc",
6
- "factory": "./src/migrations/update-9-0-0/add-postinstall",
7
- "hidden": true
8
- },
9
- "upgrade-ngrx-8-0": {
10
- "version": "8.3.0-beta.1",
11
- "description": "Upgrades NgRx dependencies to version 8, and runs migrations for breaking changes",
12
- "factory": "./src/migrations/update-8-3-0/upgrade-ngrx-8-0"
13
- },
14
- "upgrade-cli-8-3": {
15
- "version": "8.5.0-beta.1",
16
- "description": "Upgrades Angular CLI to 8.3.0 and NgRx dependencies to version 8.2",
17
- "factory": "./src/migrations/update-8-5-0/upgrade-cli-8-3"
18
- },
19
- "change-angular-lib-builder": {
20
- "version": "8.12.0-beta.1",
21
- "description": "Changes Angular library builder to @nrwl/angular:package",
22
- "factory": "./src/migrations/update-8-12-0/change-angular-lib-builder"
23
- },
24
- "update-9-0-0": {
25
- "version": "9.0.0-beta.1",
26
- "description": "Upgrades Angular and Angular CLI to 9.0.0",
27
- "factory": "./src/migrations/update-9-0-0/update-9-0-0"
28
- },
29
- "update-10-0-0": {
30
- "version": "10.0.0-beta.1",
31
- "description": "Upgrades Angular and Angular CLI to 10.0.0",
32
- "factory": "./src/migrations/update-10-0-0/update-10-0-0"
33
- },
34
- "update-10-2-0": {
35
- "version": "10.2.0-beta.1",
36
- "description": "Upgrade NgRx libraries to version 10.0.0",
37
- "factory": "./src/migrations/update-10-2-0/update-10-2-0"
38
- },
39
- "update-10-3-0": {
40
- "version": "10.3.0-beta.1",
41
- "description": "Add tsconfig.editor.json to angular apps and update jest-angular-preset",
42
- "factory": "./src/migrations/update-10-3-0/update-10-3-0"
43
- },
44
- "update-10-4-0": {
45
- "version": "10.4.0-beta.3",
46
- "description": "Adjust karma and protractor setup",
47
- "factory": "./src/migrations/update-10-4-0/update-10-4-0"
48
- },
49
- "add-template-support-and-presets-to-eslint": {
50
- "version": "10.5.0-beta.0",
51
- "description": "Update eslint config and builder to extend from new Nx Angular presets and lint templates",
52
- "factory": "./src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint"
53
- },
54
- "update-11-0-0": {
55
- "version": "11.0.0-beta.13",
56
- "description": "Update builder configurations and dependencies",
57
- "factory": "./src/migrations/update-11-0-0/update-builders-config"
58
- },
59
3
  "update-ngcc-postinstall": {
60
4
  "version": "12.0.0-beta.0",
61
5
  "description": "adjusts the ngcc postinstall command to just leave 'ngcc' in there. This fixes Ivy in Jest tests and Storybooks",
@@ -165,355 +109,6 @@
165
109
  }
166
110
  },
167
111
  "packageJsonUpdates": {
168
- "10.0.0": {
169
- "version": "10.0.0-beta.0",
170
- "packages": {
171
- "rxjs": {
172
- "version": "~6.5.5",
173
- "alwaysAddToPackageJson": false
174
- }
175
- }
176
- },
177
- "10.2.0": {
178
- "version": "10.2.0-beta.1",
179
- "packages": {
180
- "@ngrx/store": {
181
- "version": "10.0.0",
182
- "alwaysAddToPackageJson": false
183
- },
184
- "@ngrx/effects": {
185
- "version": "10.0.0",
186
- "alwaysAddToPackageJson": false
187
- },
188
- "@ngrx/entity": {
189
- "version": "10.0.0",
190
- "alwaysAddToPackageJson": false
191
- },
192
- "@ngrx/router-store": {
193
- "version": "10.0.0",
194
- "alwaysAddToPackageJson": false
195
- },
196
- "@ngrx/schematics": {
197
- "version": "10.0.0",
198
- "alwaysAddToPackageJson": false
199
- },
200
- "@ngrx/store-devtools": {
201
- "version": "10.0.0",
202
- "alwaysAddToPackageJson": false
203
- }
204
- }
205
- },
206
- "10.3.0": {
207
- "version": "10.3.0-beta.1",
208
- "packages": {
209
- "@angular/core": {
210
- "version": "^10.1.3",
211
- "alwaysAddToPackageJson": false
212
- },
213
- "@angular/common": {
214
- "version": "^10.1.3",
215
- "alwaysAddToPackageJson": false
216
- },
217
- "@angular/forms": {
218
- "version": "^10.1.3",
219
- "alwaysAddToPackageJson": false
220
- },
221
- "@angular/compiler": {
222
- "version": "^10.1.3",
223
- "alwaysAddToPackageJson": false
224
- },
225
- "@angular/compiler-cli": {
226
- "version": "^10.1.3",
227
- "alwaysAddToPackageJson": false
228
- },
229
- "@angular/platform-browser": {
230
- "version": "^10.1.3",
231
- "alwaysAddToPackageJson": false
232
- },
233
- "@angular/platform-browser-dynamic": {
234
- "version": "^10.1.3",
235
- "alwaysAddToPackageJson": false
236
- },
237
- "@angular/router": {
238
- "version": "^10.1.3",
239
- "alwaysAddToPackageJson": false
240
- },
241
- "@angular/upgrade": {
242
- "version": "^10.1.3",
243
- "alwaysAddToPackageJson": false
244
- },
245
- "@angular/language-service": {
246
- "version": "^10.1.3",
247
- "alwaysAddToPackageJson": false
248
- },
249
- "@angular/animations": {
250
- "version": "^10.1.3",
251
- "alwaysAddToPackageJson": false
252
- },
253
- "@angular/service-worker": {
254
- "version": "^10.1.3",
255
- "alwaysAddToPackageJson": false
256
- },
257
- "jest-preset-angular": {
258
- "version": "8.3.1",
259
- "alwaysAddToPackageJson": false
260
- }
261
- }
262
- },
263
- "10.4.0": {
264
- "version": "10.4.0-beta.3",
265
- "packages": {
266
- "protractor": {
267
- "version": "~7.0.0",
268
- "alwaysAddToPackageJson": false
269
- },
270
- "jasmine-core": {
271
- "version": "~3.6.0",
272
- "alwaysAddToPackageJson": false
273
- },
274
- "jasmine-spec-reporter": {
275
- "version": "~5.0.0",
276
- "alwaysAddToPackageJson": false
277
- },
278
- "@types/jasmine": {
279
- "version": "~3.5.0",
280
- "alwaysAddToPackageJson": false
281
- },
282
- "karma": {
283
- "version": "~5.0.0",
284
- "alwaysAddToPackageJson": false
285
- },
286
- "karma-chrome-launcher": {
287
- "version": "~3.1.0",
288
- "alwaysAddToPackageJson": false
289
- },
290
- "karma-coverage-istanbul-reporter": {
291
- "version": "~3.0.2",
292
- "alwaysAddToPackageJson": false
293
- },
294
- "karma-jasmine": {
295
- "version": "~4.0.0",
296
- "alwaysAddToPackageJson": false
297
- },
298
- "karma-jasmine-html-reporter": {
299
- "version": "^1.5.0",
300
- "alwaysAddToPackageJson": false
301
- }
302
- }
303
- },
304
- "11.0.0": {
305
- "version": "11.0.0-beta.13",
306
- "packages": {
307
- "@angular/cli": {
308
- "version": "~11.0.0",
309
- "alwaysAddToPackageJson": false
310
- },
311
- "@angular-devkit/build-angular": {
312
- "version": "~0.1100.1",
313
- "alwaysAddToPackageJson": false
314
- },
315
- "@types/jasmine": {
316
- "version": "~3.6.0",
317
- "alwaysAddToPackageJson": false
318
- },
319
- "codelyzer": {
320
- "version": "^6.0.0",
321
- "alwaysAddToPackageJson": false
322
- },
323
- "@angular/core": {
324
- "version": "^11.0.3",
325
- "alwaysAddToPackageJson": false
326
- },
327
- "@angular/common": {
328
- "version": "^11.0.3",
329
- "alwaysAddToPackageJson": false
330
- },
331
- "@angular/forms": {
332
- "version": "^11.0.3",
333
- "alwaysAddToPackageJson": false
334
- },
335
- "@angular/compiler": {
336
- "version": "^11.0.3",
337
- "alwaysAddToPackageJson": false
338
- },
339
- "@angular/compiler-cli": {
340
- "version": "^11.0.3",
341
- "alwaysAddToPackageJson": false
342
- },
343
- "@angular/platform-browser": {
344
- "version": "^11.0.3",
345
- "alwaysAddToPackageJson": false
346
- },
347
- "@angular/platform-browser-dynamic": {
348
- "version": "^11.0.3",
349
- "alwaysAddToPackageJson": false
350
- },
351
- "@angular/router": {
352
- "version": "^11.0.3",
353
- "alwaysAddToPackageJson": false
354
- },
355
- "@angular/upgrade": {
356
- "version": "^11.0.3",
357
- "alwaysAddToPackageJson": false
358
- },
359
- "@angular/language-service": {
360
- "version": "^11.0.3",
361
- "alwaysAddToPackageJson": false
362
- },
363
- "@angular/animations": {
364
- "version": "^11.0.3",
365
- "alwaysAddToPackageJson": false
366
- },
367
- "@angular/service-worker": {
368
- "version": "^11.0.3",
369
- "alwaysAddToPackageJson": false
370
- }
371
- }
372
- },
373
- "11.1.0": {
374
- "version": "11.1.0-beta.0",
375
- "packages": {
376
- "@angular-eslint/eslint-plugin": {
377
- "version": "~1.0.0",
378
- "alwaysAddToPackageJson": false
379
- },
380
- "@angular-eslint/eslint-plugin-template": {
381
- "version": "~1.0.0",
382
- "alwaysAddToPackageJson": false
383
- },
384
- "@angular-eslint/template-parser": {
385
- "version": "~1.0.0",
386
- "alwaysAddToPackageJson": false
387
- }
388
- }
389
- },
390
- "11.1.6": {
391
- "version": "11.1.6-beta.0",
392
- "packages": {
393
- "jest-preset-angular": {
394
- "version": "8.3.2",
395
- "alwaysAddToPackageJson": false
396
- }
397
- }
398
- },
399
- "11.3.0": {
400
- "version": "11.3.0-beta.0",
401
- "packages": {
402
- "@angular/cli": {
403
- "version": "^11.2.0",
404
- "alwaysAddToPackageJson": false
405
- },
406
- "@angular-devkit/build-angular": {
407
- "version": "~0.1102.0",
408
- "alwaysAddToPackageJson": false
409
- },
410
- "@angular-devkit/build-optimizer": {
411
- "version": "~0.1102.0",
412
- "alwaysAddToPackageJson": false
413
- },
414
- "@angular/core": {
415
- "version": "^11.2.0",
416
- "alwaysAddToPackageJson": false
417
- },
418
- "@angular/common": {
419
- "version": "^11.2.0",
420
- "alwaysAddToPackageJson": false
421
- },
422
- "@angular/forms": {
423
- "version": "^11.2.0",
424
- "alwaysAddToPackageJson": false
425
- },
426
- "@angular/elements": {
427
- "version": "^11.2.0",
428
- "alwaysAddToPackageJson": false
429
- },
430
- "@angular/compiler": {
431
- "version": "^11.2.0",
432
- "alwaysAddToPackageJson": false
433
- },
434
- "@angular/compiler-cli": {
435
- "version": "^11.2.0",
436
- "alwaysAddToPackageJson": false
437
- },
438
- "@angular/platform-browser": {
439
- "version": "^11.2.0",
440
- "alwaysAddToPackageJson": false
441
- },
442
- "@angular/platform-browser-dynamic": {
443
- "version": "^11.2.0",
444
- "alwaysAddToPackageJson": false
445
- },
446
- "@angular/router": {
447
- "version": "^11.2.0",
448
- "alwaysAddToPackageJson": false
449
- },
450
- "@angular/upgrade": {
451
- "version": "^11.2.0",
452
- "alwaysAddToPackageJson": false
453
- },
454
- "@angular/language-service": {
455
- "version": "^11.2.0",
456
- "alwaysAddToPackageJson": false
457
- },
458
- "@angular/animations": {
459
- "version": "^11.2.0",
460
- "alwaysAddToPackageJson": false
461
- },
462
- "@angular/service-worker": {
463
- "version": "^11.2.0",
464
- "alwaysAddToPackageJson": false
465
- },
466
- "@ngrx/store": {
467
- "version": "11.0.0",
468
- "alwaysAddToPackageJson": false
469
- },
470
- "@ngrx/effects": {
471
- "version": "11.0.0",
472
- "alwaysAddToPackageJson": false
473
- },
474
- "@ngrx/entity": {
475
- "version": "11.0.0",
476
- "alwaysAddToPackageJson": false
477
- },
478
- "@ngrx/router-store": {
479
- "version": "11.0.0",
480
- "alwaysAddToPackageJson": false
481
- },
482
- "@ngrx/schematics": {
483
- "version": "11.0.0",
484
- "alwaysAddToPackageJson": false
485
- },
486
- "@ngrx/store-devtools": {
487
- "version": "11.0.0",
488
- "alwaysAddToPackageJson": false
489
- },
490
- "@ngrx/component-store": {
491
- "version": "11.0.0",
492
- "alwaysAddToPackageJson": false
493
- },
494
- "ng-packagr": {
495
- "version": "^11.2.0",
496
- "alwaysAddToPackageJson": false
497
- }
498
- }
499
- },
500
- "11.6.2": {
501
- "version": "11.6.2-beta.0",
502
- "packages": {
503
- "@angular-eslint/eslint-plugin": {
504
- "version": "~2.0.2",
505
- "alwaysAddToPackageJson": false
506
- },
507
- "@angular-eslint/eslint-plugin-template": {
508
- "version": "~2.0.2",
509
- "alwaysAddToPackageJson": false
510
- },
511
- "@angular-eslint/template-parser": {
512
- "version": "~2.0.2",
513
- "alwaysAddToPackageJson": false
514
- }
515
- }
516
- },
517
112
  "12.1.0-beta.0": {
518
113
  "version": "12.1.0-beta.0",
519
114
  "packages": {
@@ -1382,8 +977,8 @@
1382
977
  }
1383
978
  }
1384
979
  },
1385
- "13.9.3": {
1386
- "version": "13.9.3-beta.0",
980
+ "13.10.0": {
981
+ "version": "13.10.0-beta.1",
1387
982
  "packages": {
1388
983
  "@angular/cli": {
1389
984
  "version": "~13.3.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nrwl/angular",
3
- "version": "13.10.0-beta.6",
4
- "description": "Angular Plugin for Nx",
3
+ "version": "13.10.0-beta.9",
4
+ "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Cypress, Karma, and Protractor. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/nrwl/nx.git",
@@ -65,11 +65,11 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@angular-devkit/schematics": "~13.3.0",
68
- "@nrwl/cypress": "13.10.0-beta.6",
69
- "@nrwl/devkit": "13.10.0-beta.6",
70
- "@nrwl/jest": "13.10.0-beta.6",
71
- "@nrwl/linter": "13.10.0-beta.6",
72
- "@nrwl/storybook": "13.10.0-beta.6",
68
+ "@nrwl/cypress": "13.10.0-beta.9",
69
+ "@nrwl/devkit": "13.10.0-beta.9",
70
+ "@nrwl/jest": "13.10.0-beta.9",
71
+ "@nrwl/linter": "13.10.0-beta.9",
72
+ "@nrwl/storybook": "13.10.0-beta.9",
73
73
  "@schematics/angular": "~13.3.0",
74
74
  "@phenomnomnominal/tsquery": "4.1.1",
75
75
  "ignore": "^5.0.4",
@@ -4,6 +4,23 @@
4
4
  "description": "The webpack-browser executor is very similar to the standard browser builder provided by the Angular Devkit. It allows you to build your Angular application to a build artifact that can be hosted online. There are some key differences: \n- Supports Custom Webpack Configurations \n- Supports Incremental Building",
5
5
  "examplesFile": "../../../docs/webpack-browser-examples.md",
6
6
  "type": "object",
7
+ "presets": [
8
+ {
9
+ "name": "Custom Webpack Configuration",
10
+ "keys": [
11
+ "outputs",
12
+ "outputPath",
13
+ "index",
14
+ "main",
15
+ "polyfills",
16
+ "tsConfig",
17
+ "assets",
18
+ "styles",
19
+ "scripts",
20
+ "customWebpackConfig"
21
+ ]
22
+ }
23
+ ],
7
24
  "properties": {
8
25
  "assets": {
9
26
  "type": "array",
@@ -203,7 +220,7 @@
203
220
  "deployUrl": {
204
221
  "type": "string",
205
222
  "description": "URL where files will be deployed.",
206
- "x-deprecated": "Use \"baseHref\" option, \"APP_BASE_HREF\" DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
223
+ "x-deprecated": "Use `baseHref` option, `APP_BASE_HREF` DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
207
224
  },
208
225
  "verbose": {
209
226
  "type": "boolean",
@@ -4,6 +4,12 @@
4
4
  "description": "The webpack-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.",
5
5
  "examplesFile": "../../../docs/webpack-server-examples.md",
6
6
  "type": "object",
7
+ "presets": [
8
+ {
9
+ "name": "Using a Different Port",
10
+ "keys": ["browserTarget", "port"]
11
+ }
12
+ ],
7
13
  "properties": {
8
14
  "browserTarget": {
9
15
  "type": "string",
@@ -4,6 +4,20 @@
4
4
  "description": "ng-packagr target options for Build Architect. Use to build library projects.",
5
5
  "cli": "nx",
6
6
  "type": "object",
7
+ "presets": [
8
+ {
9
+ "name": "Buildable Library with Tailwind",
10
+ "keys": ["project", "tailwindConfig"]
11
+ },
12
+ {
13
+ "name": "Updating Project Dependencies for Buildable Library",
14
+ "keys": [
15
+ "project",
16
+ "updateBuildableProjectDepsInPackageJson",
17
+ "buildableProjectDepsInPackageJsonType"
18
+ ]
19
+ }
20
+ ],
7
21
  "properties": {
8
22
  "project": {
9
23
  "type": "string",
@@ -4,6 +4,20 @@
4
4
  "description": "ng-packagr target options for Build Architect. Use to build and package library projects for publishing.",
5
5
  "cli": "nx",
6
6
  "type": "object",
7
+ "presets": [
8
+ {
9
+ "name": "Publishable Library with Tailwind",
10
+ "keys": ["project", "tailwindConfig"]
11
+ },
12
+ {
13
+ "name": "Updating Project Dependencies for Publishable Library",
14
+ "keys": [
15
+ "project",
16
+ "updateBuildableProjectDepsInPackageJson",
17
+ "buildableProjectDepsInPackageJsonType"
18
+ ]
19
+ }
20
+ ],
7
21
  "properties": {
8
22
  "project": {
9
23
  "type": "string",
@@ -19,7 +19,7 @@ function getTailwindSetup(basePath, tailwindConfig) {
19
19
  if (!tailwindConfigPath) {
20
20
  // Try to find TailwindCSS configuration file in the project or workspace root.
21
21
  const tailwindConfigFile = 'tailwind.config.js';
22
- for (const path of [basePath, devkit_2.appRootPath]) {
22
+ for (const path of [basePath, devkit_2.workspaceRoot]) {
23
23
  const fullPath = (0, path_1.join)(path, tailwindConfigFile);
24
24
  if ((0, fs_1.existsSync)(fullPath)) {
25
25
  tailwindConfigPath = fullPath;
@@ -36,7 +36,7 @@ function getTailwindSetup(basePath, tailwindConfig) {
36
36
  tailwindPackagePath = require.resolve('tailwindcss');
37
37
  }
38
38
  catch (_a) {
39
- const relativeTailwindConfigPath = (0, path_1.relative)(devkit_2.appRootPath, tailwindConfigPath);
39
+ const relativeTailwindConfigPath = (0, path_1.relative)(devkit_2.workspaceRoot, tailwindConfigPath);
40
40
  devkit_1.logger.warn(`Tailwind CSS configuration file found (${relativeTailwindConfigPath})` +
41
41
  ` but the 'tailwindcss' package is not installed.` +
42
42
  ` To enable Tailwind CSS, please install the 'tailwindcss' package.`);
@@ -1 +1 @@
1
- {"version":3,"file":"tailwindcss.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/tailwindcss.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,yCAA2C;AAC3C,2BAAgC;AAChC,+BAAsC;AACtC,gDAAgD;AAOnC,QAAA,kBAA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,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;KAC1D;IAED,OAAO;QACL,aAAa,CAAC;YACZ,qBAAqB,EAAE,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE;YACzC,OAAO,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;SACzE,CAAC;QACF,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;KAC7D,CAAC;AACJ,CAAC;AAhBD,8DAgBC"}
1
+ {"version":3,"file":"tailwindcss.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/tailwindcss.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,yCAA6C;AAC7C,2BAAgC;AAChC,+BAAsC;AACtC,gDAAgD;AAOnC,QAAA,kBAAkB,GAAG;IAChC,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,aAAa;IACb,SAAS;CACV,CAAC;AAEF,SAAgB,gBAAgB,CAC9B,QAAgB,EAChB,cAAuB;IAEvB,IAAI,kBAAkB,GAAG,cAAc,CAAC;IAExC,IAAI,CAAC,kBAAkB,EAAE;QACvB,+EAA+E;QAC/E,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,sBAAa,CAAC,EAAE;YAC5C,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;YAChD,IAAI,IAAA,eAAU,EAAC,QAAQ,CAAC,EAAE;gBACxB,kBAAkB,GAAG,QAAQ,CAAC;gBAC9B,MAAM;aACP;SACF;KACF;IAED,iEAAiE;IACjE,I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
16
16
  skipPackageJson: options.skipPackageJson,
17
17
  e2eProjectName: options.e2eProjectName,
18
+ federationType: options.federationType,
18
19
  });
19
20
  });
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add-mfe.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/add-mfe.ts"],"names":[],"mappings":";;;;AAGA,yDAAqD;AAErD,SAAsB,MAAM,CAAC,IAAU,EAAE,OAAyB;;QAChE,MAAM,IAAA,oBAAQ,EAAC,IAAI,EAAE;YACnB,OAAO,EAAE,OAAO,CAAC,IAAI;YACrB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;CAAA;AAZD,wBAYC"}
1
+ {"version":3,"file":"add-mfe.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/add-mfe.ts"],"names":[],"mappings":";;;;AAGA,yDAAqD;AAErD,SAAsB,MAAM,CAAC,IAAU,EAAE,OAAyB;;QAChE,MAAM,IAAA,oBAAQ,EAAC,IAAI,EAAE;YACnB,OAAO,EAAE,OAAO,CAAC,IAAI;YACrB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;CAAA;AAbD,wBAaC"}
@@ -30,4 +30,5 @@ export interface Schema {
30
30
  host?: string;
31
31
  setParserOptionsProject?: boolean;
32
32
  skipPackageJson?: boolean;
33
+ federationType?: 'static' | 'dynamic';
33
34
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
3
  "$id": "GeneratorNxApp",
4
- "title": "Nx Application Options Schema",
4
+ "title": "Creates an Angular application.",
5
5
  "type": "object",
6
6
  "cli": "nx",
7
7
  "properties": {
@@ -101,7 +101,7 @@
101
101
  "e2eTestRunner": {
102
102
  "type": "string",
103
103
  "enum": ["protractor", "cypress", "none"],
104
- "description": "Test runner to use for end to end (e2e) tests.",
104
+ "description": "Test runner to use for end to end (E2E) tests.",
105
105
  "default": "cypress"
106
106
  },
107
107
  "tags": {
@@ -138,6 +138,12 @@
138
138
  "description": "Type of application to generate the Module Federation configuration for.",
139
139
  "default": "remote"
140
140
  },
141
+ "federationType": {
142
+ "type": "string",
143
+ "enum": ["static", "dynamic"],
144
+ "description": "Use either Static or Dynamic Module Federation pattern for the application.",
145
+ "default": "static"
146
+ },
141
147
  "port": {
142
148
  "type": "number",
143
149
  "description": "The port at which the remote application should be served."
@@ -152,7 +158,7 @@
152
158
  },
153
159
  "setParserOptionsProject": {
154
160
  "type": "boolean",
155
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
161
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
156
162
  "default": false
157
163
  },
158
164
  "addTailwind": {
@@ -61,14 +61,14 @@
61
61
  "alias": "c"
62
62
  },
63
63
  "style": {
64
- "description": "The file extension or preprocessor to use for style files, or 'none' to skip generating the style file.",
64
+ "description": "The file extension or preprocessor to use for style files, or `none` to skip generating the style file.",
65
65
  "type": "string",
66
66
  "default": "css",
67
67
  "enum": ["css", "scss", "sass", "less", "none"]
68
68
  },
69
69
  "skipTests": {
70
70
  "type": "boolean",
71
- "description": "Do not create \"spec.ts\" test files for the new component.",
71
+ "description": "Do not create `spec.ts` test files for the new component.",
72
72
  "default": false
73
73
  },
74
74
  "flat": {
@@ -88,12 +88,12 @@
88
88
  },
89
89
  "type": {
90
90
  "type": "string",
91
- "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\".",
91
+ "description": "Adds a developer-defined type to the filename, in the format `name.type.ts`.",
92
92
  "default": "component"
93
93
  },
94
94
  "export": {
95
95
  "type": "boolean",
96
- "description": "Specifies if the component should be exported in the declaring NgModule. Additionally, if the project is a library, the component will be exported from the project's entry point (normally `index.ts`).",
96
+ "description": "Specifies if the component should be exported in the declaring `NgModule`. Additionally, if the project is a library, the component will be exported from the project's entry point (normally `index.ts`).",
97
97
  "default": false
98
98
  }
99
99
  },