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