@nx/angular 22.7.0-pr.33655.2b96277 → 22.7.0-pr.33655.57246dd

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 (61) hide show
  1. package/executors.json +62 -62
  2. package/generators.json +185 -185
  3. package/migrations.json +2412 -2412
  4. package/package.json +9 -9
  5. package/src/builders/dev-server/schema.json +163 -163
  6. package/src/builders/webpack-browser/schema.json +567 -567
  7. package/src/builders/webpack-server/schema.json +303 -303
  8. package/src/executors/application/schema.json +732 -732
  9. package/src/executors/browser-esbuild/schema.json +548 -548
  10. package/src/executors/delegate-build/schema.json +31 -31
  11. package/src/executors/extract-i18n/schema.json +47 -47
  12. package/src/executors/module-federation-dev-server/schema.json +164 -164
  13. package/src/executors/module-federation-ssr-dev-server/schema.json +119 -119
  14. package/src/executors/ng-packagr-lite/schema.json +35 -35
  15. package/src/executors/package/schema.json +35 -35
  16. package/src/executors/unit-test/schema.json +305 -305
  17. package/src/generators/add-linting/schema.json +48 -48
  18. package/src/generators/application/schema.json +188 -188
  19. package/src/generators/component/schema.json +123 -123
  20. package/src/generators/component-story/schema.json +50 -50
  21. package/src/generators/component-test/schema.json +52 -52
  22. package/src/generators/convert-to-application-executor/schema.json +23 -23
  23. package/src/generators/convert-to-rspack/schema.json +27 -27
  24. package/src/generators/convert-to-with-mf/schema.json +30 -30
  25. package/src/generators/cypress-component-configuration/schema.json +43 -43
  26. package/src/generators/directive/schema.json +89 -89
  27. package/src/generators/federate-module/schema.json +80 -80
  28. package/src/generators/host/schema.json +189 -189
  29. package/src/generators/init/schema.json +31 -31
  30. package/src/generators/library/schema.json +189 -189
  31. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +1 -1
  32. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.d.ts.map +1 -1
  33. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +15 -2
  34. package/src/generators/library-secondary-entry-point/schema.json +40 -40
  35. package/src/generators/move/schema.json +53 -53
  36. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.d.ts.map +1 -1
  37. package/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js +0 -7
  38. package/src/generators/ng-add/schema.json +63 -62
  39. package/src/generators/ng-add/utilities/workspace.d.ts.map +1 -1
  40. package/src/generators/ng-add/utilities/workspace.js +0 -1
  41. package/src/generators/ngrx/schema.json +99 -99
  42. package/src/generators/ngrx-feature-store/schema.json +69 -69
  43. package/src/generators/ngrx-root-store/schema.json +68 -68
  44. package/src/generators/pipe/schema.json +75 -75
  45. package/src/generators/remote/schema.json +182 -182
  46. package/src/generators/scam/schema.json +120 -120
  47. package/src/generators/scam-directive/schema.json +82 -82
  48. package/src/generators/scam-pipe/schema.json +64 -64
  49. package/src/generators/scam-to-standalone/schema.json +29 -29
  50. package/src/generators/setup-mf/schema.json +90 -90
  51. package/src/generators/setup-ssr/schema.json +70 -70
  52. package/src/generators/setup-tailwind/schema.json +39 -39
  53. package/src/generators/stories/schema.json +53 -53
  54. package/src/generators/storybook-configuration/schema.json +80 -80
  55. package/src/generators/web-worker/schema.json +45 -45
  56. package/src/plugins/plugin.d.ts.map +1 -1
  57. package/src/plugins/plugin.js +5 -5
  58. package/assets.json +0 -23
  59. package/mf/ng-package.json +0 -6
  60. package/ng-package.json +0 -21
  61. package/project.json +0 -24
@@ -1,603 +1,603 @@
1
1
  {
2
- "version": 2,
3
- "outputCapture": "direct-nodejs",
4
- "$schema": "http://json-schema.org/draft-07/schema",
5
- "title": "Schema for Webpack Browser",
6
- "description": "Builds an Angular application using [webpack](https://webpack.js.org/).",
7
- "examplesFile": "../../../docs/webpack-browser-examples.md",
8
- "type": "object",
9
- "presets": [
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
4
+ "$schema": "http://json-schema.org/draft-07/schema",
5
+ "title": "Schema for Webpack Browser",
6
+ "description": "Builds an Angular application using [webpack](https://webpack.js.org/).",
7
+ "examplesFile": "../../../docs/webpack-browser-examples.md",
8
+ "type": "object",
9
+ "presets": [
10
+ {
11
+ "name": "Custom Webpack Configuration",
12
+ "keys": [
13
+ "outputs",
14
+ "outputPath",
15
+ "index",
16
+ "main",
17
+ "polyfills",
18
+ "tsConfig",
19
+ "assets",
20
+ "styles",
21
+ "scripts",
22
+ "customWebpackConfig"
23
+ ]
24
+ }
25
+ ],
26
+ "properties": {
27
+ "assets": {
28
+ "type": "array",
29
+ "description": "List of static application assets.",
30
+ "default": [],
31
+ "items": {
32
+ "$ref": "#/definitions/assetPattern"
33
+ }
34
+ },
35
+ "main": {
36
+ "type": "string",
37
+ "description": "The full path for the main entry point to the app, relative to the current workspace."
38
+ },
39
+ "polyfills": {
40
+ "description": "Polyfills to be included in the build.",
41
+ "oneOf": [
10
42
  {
11
- "name": "Custom Webpack Configuration",
12
- "keys": [
13
- "outputs",
14
- "outputPath",
15
- "index",
16
- "main",
17
- "polyfills",
18
- "tsConfig",
19
- "assets",
20
- "styles",
21
- "scripts",
22
- "customWebpackConfig"
23
- ]
24
- }
25
- ],
26
- "properties": {
27
- "assets": {
28
- "type": "array",
29
- "description": "List of static application assets.",
30
- "default": [],
31
- "items": {
32
- "$ref": "#/definitions/assetPattern"
33
- }
34
- },
35
- "main": {
36
- "type": "string",
37
- "description": "The full path for the main entry point to the app, relative to the current workspace."
38
- },
39
- "polyfills": {
40
- "description": "Polyfills to be included in the build.",
41
- "oneOf": [
42
- {
43
- "type": "array",
44
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
45
- "items": {
46
- "type": "string",
47
- "uniqueItems": true
48
- },
49
- "default": []
50
- },
51
- {
52
- "type": "string",
53
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
54
- }
55
- ]
56
- },
57
- "tsConfig": {
43
+ "type": "array",
44
+ "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
45
+ "items": {
58
46
  "type": "string",
59
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
60
- },
61
- "scripts": {
62
- "description": "Global scripts to be included in the build.",
63
- "type": "array",
64
- "default": [],
65
- "items": {
66
- "oneOf": [
67
- {
68
- "type": "object",
69
- "properties": {
70
- "input": {
71
- "type": "string",
72
- "description": "The file to include.",
73
- "pattern": "\\.[cm]?jsx?$"
74
- },
75
- "bundleName": {
76
- "type": "string",
77
- "pattern": "^[\\w\\-.]*$",
78
- "description": "The bundle name for this extra entry point."
79
- },
80
- "inject": {
81
- "type": "boolean",
82
- "description": "If the bundle will be referenced in the HTML file.",
83
- "default": true
84
- }
85
- },
86
- "additionalProperties": false,
87
- "required": ["input"]
88
- },
89
- {
90
- "type": "string",
91
- "description": "The file to include.",
92
- "pattern": "\\.[cm]?jsx?$"
93
- }
94
- ]
95
- }
47
+ "uniqueItems": true
48
+ },
49
+ "default": []
96
50
  },
97
- "styles": {
98
- "description": "Global styles to be included in the build.",
99
- "type": "array",
100
- "default": [],
101
- "items": {
102
- "oneOf": [
103
- {
104
- "type": "object",
105
- "properties": {
106
- "input": {
107
- "type": "string",
108
- "description": "The file to include.",
109
- "pattern": "\\.(?:css|scss|sass|less)$"
110
- },
111
- "bundleName": {
112
- "type": "string",
113
- "pattern": "^[\\w\\-.]*$",
114
- "description": "The bundle name for this extra entry point."
115
- },
116
- "inject": {
117
- "type": "boolean",
118
- "description": "If the bundle will be referenced in the HTML file.",
119
- "default": true
120
- }
121
- },
122
- "additionalProperties": false,
123
- "required": ["input"]
124
- },
125
- {
126
- "type": "string",
127
- "description": "The file to include.",
128
- "pattern": "\\.(?:css|scss|sass|less)$"
129
- }
130
- ]
51
+ {
52
+ "type": "string",
53
+ "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
54
+ }
55
+ ]
56
+ },
57
+ "tsConfig": {
58
+ "type": "string",
59
+ "description": "The full path for the TypeScript configuration file, relative to the current workspace."
60
+ },
61
+ "scripts": {
62
+ "description": "Global scripts to be included in the build.",
63
+ "type": "array",
64
+ "default": [],
65
+ "items": {
66
+ "oneOf": [
67
+ {
68
+ "type": "object",
69
+ "properties": {
70
+ "input": {
71
+ "type": "string",
72
+ "description": "The file to include.",
73
+ "pattern": "\\.[cm]?jsx?$"
74
+ },
75
+ "bundleName": {
76
+ "type": "string",
77
+ "pattern": "^[\\w\\-.]*$",
78
+ "description": "The bundle name for this extra entry point."
79
+ },
80
+ "inject": {
81
+ "type": "boolean",
82
+ "description": "If the bundle will be referenced in the HTML file.",
83
+ "default": true
84
+ }
131
85
  },
132
- "x-priority": "important"
133
- },
134
- "inlineStyleLanguage": {
135
- "description": "The stylesheet language to use for the application's inline component styles.",
86
+ "additionalProperties": false,
87
+ "required": ["input"]
88
+ },
89
+ {
136
90
  "type": "string",
137
- "default": "css",
138
- "enum": ["css", "less", "sass", "scss"]
139
- },
140
- "stylePreprocessorOptions": {
141
- "description": "Options to pass to style preprocessors.",
91
+ "description": "The file to include.",
92
+ "pattern": "\\.[cm]?jsx?$"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ "styles": {
98
+ "description": "Global styles to be included in the build.",
99
+ "type": "array",
100
+ "default": [],
101
+ "items": {
102
+ "oneOf": [
103
+ {
142
104
  "type": "object",
143
105
  "properties": {
144
- "includePaths": {
145
- "description": "Paths to include. Paths will be resolved to project root.",
146
- "type": "array",
147
- "items": {
148
- "type": "string"
149
- },
150
- "default": []
151
- }
106
+ "input": {
107
+ "type": "string",
108
+ "description": "The file to include.",
109
+ "pattern": "\\.(?:css|scss|sass|less)$"
110
+ },
111
+ "bundleName": {
112
+ "type": "string",
113
+ "pattern": "^[\\w\\-.]*$",
114
+ "description": "The bundle name for this extra entry point."
115
+ },
116
+ "inject": {
117
+ "type": "boolean",
118
+ "description": "If the bundle will be referenced in the HTML file.",
119
+ "default": true
120
+ }
152
121
  },
153
- "additionalProperties": false
154
- },
155
- "optimization": {
156
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
157
- "default": true,
158
- "oneOf": [
159
- {
160
- "type": "object",
161
- "properties": {
162
- "scripts": {
163
- "type": "boolean",
164
- "description": "Enables optimization of the scripts output.",
165
- "default": true
166
- },
167
- "styles": {
168
- "description": "Enables optimization of the styles output.",
169
- "default": true,
170
- "oneOf": [
171
- {
172
- "type": "object",
173
- "properties": {
174
- "minify": {
175
- "type": "boolean",
176
- "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
177
- "default": true
178
- },
179
- "inlineCritical": {
180
- "type": "boolean",
181
- "description": "Extract and inline critical CSS definitions to improve first paint time.",
182
- "default": true
183
- }
184
- },
185
- "additionalProperties": false
186
- },
187
- {
188
- "type": "boolean"
189
- }
190
- ]
191
- },
192
- "fonts": {
193
- "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
194
- "default": true,
195
- "oneOf": [
196
- {
197
- "type": "object",
198
- "properties": {
199
- "inline": {
200
- "type": "boolean",
201
- "description": "Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS definitions in the application's HTML index file. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
202
- "default": true
203
- }
204
- },
205
- "additionalProperties": false
206
- },
207
- {
208
- "type": "boolean"
209
- }
210
- ]
211
- }
212
- },
213
- "additionalProperties": false
214
- },
215
- {
216
- "type": "boolean"
217
- }
218
- ]
219
- },
220
- "fileReplacements": {
221
- "description": "Replace compilation source files with other compilation source files in the build.",
222
- "type": "array",
223
- "items": {
224
- "$ref": "#/definitions/fileReplacement"
225
- },
226
- "default": []
227
- },
228
- "outputPath": {
229
- "type": "string",
230
- "description": "The full path for the new output directory, relative to the current workspace."
231
- },
232
- "resourcesOutputPath": {
122
+ "additionalProperties": false,
123
+ "required": ["input"]
124
+ },
125
+ {
233
126
  "type": "string",
234
- "description": "The path where style resources will be placed, relative to outputPath.",
235
- "default": ""
236
- },
237
- "aot": {
238
- "type": "boolean",
239
- "description": "Build using Ahead of Time compilation.",
240
- "default": true
241
- },
242
- "sourceMap": {
243
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
244
- "default": false,
245
- "oneOf": [
127
+ "description": "The file to include.",
128
+ "pattern": "\\.(?:css|scss|sass|less)$"
129
+ }
130
+ ]
131
+ },
132
+ "x-priority": "important"
133
+ },
134
+ "inlineStyleLanguage": {
135
+ "description": "The stylesheet language to use for the application's inline component styles.",
136
+ "type": "string",
137
+ "default": "css",
138
+ "enum": ["css", "less", "sass", "scss"]
139
+ },
140
+ "stylePreprocessorOptions": {
141
+ "description": "Options to pass to style preprocessors.",
142
+ "type": "object",
143
+ "properties": {
144
+ "includePaths": {
145
+ "description": "Paths to include. Paths will be resolved to project root.",
146
+ "type": "array",
147
+ "items": {
148
+ "type": "string"
149
+ },
150
+ "default": []
151
+ }
152
+ },
153
+ "additionalProperties": false
154
+ },
155
+ "optimization": {
156
+ "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
157
+ "default": true,
158
+ "oneOf": [
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "scripts": {
163
+ "type": "boolean",
164
+ "description": "Enables optimization of the scripts output.",
165
+ "default": true
166
+ },
167
+ "styles": {
168
+ "description": "Enables optimization of the styles output.",
169
+ "default": true,
170
+ "oneOf": [
246
171
  {
247
- "type": "object",
248
- "properties": {
249
- "scripts": {
250
- "type": "boolean",
251
- "description": "Output source maps for all scripts.",
252
- "default": true
253
- },
254
- "styles": {
255
- "type": "boolean",
256
- "description": "Output source maps for all styles.",
257
- "default": true
258
- },
259
- "hidden": {
260
- "type": "boolean",
261
- "description": "Output source maps used for error reporting tools.",
262
- "default": false
263
- },
264
- "vendor": {
265
- "type": "boolean",
266
- "description": "Resolve vendor packages source maps.",
267
- "default": false
268
- }
172
+ "type": "object",
173
+ "properties": {
174
+ "minify": {
175
+ "type": "boolean",
176
+ "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
177
+ "default": true
269
178
  },
270
- "additionalProperties": false
179
+ "inlineCritical": {
180
+ "type": "boolean",
181
+ "description": "Extract and inline critical CSS definitions to improve first paint time.",
182
+ "default": true
183
+ }
184
+ },
185
+ "additionalProperties": false
271
186
  },
272
187
  {
273
- "type": "boolean"
188
+ "type": "boolean"
274
189
  }
275
- ]
276
- },
277
- "vendorChunk": {
278
- "type": "boolean",
279
- "description": "Generate a separate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
280
- "default": false
281
- },
282
- "commonChunk": {
283
- "type": "boolean",
284
- "description": "Generate a separate bundle containing code used across multiple bundles.",
285
- "default": true
286
- },
287
- "baseHref": {
288
- "type": "string",
289
- "description": "Base url for the application being built."
290
- },
291
- "deployUrl": {
292
- "type": "string",
293
- "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
294
- },
295
- "verbose": {
296
- "type": "boolean",
297
- "description": "Adds more details to output logging.",
298
- "default": false
299
- },
300
- "progress": {
301
- "type": "boolean",
302
- "description": "Log progress to the console while building.",
303
- "default": true
304
- },
305
- "i18nMissingTranslation": {
306
- "type": "string",
307
- "description": "How to handle missing translations for i18n.",
308
- "enum": ["warning", "error", "ignore"],
309
- "default": "warning"
310
- },
311
- "i18nDuplicateTranslation": {
312
- "type": "string",
313
- "description": "How to handle duplicate translations for i18n.",
314
- "enum": ["warning", "error", "ignore"],
315
- "default": "warning"
316
- },
317
- "localize": {
318
- "description": "Translate the bundles in one or more locales.",
319
- "oneOf": [
320
- {
321
- "type": "boolean",
322
- "description": "Translate all locales."
323
- },
190
+ ]
191
+ },
192
+ "fonts": {
193
+ "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
194
+ "default": true,
195
+ "oneOf": [
324
196
  {
325
- "type": "array",
326
- "description": "List of locales ID's to translate.",
327
- "minItems": 1,
328
- "items": {
329
- "type": "string",
330
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
197
+ "type": "object",
198
+ "properties": {
199
+ "inline": {
200
+ "type": "boolean",
201
+ "description": "Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS definitions in the application's HTML index file. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
202
+ "default": true
331
203
  }
332
- }
333
- ]
334
- },
335
- "watch": {
336
- "type": "boolean",
337
- "description": "Run build when files change.",
338
- "default": false
339
- },
340
- "outputHashing": {
341
- "type": "string",
342
- "description": "Define the output filename cache-busting hashing mode.",
343
- "default": "none",
344
- "enum": ["none", "all", "media", "bundles"]
345
- },
346
- "poll": {
347
- "type": "number",
348
- "description": "Enable and define the file watching poll time period in milliseconds."
349
- },
350
- "deleteOutputPath": {
351
- "type": "boolean",
352
- "description": "Delete the output path before building.",
353
- "default": true
354
- },
355
- "preserveSymlinks": {
356
- "type": "boolean",
357
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
358
- },
359
- "extractLicenses": {
360
- "type": "boolean",
361
- "description": "Extract all licenses in a separate file.",
362
- "default": true
363
- },
364
- "buildOptimizer": {
365
- "type": "boolean",
366
- "description": "Enables advanced build optimizations when using the 'aot' option.",
367
- "default": true
368
- },
369
- "namedChunks": {
370
- "type": "boolean",
371
- "description": "Use file name for lazy loaded chunks.",
372
- "default": false
373
- },
374
- "subresourceIntegrity": {
375
- "type": "boolean",
376
- "description": "Enables the use of subresource integrity validation.",
377
- "default": false
378
- },
379
- "serviceWorker": {
380
- "type": "boolean",
381
- "description": "Generates a service worker config for production builds.",
382
- "default": false
383
- },
384
- "ngswConfigPath": {
385
- "type": "string",
386
- "description": "Path to ngsw-config.json."
387
- },
388
- "index": {
389
- "description": "Configures the generation of the application's HTML index.",
390
- "oneOf": [
391
- {
392
- "type": "string",
393
- "description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
204
+ },
205
+ "additionalProperties": false
394
206
  },
395
207
  {
396
- "type": "object",
397
- "description": "",
398
- "properties": {
399
- "input": {
400
- "type": "string",
401
- "minLength": 1,
402
- "description": "The path of a file to use for the application's generated HTML index."
403
- },
404
- "output": {
405
- "type": "string",
406
- "minLength": 1,
407
- "default": "index.html",
408
- "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
409
- }
410
- },
411
- "required": ["input"]
208
+ "type": "boolean"
412
209
  }
413
- ]
414
- },
415
- "statsJson": {
416
- "type": "boolean",
417
- "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
418
- "default": false
210
+ ]
211
+ }
212
+ },
213
+ "additionalProperties": false
419
214
  },
420
- "budgets": {
421
- "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
422
- "type": "array",
423
- "items": {
424
- "$ref": "#/definitions/budget"
215
+ {
216
+ "type": "boolean"
217
+ }
218
+ ]
219
+ },
220
+ "fileReplacements": {
221
+ "description": "Replace compilation source files with other compilation source files in the build.",
222
+ "type": "array",
223
+ "items": {
224
+ "$ref": "#/definitions/fileReplacement"
225
+ },
226
+ "default": []
227
+ },
228
+ "outputPath": {
229
+ "type": "string",
230
+ "description": "The full path for the new output directory, relative to the current workspace."
231
+ },
232
+ "resourcesOutputPath": {
233
+ "type": "string",
234
+ "description": "The path where style resources will be placed, relative to outputPath.",
235
+ "default": ""
236
+ },
237
+ "aot": {
238
+ "type": "boolean",
239
+ "description": "Build using Ahead of Time compilation.",
240
+ "default": true
241
+ },
242
+ "sourceMap": {
243
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
244
+ "default": false,
245
+ "oneOf": [
246
+ {
247
+ "type": "object",
248
+ "properties": {
249
+ "scripts": {
250
+ "type": "boolean",
251
+ "description": "Output source maps for all scripts.",
252
+ "default": true
253
+ },
254
+ "styles": {
255
+ "type": "boolean",
256
+ "description": "Output source maps for all styles.",
257
+ "default": true
425
258
  },
426
- "default": []
259
+ "hidden": {
260
+ "type": "boolean",
261
+ "description": "Output source maps used for error reporting tools.",
262
+ "default": false
263
+ },
264
+ "vendor": {
265
+ "type": "boolean",
266
+ "description": "Resolve vendor packages source maps.",
267
+ "default": false
268
+ }
269
+ },
270
+ "additionalProperties": false
427
271
  },
428
- "webWorkerTsConfig": {
429
- "type": "string",
430
- "description": "TypeScript configuration for Web Worker modules."
272
+ {
273
+ "type": "boolean"
274
+ }
275
+ ]
276
+ },
277
+ "vendorChunk": {
278
+ "type": "boolean",
279
+ "description": "Generate a separate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
280
+ "default": false
281
+ },
282
+ "commonChunk": {
283
+ "type": "boolean",
284
+ "description": "Generate a separate bundle containing code used across multiple bundles.",
285
+ "default": true
286
+ },
287
+ "baseHref": {
288
+ "type": "string",
289
+ "description": "Base url for the application being built."
290
+ },
291
+ "deployUrl": {
292
+ "type": "string",
293
+ "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
294
+ },
295
+ "verbose": {
296
+ "type": "boolean",
297
+ "description": "Adds more details to output logging.",
298
+ "default": false
299
+ },
300
+ "progress": {
301
+ "type": "boolean",
302
+ "description": "Log progress to the console while building.",
303
+ "default": true
304
+ },
305
+ "i18nMissingTranslation": {
306
+ "type": "string",
307
+ "description": "How to handle missing translations for i18n.",
308
+ "enum": ["warning", "error", "ignore"],
309
+ "default": "warning"
310
+ },
311
+ "i18nDuplicateTranslation": {
312
+ "type": "string",
313
+ "description": "How to handle duplicate translations for i18n.",
314
+ "enum": ["warning", "error", "ignore"],
315
+ "default": "warning"
316
+ },
317
+ "localize": {
318
+ "description": "Translate the bundles in one or more locales.",
319
+ "oneOf": [
320
+ {
321
+ "type": "boolean",
322
+ "description": "Translate all locales."
431
323
  },
432
- "crossOrigin": {
324
+ {
325
+ "type": "array",
326
+ "description": "List of locales ID's to translate.",
327
+ "minItems": 1,
328
+ "items": {
433
329
  "type": "string",
434
- "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
435
- "default": "none",
436
- "enum": ["none", "anonymous", "use-credentials"]
330
+ "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
331
+ }
332
+ }
333
+ ]
334
+ },
335
+ "watch": {
336
+ "type": "boolean",
337
+ "description": "Run build when files change.",
338
+ "default": false
339
+ },
340
+ "outputHashing": {
341
+ "type": "string",
342
+ "description": "Define the output filename cache-busting hashing mode.",
343
+ "default": "none",
344
+ "enum": ["none", "all", "media", "bundles"]
345
+ },
346
+ "poll": {
347
+ "type": "number",
348
+ "description": "Enable and define the file watching poll time period in milliseconds."
349
+ },
350
+ "deleteOutputPath": {
351
+ "type": "boolean",
352
+ "description": "Delete the output path before building.",
353
+ "default": true
354
+ },
355
+ "preserveSymlinks": {
356
+ "type": "boolean",
357
+ "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
358
+ },
359
+ "extractLicenses": {
360
+ "type": "boolean",
361
+ "description": "Extract all licenses in a separate file.",
362
+ "default": true
363
+ },
364
+ "buildOptimizer": {
365
+ "type": "boolean",
366
+ "description": "Enables advanced build optimizations when using the 'aot' option.",
367
+ "default": true
368
+ },
369
+ "namedChunks": {
370
+ "type": "boolean",
371
+ "description": "Use file name for lazy loaded chunks.",
372
+ "default": false
373
+ },
374
+ "subresourceIntegrity": {
375
+ "type": "boolean",
376
+ "description": "Enables the use of subresource integrity validation.",
377
+ "default": false
378
+ },
379
+ "serviceWorker": {
380
+ "type": "boolean",
381
+ "description": "Generates a service worker config for production builds.",
382
+ "default": false
383
+ },
384
+ "ngswConfigPath": {
385
+ "type": "string",
386
+ "description": "Path to ngsw-config.json."
387
+ },
388
+ "index": {
389
+ "description": "Configures the generation of the application's HTML index.",
390
+ "oneOf": [
391
+ {
392
+ "type": "string",
393
+ "description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
437
394
  },
438
- "allowedCommonJsDependencies": {
439
- "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
440
- "type": "array",
441
- "items": {
442
- "type": "string"
395
+ {
396
+ "type": "object",
397
+ "description": "",
398
+ "properties": {
399
+ "input": {
400
+ "type": "string",
401
+ "minLength": 1,
402
+ "description": "The path of a file to use for the application's generated HTML index."
443
403
  },
444
- "default": []
445
- },
446
- "customWebpackConfig": {
447
- "description": "Options for additional webpack configurations.",
448
- "type": "object",
449
- "properties": {
450
- "path": {
451
- "description": "Path to additional webpack configuration, relative to the workspace root.",
452
- "type": "string"
453
- }
404
+ "output": {
405
+ "type": "string",
406
+ "minLength": 1,
407
+ "default": "index.html",
408
+ "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
409
+ }
410
+ },
411
+ "required": ["input"]
412
+ }
413
+ ]
414
+ },
415
+ "statsJson": {
416
+ "type": "boolean",
417
+ "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
418
+ "default": false
419
+ },
420
+ "budgets": {
421
+ "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
422
+ "type": "array",
423
+ "items": {
424
+ "$ref": "#/definitions/budget"
425
+ },
426
+ "default": []
427
+ },
428
+ "webWorkerTsConfig": {
429
+ "type": "string",
430
+ "description": "TypeScript configuration for Web Worker modules."
431
+ },
432
+ "crossOrigin": {
433
+ "type": "string",
434
+ "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
435
+ "default": "none",
436
+ "enum": ["none", "anonymous", "use-credentials"]
437
+ },
438
+ "allowedCommonJsDependencies": {
439
+ "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
440
+ "type": "array",
441
+ "items": {
442
+ "type": "string"
443
+ },
444
+ "default": []
445
+ },
446
+ "customWebpackConfig": {
447
+ "description": "Options for additional webpack configurations.",
448
+ "type": "object",
449
+ "properties": {
450
+ "path": {
451
+ "description": "Path to additional webpack configuration, relative to the workspace root.",
452
+ "type": "string"
453
+ }
454
+ },
455
+ "x-priority": "important",
456
+ "additionalProperties": false
457
+ },
458
+ "indexHtmlTransformer": {
459
+ "description": "Path to a file containing a function to transform the index.html. The function should have the signature: `(target: Target, indexHtml: string) => string`, where `target` is the build target configuration and `indexHtml` is the original HTML content.",
460
+ "type": "string",
461
+ "alias": "indexFileTransformer"
462
+ },
463
+ "buildLibsFromSource": {
464
+ "type": "boolean",
465
+ "description": "Read buildable libraries from source instead of building them separately.",
466
+ "default": true
467
+ },
468
+ "watchDependencies": {
469
+ "type": "boolean",
470
+ "description": "Watch buildable dependencies and rebuild when they change.",
471
+ "default": true
472
+ }
473
+ },
474
+ "additionalProperties": false,
475
+ "required": ["outputPath", "index", "main", "tsConfig"],
476
+ "definitions": {
477
+ "assetPattern": {
478
+ "oneOf": [
479
+ {
480
+ "type": "object",
481
+ "properties": {
482
+ "followSymlinks": {
483
+ "type": "boolean",
484
+ "default": false,
485
+ "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
454
486
  },
455
- "x-priority": "important",
456
- "additionalProperties": false
457
- },
458
- "indexHtmlTransformer": {
459
- "description": "Path to a file containing a function to transform the index.html. The function should have the signature: `(target: Target, indexHtml: string) => string`, where `target` is the build target configuration and `indexHtml` is the original HTML content.",
460
- "type": "string",
461
- "alias": "indexFileTransformer"
462
- },
463
- "buildLibsFromSource": {
464
- "type": "boolean",
465
- "description": "Read buildable libraries from source instead of building them separately.",
466
- "default": true
487
+ "glob": {
488
+ "type": "string",
489
+ "description": "The pattern to match."
490
+ },
491
+ "input": {
492
+ "type": "string",
493
+ "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
494
+ },
495
+ "ignore": {
496
+ "description": "An array of globs to ignore.",
497
+ "type": "array",
498
+ "items": {
499
+ "type": "string"
500
+ }
501
+ },
502
+ "output": {
503
+ "type": "string",
504
+ "default": "",
505
+ "description": "Absolute path within the output."
506
+ }
507
+ },
508
+ "additionalProperties": false,
509
+ "required": ["glob", "input"]
467
510
  },
468
- "watchDependencies": {
469
- "type": "boolean",
470
- "description": "Watch buildable dependencies and rebuild when they change.",
471
- "default": true
511
+ {
512
+ "type": "string"
472
513
  }
514
+ ]
473
515
  },
474
- "additionalProperties": false,
475
- "required": ["outputPath", "index", "main", "tsConfig"],
476
- "definitions": {
477
- "assetPattern": {
478
- "oneOf": [
479
- {
480
- "type": "object",
481
- "properties": {
482
- "followSymlinks": {
483
- "type": "boolean",
484
- "default": false,
485
- "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
486
- },
487
- "glob": {
488
- "type": "string",
489
- "description": "The pattern to match."
490
- },
491
- "input": {
492
- "type": "string",
493
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
494
- },
495
- "ignore": {
496
- "description": "An array of globs to ignore.",
497
- "type": "array",
498
- "items": {
499
- "type": "string"
500
- }
501
- },
502
- "output": {
503
- "type": "string",
504
- "default": "",
505
- "description": "Absolute path within the output."
506
- }
507
- },
508
- "additionalProperties": false,
509
- "required": ["glob", "input"]
510
- },
511
- {
512
- "type": "string"
513
- }
514
- ]
515
- },
516
- "fileReplacement": {
517
- "oneOf": [
518
- {
519
- "type": "object",
520
- "properties": {
521
- "src": {
522
- "type": "string",
523
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
524
- },
525
- "replaceWith": {
526
- "type": "string",
527
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
528
- }
529
- },
530
- "additionalProperties": false,
531
- "required": ["src", "replaceWith"]
532
- },
533
- {
534
- "type": "object",
535
- "properties": {
536
- "replace": {
537
- "type": "string",
538
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
539
- },
540
- "with": {
541
- "type": "string",
542
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
543
- }
544
- },
545
- "additionalProperties": false,
546
- "required": ["replace", "with"]
547
- }
548
- ]
516
+ "fileReplacement": {
517
+ "oneOf": [
518
+ {
519
+ "type": "object",
520
+ "properties": {
521
+ "src": {
522
+ "type": "string",
523
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
524
+ },
525
+ "replaceWith": {
526
+ "type": "string",
527
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
528
+ }
529
+ },
530
+ "additionalProperties": false,
531
+ "required": ["src", "replaceWith"]
549
532
  },
550
- "budget": {
551
- "type": "object",
552
- "properties": {
553
- "type": {
554
- "type": "string",
555
- "description": "The type of budget.",
556
- "enum": [
557
- "all",
558
- "allScript",
559
- "any",
560
- "anyScript",
561
- "anyComponentStyle",
562
- "bundle",
563
- "initial"
564
- ]
565
- },
566
- "name": {
567
- "type": "string",
568
- "description": "The name of the bundle."
569
- },
570
- "baseline": {
571
- "type": "string",
572
- "description": "The baseline size for comparison."
573
- },
574
- "maximumWarning": {
575
- "type": "string",
576
- "description": "The maximum threshold for warning relative to the baseline."
577
- },
578
- "maximumError": {
579
- "type": "string",
580
- "description": "The maximum threshold for error relative to the baseline."
581
- },
582
- "minimumWarning": {
583
- "type": "string",
584
- "description": "The minimum threshold for warning relative to the baseline."
585
- },
586
- "minimumError": {
587
- "type": "string",
588
- "description": "The minimum threshold for error relative to the baseline."
589
- },
590
- "warning": {
591
- "type": "string",
592
- "description": "The threshold for warning relative to the baseline (min & max)."
593
- },
594
- "error": {
595
- "type": "string",
596
- "description": "The threshold for error relative to the baseline (min & max)."
597
- }
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "replace": {
537
+ "type": "string",
538
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
598
539
  },
599
- "additionalProperties": false,
600
- "required": ["type"]
540
+ "with": {
541
+ "type": "string",
542
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
543
+ }
544
+ },
545
+ "additionalProperties": false,
546
+ "required": ["replace", "with"]
547
+ }
548
+ ]
549
+ },
550
+ "budget": {
551
+ "type": "object",
552
+ "properties": {
553
+ "type": {
554
+ "type": "string",
555
+ "description": "The type of budget.",
556
+ "enum": [
557
+ "all",
558
+ "allScript",
559
+ "any",
560
+ "anyScript",
561
+ "anyComponentStyle",
562
+ "bundle",
563
+ "initial"
564
+ ]
565
+ },
566
+ "name": {
567
+ "type": "string",
568
+ "description": "The name of the bundle."
569
+ },
570
+ "baseline": {
571
+ "type": "string",
572
+ "description": "The baseline size for comparison."
573
+ },
574
+ "maximumWarning": {
575
+ "type": "string",
576
+ "description": "The maximum threshold for warning relative to the baseline."
577
+ },
578
+ "maximumError": {
579
+ "type": "string",
580
+ "description": "The maximum threshold for error relative to the baseline."
581
+ },
582
+ "minimumWarning": {
583
+ "type": "string",
584
+ "description": "The minimum threshold for warning relative to the baseline."
585
+ },
586
+ "minimumError": {
587
+ "type": "string",
588
+ "description": "The minimum threshold for error relative to the baseline."
589
+ },
590
+ "warning": {
591
+ "type": "string",
592
+ "description": "The threshold for warning relative to the baseline (min & max)."
593
+ },
594
+ "error": {
595
+ "type": "string",
596
+ "description": "The threshold for error relative to the baseline (min & max)."
601
597
  }
598
+ },
599
+ "additionalProperties": false,
600
+ "required": ["type"]
602
601
  }
602
+ }
603
603
  }