@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,776 +1,776 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "title": "Schema for Nx Application Executor",
4
- "description": "Builds an Angular application using [esbuild](https://esbuild.github.io/) with integrated SSR and prerendering capabilities.",
5
- "examplesFile": "../../../docs/application-executor-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
- "browser": {
18
- "type": "string",
19
- "description": "The full path for the browser entry point to the application, relative to the current workspace."
20
- },
21
- "server": {
22
- "description": "The full path for the server entry point to the application, relative to the current workspace.",
23
- "oneOf": [
24
- {
25
- "type": "string",
26
- "description": "The full path for the server entry point to the application, relative to the current workspace."
27
- },
28
- {
29
- "const": false,
30
- "type": "boolean",
31
- "description": "Indicates that a server entry point is not provided."
32
- }
33
- ]
34
- },
35
- "polyfills": {
36
- "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'.",
37
- "type": "array",
38
- "items": {
39
- "type": "string",
40
- "uniqueItems": true
41
- },
42
- "default": []
43
- },
44
- "tsConfig": {
45
- "type": "string",
46
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
47
- },
48
- "deployUrl": {
49
- "type": "string",
50
- "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."
51
- },
52
- "security": {
53
- "description": "Security features to protect against XSS and other common attacks",
54
- "type": "object",
55
- "additionalProperties": false,
56
- "properties": {
57
- "allowedHosts": {
58
- "description": "A list of hostnames that are allowed to access the server-side application. For more information, see https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf. _Note: this is only supported in Angular versions >= 21.2.0_.",
59
- "type": "array",
60
- "uniqueItems": true,
61
- "items": {
62
- "type": "string"
63
- }
64
- },
65
- "autoCsp": {
66
- "description": "Enables automatic generation of a hash-based Strict Content Security Policy (https://web.dev/articles/strict-csp#choose-hash) based on scripts in index.html. Will default to true once we are out of experimental/preview phases.",
67
- "default": false,
68
- "oneOf": [
69
- {
70
- "type": "object",
71
- "properties": {
72
- "unsafeEval": {
73
- "type": "boolean",
74
- "description": "Include the `unsafe-eval` directive (https://web.dev/articles/strict-csp#remove-eval) in the auto-CSP. Please only enable this if you are absolutely sure that you need to, as allowing calls to eval will weaken the XSS defenses provided by the auto-CSP.",
75
- "default": false
76
- }
77
- },
78
- "additionalProperties": false
79
- },
80
- {
81
- "type": "boolean"
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "title": "Schema for Nx Application Executor",
4
+ "description": "Builds an Angular application using [esbuild](https://esbuild.github.io/) with integrated SSR and prerendering capabilities.",
5
+ "examplesFile": "../../../docs/application-executor-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"
82
15
  }
83
- ]
84
- }
85
- }
86
- },
87
- "scripts": {
88
- "description": "Global scripts to be included in the build.",
89
- "type": "array",
90
- "default": [],
91
- "items": {
92
- "oneOf": [
93
- {
94
- "type": "object",
95
- "properties": {
96
- "input": {
97
- "type": "string",
98
- "description": "The file to include.",
99
- "pattern": "\\.[cm]?jsx?$"
100
- },
101
- "bundleName": {
16
+ },
17
+ "browser": {
18
+ "type": "string",
19
+ "description": "The full path for the browser entry point to the application, relative to the current workspace."
20
+ },
21
+ "server": {
22
+ "description": "The full path for the server entry point to the application, relative to the current workspace.",
23
+ "oneOf": [
24
+ {
25
+ "type": "string",
26
+ "description": "The full path for the server entry point to the application, relative to the current workspace."
27
+ },
28
+ {
29
+ "const": false,
30
+ "type": "boolean",
31
+ "description": "Indicates that a server entry point is not provided."
32
+ }
33
+ ]
34
+ },
35
+ "polyfills": {
36
+ "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'.",
37
+ "type": "array",
38
+ "items": {
102
39
  "type": "string",
103
- "pattern": "^[\\w\\-.]*$",
104
- "description": "The bundle name for this extra entry point."
105
- },
106
- "inject": {
107
- "type": "boolean",
108
- "description": "If the bundle will be referenced in the HTML file.",
109
- "default": true
110
- }
40
+ "uniqueItems": true
111
41
  },
42
+ "default": []
43
+ },
44
+ "tsConfig": {
45
+ "type": "string",
46
+ "description": "The full path for the TypeScript configuration file, relative to the current workspace."
47
+ },
48
+ "deployUrl": {
49
+ "type": "string",
50
+ "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."
51
+ },
52
+ "security": {
53
+ "description": "Security features to protect against XSS and other common attacks",
54
+ "type": "object",
112
55
  "additionalProperties": false,
113
- "required": ["input"]
114
- },
115
- {
56
+ "properties": {
57
+ "allowedHosts": {
58
+ "description": "A list of hostnames that are allowed to access the server-side application. For more information, see https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf. _Note: this is only supported in Angular versions >= 21.2.0_.",
59
+ "type": "array",
60
+ "uniqueItems": true,
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "autoCsp": {
66
+ "description": "Enables automatic generation of a hash-based Strict Content Security Policy (https://web.dev/articles/strict-csp#choose-hash) based on scripts in index.html. Will default to true once we are out of experimental/preview phases.",
67
+ "default": false,
68
+ "oneOf": [
69
+ {
70
+ "type": "object",
71
+ "properties": {
72
+ "unsafeEval": {
73
+ "type": "boolean",
74
+ "description": "Include the `unsafe-eval` directive (https://web.dev/articles/strict-csp#remove-eval) in the auto-CSP. Please only enable this if you are absolutely sure that you need to, as allowing calls to eval will weaken the XSS defenses provided by the auto-CSP.",
75
+ "default": false
76
+ }
77
+ },
78
+ "additionalProperties": false
79
+ },
80
+ {
81
+ "type": "boolean"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ },
87
+ "scripts": {
88
+ "description": "Global scripts to be included in the build.",
89
+ "type": "array",
90
+ "default": [],
91
+ "items": {
92
+ "oneOf": [
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "input": {
97
+ "type": "string",
98
+ "description": "The file to include.",
99
+ "pattern": "\\.[cm]?jsx?$"
100
+ },
101
+ "bundleName": {
102
+ "type": "string",
103
+ "pattern": "^[\\w\\-.]*$",
104
+ "description": "The bundle name for this extra entry point."
105
+ },
106
+ "inject": {
107
+ "type": "boolean",
108
+ "description": "If the bundle will be referenced in the HTML file.",
109
+ "default": true
110
+ }
111
+ },
112
+ "additionalProperties": false,
113
+ "required": ["input"]
114
+ },
115
+ {
116
+ "type": "string",
117
+ "description": "The JavaScript/TypeScript file or package containing the file to include."
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "styles": {
123
+ "description": "Global styles to be included in the build.",
124
+ "type": "array",
125
+ "default": [],
126
+ "items": {
127
+ "oneOf": [
128
+ {
129
+ "type": "object",
130
+ "properties": {
131
+ "input": {
132
+ "type": "string",
133
+ "description": "The file to include.",
134
+ "pattern": "\\.(?:css|scss|sass|less)$"
135
+ },
136
+ "bundleName": {
137
+ "type": "string",
138
+ "pattern": "^[\\w\\-.]*$",
139
+ "description": "The bundle name for this extra entry point."
140
+ },
141
+ "inject": {
142
+ "type": "boolean",
143
+ "description": "If the bundle will be referenced in the HTML file.",
144
+ "default": true
145
+ }
146
+ },
147
+ "additionalProperties": false,
148
+ "required": ["input"]
149
+ },
150
+ {
151
+ "type": "string",
152
+ "description": "The file to include.",
153
+ "pattern": "\\.(?:css|scss|sass|less)$"
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ "inlineStyleLanguage": {
159
+ "description": "The stylesheet language to use for the application's inline component styles.",
116
160
  "type": "string",
117
- "description": "The JavaScript/TypeScript file or package containing the file to include."
118
- }
119
- ]
120
- }
121
- },
122
- "styles": {
123
- "description": "Global styles to be included in the build.",
124
- "type": "array",
125
- "default": [],
126
- "items": {
127
- "oneOf": [
128
- {
161
+ "default": "css",
162
+ "enum": ["css", "less", "sass", "scss"]
163
+ },
164
+ "stylePreprocessorOptions": {
165
+ "description": "Options to pass to style preprocessors.",
129
166
  "type": "object",
130
167
  "properties": {
131
- "input": {
132
- "type": "string",
133
- "description": "The file to include.",
134
- "pattern": "\\.(?:css|scss|sass|less)$"
135
- },
136
- "bundleName": {
137
- "type": "string",
138
- "pattern": "^[\\w\\-.]*$",
139
- "description": "The bundle name for this extra entry point."
140
- },
141
- "inject": {
142
- "type": "boolean",
143
- "description": "If the bundle will be referenced in the HTML file.",
144
- "default": true
145
- }
168
+ "includePaths": {
169
+ "description": "Paths to include. Paths will be resolved to workspace root.",
170
+ "type": "array",
171
+ "items": {
172
+ "type": "string"
173
+ },
174
+ "default": []
175
+ },
176
+ "sass": {
177
+ "description": "Options to pass to the sass preprocessor.",
178
+ "type": "object",
179
+ "properties": {
180
+ "fatalDeprecations": {
181
+ "description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
182
+ "type": "array",
183
+ "items": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "silenceDeprecations": {
188
+ "description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string"
192
+ }
193
+ },
194
+ "futureDeprecations": {
195
+ "description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
196
+ "type": "array",
197
+ "items": {
198
+ "type": "string"
199
+ }
200
+ }
201
+ },
202
+ "additionalProperties": false
203
+ }
146
204
  },
147
- "additionalProperties": false,
148
- "required": ["input"]
149
- },
150
- {
151
- "type": "string",
152
- "description": "The file to include.",
153
- "pattern": "\\.(?:css|scss|sass|less)$"
154
- }
155
- ]
156
- }
157
- },
158
- "inlineStyleLanguage": {
159
- "description": "The stylesheet language to use for the application's inline component styles.",
160
- "type": "string",
161
- "default": "css",
162
- "enum": ["css", "less", "sass", "scss"]
163
- },
164
- "stylePreprocessorOptions": {
165
- "description": "Options to pass to style preprocessors.",
166
- "type": "object",
167
- "properties": {
168
- "includePaths": {
169
- "description": "Paths to include. Paths will be resolved to workspace root.",
170
- "type": "array",
171
- "items": {
172
- "type": "string"
173
- },
174
- "default": []
175
- },
176
- "sass": {
177
- "description": "Options to pass to the sass preprocessor.",
178
- "type": "object",
179
- "properties": {
180
- "fatalDeprecations": {
181
- "description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
182
- "type": "array",
183
- "items": {
205
+ "additionalProperties": false
206
+ },
207
+ "externalDependencies": {
208
+ "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.",
209
+ "type": "array",
210
+ "items": {
184
211
  "type": "string"
185
- }
186
212
  },
187
- "silenceDeprecations": {
188
- "description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
189
- "type": "array",
190
- "items": {
213
+ "default": []
214
+ },
215
+ "clearScreen": {
216
+ "type": "boolean",
217
+ "default": false,
218
+ "description": "Automatically clear the terminal screen during rebuilds."
219
+ },
220
+ "optimization": {
221
+ "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.",
222
+ "default": true,
223
+ "oneOf": [
224
+ {
225
+ "type": "object",
226
+ "properties": {
227
+ "scripts": {
228
+ "type": "boolean",
229
+ "description": "Enables optimization of the scripts output.",
230
+ "default": true
231
+ },
232
+ "styles": {
233
+ "description": "Enables optimization of the styles output.",
234
+ "default": true,
235
+ "oneOf": [
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "minify": {
240
+ "type": "boolean",
241
+ "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
242
+ "default": true
243
+ },
244
+ "inlineCritical": {
245
+ "type": "boolean",
246
+ "description": "Extract and inline critical CSS definitions to improve first paint time.",
247
+ "default": true
248
+ },
249
+ "removeSpecialComments": {
250
+ "type": "boolean",
251
+ "description": "Remove comments in global CSS that contains '@license' or '@preserve' or that starts with '//!' or '/*!'.",
252
+ "default": true
253
+ }
254
+ },
255
+ "additionalProperties": false
256
+ },
257
+ {
258
+ "type": "boolean"
259
+ }
260
+ ]
261
+ },
262
+ "fonts": {
263
+ "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
264
+ "default": true,
265
+ "oneOf": [
266
+ {
267
+ "type": "object",
268
+ "properties": {
269
+ "inline": {
270
+ "type": "boolean",
271
+ "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.",
272
+ "default": true
273
+ }
274
+ },
275
+ "additionalProperties": false
276
+ },
277
+ {
278
+ "type": "boolean"
279
+ }
280
+ ]
281
+ }
282
+ },
283
+ "additionalProperties": false
284
+ },
285
+ {
286
+ "type": "boolean"
287
+ }
288
+ ]
289
+ },
290
+ "loader": {
291
+ "description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `dataurl` inlines the content as a data URL with best guess of MIME type; `base64` inlines the content as a Base64-encoded string; `empty` considers the content to be empty and not include it in bundles. _Note: `dataurl` and `base64` are only supported in Angular versions >= 20.1.0_.",
292
+ "type": "object",
293
+ "patternProperties": {
294
+ "^\\.\\S+$": {
295
+ "enum": ["text", "binary", "file", "dataurl", "base64", "empty"]
296
+ }
297
+ }
298
+ },
299
+ "define": {
300
+ "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
301
+ "type": "object",
302
+ "additionalProperties": {
191
303
  "type": "string"
192
- }
193
- },
194
- "futureDeprecations": {
195
- "description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
196
- "type": "array",
197
- "items": {
304
+ }
305
+ },
306
+ "conditions": {
307
+ "description": "Custom package resolution conditions used to resolve conditional exports/imports. Defaults to ['module', 'development'/'production']. The following special conditions are always present if the requirements are satisfied: 'default', 'import', 'require', 'browser', 'node'. _Note: this is only supported in Angular versions >= 20.0.0_.",
308
+ "type": "array",
309
+ "items": {
198
310
  "type": "string"
199
- }
200
311
  }
201
- },
202
- "additionalProperties": false
203
- }
204
- },
205
- "additionalProperties": false
206
- },
207
- "externalDependencies": {
208
- "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.",
209
- "type": "array",
210
- "items": {
211
- "type": "string"
212
- },
213
- "default": []
214
- },
215
- "clearScreen": {
216
- "type": "boolean",
217
- "default": false,
218
- "description": "Automatically clear the terminal screen during rebuilds."
219
- },
220
- "optimization": {
221
- "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.",
222
- "default": true,
223
- "oneOf": [
224
- {
225
- "type": "object",
226
- "properties": {
227
- "scripts": {
228
- "type": "boolean",
229
- "description": "Enables optimization of the scripts output.",
230
- "default": true
312
+ },
313
+ "fileReplacements": {
314
+ "description": "Replace compilation source files with other compilation source files in the build.",
315
+ "type": "array",
316
+ "items": {
317
+ "$ref": "#/definitions/fileReplacement"
231
318
  },
232
- "styles": {
233
- "description": "Enables optimization of the styles output.",
234
- "default": true,
235
- "oneOf": [
319
+ "default": []
320
+ },
321
+ "outputPath": {
322
+ "description": "Specify the output path relative to workspace root.",
323
+ "oneOf": [
236
324
  {
237
- "type": "object",
238
- "properties": {
239
- "minify": {
240
- "type": "boolean",
241
- "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
242
- "default": true
325
+ "type": "object",
326
+ "properties": {
327
+ "base": {
328
+ "type": "string",
329
+ "description": "Specify the output path relative to workspace root."
330
+ },
331
+ "browser": {
332
+ "type": "string",
333
+ "pattern": "^[-\\w\\.]*$",
334
+ "default": "browser",
335
+ "description": "The output directory name of your browser build within the output path base. Defaults to 'browser'."
336
+ },
337
+ "server": {
338
+ "type": "string",
339
+ "pattern": "^[-\\w\\.]*$",
340
+ "default": "server",
341
+ "description": "The output directory name of your server build within the output path base. Defaults to 'server'."
342
+ },
343
+ "media": {
344
+ "type": "string",
345
+ "pattern": "^[-\\w\\.]+$",
346
+ "default": "media",
347
+ "description": "The output directory name of your media files within the output browser directory. Defaults to 'media'."
348
+ }
243
349
  },
244
- "inlineCritical": {
245
- "type": "boolean",
246
- "description": "Extract and inline critical CSS definitions to improve first paint time.",
247
- "default": true
350
+ "required": ["base"],
351
+ "additionalProperties": false
352
+ },
353
+ {
354
+ "type": "string"
355
+ }
356
+ ]
357
+ },
358
+ "aot": {
359
+ "type": "boolean",
360
+ "description": "Build using Ahead of Time compilation.",
361
+ "default": true
362
+ },
363
+ "sourceMap": {
364
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
365
+ "default": false,
366
+ "oneOf": [
367
+ {
368
+ "type": "object",
369
+ "properties": {
370
+ "scripts": {
371
+ "type": "boolean",
372
+ "description": "Output source maps for all scripts.",
373
+ "default": true
374
+ },
375
+ "styles": {
376
+ "type": "boolean",
377
+ "description": "Output source maps for all styles.",
378
+ "default": true
379
+ },
380
+ "hidden": {
381
+ "type": "boolean",
382
+ "description": "Output source maps used for error reporting tools.",
383
+ "default": false
384
+ },
385
+ "vendor": {
386
+ "type": "boolean",
387
+ "description": "Resolve vendor packages source maps.",
388
+ "default": false
389
+ },
390
+ "sourcesContent": {
391
+ "type": "boolean",
392
+ "description": "Output original source content for files within the source map. _Note: this is only supported in Angular versions >= 20.0.0_.",
393
+ "default": true
394
+ }
248
395
  },
249
- "removeSpecialComments": {
250
- "type": "boolean",
251
- "description": "Remove comments in global CSS that contains '@license' or '@preserve' or that starts with '//!' or '/*!'.",
252
- "default": true
253
- }
254
- },
255
- "additionalProperties": false
396
+ "additionalProperties": false
256
397
  },
257
398
  {
258
- "type": "boolean"
399
+ "type": "boolean"
259
400
  }
260
- ]
261
- },
262
- "fonts": {
263
- "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
264
- "default": true,
265
- "oneOf": [
401
+ ]
402
+ },
403
+ "baseHref": {
404
+ "type": "string",
405
+ "description": "Base url for the application being built."
406
+ },
407
+ "verbose": {
408
+ "type": "boolean",
409
+ "description": "Adds more details to output logging.",
410
+ "default": false
411
+ },
412
+ "progress": {
413
+ "type": "boolean",
414
+ "description": "Log progress to the console while building.",
415
+ "default": true
416
+ },
417
+ "i18nMissingTranslation": {
418
+ "type": "string",
419
+ "description": "How to handle missing translations for i18n.",
420
+ "enum": ["warning", "error", "ignore"],
421
+ "default": "warning"
422
+ },
423
+ "i18nDuplicateTranslation": {
424
+ "type": "string",
425
+ "description": "How to handle duplicate translations for i18n.",
426
+ "enum": ["warning", "error", "ignore"],
427
+ "default": "warning"
428
+ },
429
+ "localize": {
430
+ "description": "Translate the bundles in one or more locales.",
431
+ "oneOf": [
432
+ {
433
+ "type": "boolean",
434
+ "description": "Translate all locales."
435
+ },
266
436
  {
267
- "type": "object",
268
- "properties": {
269
- "inline": {
270
- "type": "boolean",
271
- "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.",
272
- "default": true
437
+ "type": "array",
438
+ "description": "List of locales ID's to translate.",
439
+ "minItems": 1,
440
+ "items": {
441
+ "type": "string",
442
+ "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})+)?$"
273
443
  }
274
- },
275
- "additionalProperties": false
444
+ }
445
+ ]
446
+ },
447
+ "watch": {
448
+ "type": "boolean",
449
+ "description": "Run build when files change.",
450
+ "default": false
451
+ },
452
+ "outputHashing": {
453
+ "type": "string",
454
+ "description": "Define the output filename cache-busting hashing mode.",
455
+ "default": "none",
456
+ "enum": ["none", "all", "media", "bundles"]
457
+ },
458
+ "poll": {
459
+ "type": "number",
460
+ "description": "Enable and define the file watching poll time period in milliseconds."
461
+ },
462
+ "deleteOutputPath": {
463
+ "type": "boolean",
464
+ "description": "Delete the output path before building.",
465
+ "default": true
466
+ },
467
+ "preserveSymlinks": {
468
+ "type": "boolean",
469
+ "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
470
+ },
471
+ "extractLicenses": {
472
+ "type": "boolean",
473
+ "description": "Extract all licenses in a separate file.",
474
+ "default": true
475
+ },
476
+ "namedChunks": {
477
+ "type": "boolean",
478
+ "description": "Use file name for lazy loaded chunks.",
479
+ "default": false
480
+ },
481
+ "subresourceIntegrity": {
482
+ "type": "boolean",
483
+ "description": "Enables the use of subresource integrity validation.",
484
+ "default": false
485
+ },
486
+ "serviceWorker": {
487
+ "description": "Generates a service worker configuration.",
488
+ "default": false,
489
+ "oneOf": [
490
+ {
491
+ "type": "string",
492
+ "description": "Path to ngsw-config.json."
276
493
  },
277
494
  {
278
- "type": "boolean"
495
+ "const": false,
496
+ "type": "boolean",
497
+ "description": "Does not generate a service worker configuration."
279
498
  }
280
- ]
281
- }
282
- },
283
- "additionalProperties": false
499
+ ]
284
500
  },
285
- {
286
- "type": "boolean"
287
- }
288
- ]
289
- },
290
- "loader": {
291
- "description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `dataurl` inlines the content as a data URL with best guess of MIME type; `base64` inlines the content as a Base64-encoded string; `empty` considers the content to be empty and not include it in bundles. _Note: `dataurl` and `base64` are only supported in Angular versions >= 20.1.0_.",
292
- "type": "object",
293
- "patternProperties": {
294
- "^\\.\\S+$": {
295
- "enum": ["text", "binary", "file", "dataurl", "base64", "empty"]
296
- }
297
- }
298
- },
299
- "define": {
300
- "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
301
- "type": "object",
302
- "additionalProperties": {
303
- "type": "string"
304
- }
305
- },
306
- "conditions": {
307
- "description": "Custom package resolution conditions used to resolve conditional exports/imports. Defaults to ['module', 'development'/'production']. The following special conditions are always present if the requirements are satisfied: 'default', 'import', 'require', 'browser', 'node'. _Note: this is only supported in Angular versions >= 20.0.0_.",
308
- "type": "array",
309
- "items": {
310
- "type": "string"
311
- }
312
- },
313
- "fileReplacements": {
314
- "description": "Replace compilation source files with other compilation source files in the build.",
315
- "type": "array",
316
- "items": {
317
- "$ref": "#/definitions/fileReplacement"
318
- },
319
- "default": []
320
- },
321
- "outputPath": {
322
- "description": "Specify the output path relative to workspace root.",
323
- "oneOf": [
324
- {
325
- "type": "object",
326
- "properties": {
327
- "base": {
328
- "type": "string",
329
- "description": "Specify the output path relative to workspace root."
330
- },
331
- "browser": {
332
- "type": "string",
333
- "pattern": "^[-\\w\\.]*$",
334
- "default": "browser",
335
- "description": "The output directory name of your browser build within the output path base. Defaults to 'browser'."
336
- },
337
- "server": {
338
- "type": "string",
339
- "pattern": "^[-\\w\\.]*$",
340
- "default": "server",
341
- "description": "The output directory name of your server build within the output path base. Defaults to 'server'."
342
- },
343
- "media": {
344
- "type": "string",
345
- "pattern": "^[-\\w\\.]+$",
346
- "default": "media",
347
- "description": "The output directory name of your media files within the output browser directory. Defaults to 'media'."
348
- }
349
- },
350
- "required": ["base"],
351
- "additionalProperties": false
501
+ "index": {
502
+ "description": "Configures the generation of the application's HTML index.",
503
+ "oneOf": [
504
+ {
505
+ "type": "string",
506
+ "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."
507
+ },
508
+ {
509
+ "type": "object",
510
+ "description": "",
511
+ "properties": {
512
+ "input": {
513
+ "type": "string",
514
+ "minLength": 1,
515
+ "description": "The path of a file to use for the application's generated HTML index."
516
+ },
517
+ "output": {
518
+ "type": "string",
519
+ "minLength": 1,
520
+ "default": "index.html",
521
+ "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."
522
+ },
523
+ "preloadInitial": {
524
+ "type": "boolean",
525
+ "default": true,
526
+ "description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources."
527
+ }
528
+ },
529
+ "required": ["input"]
530
+ },
531
+ {
532
+ "const": false,
533
+ "type": "boolean",
534
+ "description": "Does not generate an `index.html` file."
535
+ }
536
+ ]
352
537
  },
353
- {
354
- "type": "string"
355
- }
356
- ]
357
- },
358
- "aot": {
359
- "type": "boolean",
360
- "description": "Build using Ahead of Time compilation.",
361
- "default": true
362
- },
363
- "sourceMap": {
364
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
365
- "default": false,
366
- "oneOf": [
367
- {
368
- "type": "object",
369
- "properties": {
370
- "scripts": {
371
- "type": "boolean",
372
- "description": "Output source maps for all scripts.",
373
- "default": true
374
- },
375
- "styles": {
376
- "type": "boolean",
377
- "description": "Output source maps for all styles.",
378
- "default": true
379
- },
380
- "hidden": {
381
- "type": "boolean",
382
- "description": "Output source maps used for error reporting tools.",
383
- "default": false
384
- },
385
- "vendor": {
386
- "type": "boolean",
387
- "description": "Resolve vendor packages source maps.",
388
- "default": false
538
+ "statsJson": {
539
+ "type": "boolean",
540
+ "description": "Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/.",
541
+ "default": false
542
+ },
543
+ "budgets": {
544
+ "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
545
+ "type": "array",
546
+ "items": {
547
+ "$ref": "#/definitions/budget"
389
548
  },
390
- "sourcesContent": {
391
- "type": "boolean",
392
- "description": "Output original source content for files within the source map. _Note: this is only supported in Angular versions >= 20.0.0_.",
393
- "default": true
394
- }
395
- },
396
- "additionalProperties": false
549
+ "default": []
397
550
  },
398
- {
399
- "type": "boolean"
400
- }
401
- ]
402
- },
403
- "baseHref": {
404
- "type": "string",
405
- "description": "Base url for the application being built."
406
- },
407
- "verbose": {
408
- "type": "boolean",
409
- "description": "Adds more details to output logging.",
410
- "default": false
411
- },
412
- "progress": {
413
- "type": "boolean",
414
- "description": "Log progress to the console while building.",
415
- "default": true
416
- },
417
- "i18nMissingTranslation": {
418
- "type": "string",
419
- "description": "How to handle missing translations for i18n.",
420
- "enum": ["warning", "error", "ignore"],
421
- "default": "warning"
422
- },
423
- "i18nDuplicateTranslation": {
424
- "type": "string",
425
- "description": "How to handle duplicate translations for i18n.",
426
- "enum": ["warning", "error", "ignore"],
427
- "default": "warning"
428
- },
429
- "localize": {
430
- "description": "Translate the bundles in one or more locales.",
431
- "oneOf": [
432
- {
433
- "type": "boolean",
434
- "description": "Translate all locales."
435
- },
436
- {
437
- "type": "array",
438
- "description": "List of locales ID's to translate.",
439
- "minItems": 1,
440
- "items": {
551
+ "webWorkerTsConfig": {
441
552
  "type": "string",
442
- "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})+)?$"
443
- }
444
- }
445
- ]
446
- },
447
- "watch": {
448
- "type": "boolean",
449
- "description": "Run build when files change.",
450
- "default": false
451
- },
452
- "outputHashing": {
453
- "type": "string",
454
- "description": "Define the output filename cache-busting hashing mode.",
455
- "default": "none",
456
- "enum": ["none", "all", "media", "bundles"]
457
- },
458
- "poll": {
459
- "type": "number",
460
- "description": "Enable and define the file watching poll time period in milliseconds."
461
- },
462
- "deleteOutputPath": {
463
- "type": "boolean",
464
- "description": "Delete the output path before building.",
465
- "default": true
466
- },
467
- "preserveSymlinks": {
468
- "type": "boolean",
469
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
470
- },
471
- "extractLicenses": {
472
- "type": "boolean",
473
- "description": "Extract all licenses in a separate file.",
474
- "default": true
475
- },
476
- "namedChunks": {
477
- "type": "boolean",
478
- "description": "Use file name for lazy loaded chunks.",
479
- "default": false
480
- },
481
- "subresourceIntegrity": {
482
- "type": "boolean",
483
- "description": "Enables the use of subresource integrity validation.",
484
- "default": false
485
- },
486
- "serviceWorker": {
487
- "description": "Generates a service worker configuration.",
488
- "default": false,
489
- "oneOf": [
490
- {
491
- "type": "string",
492
- "description": "Path to ngsw-config.json."
493
- },
494
- {
495
- "const": false,
496
- "type": "boolean",
497
- "description": "Does not generate a service worker configuration."
498
- }
499
- ]
500
- },
501
- "index": {
502
- "description": "Configures the generation of the application's HTML index.",
503
- "oneOf": [
504
- {
505
- "type": "string",
506
- "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."
507
- },
508
- {
509
- "type": "object",
510
- "description": "",
511
- "properties": {
512
- "input": {
513
- "type": "string",
514
- "minLength": 1,
515
- "description": "The path of a file to use for the application's generated HTML index."
516
- },
517
- "output": {
518
- "type": "string",
519
- "minLength": 1,
520
- "default": "index.html",
521
- "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."
522
- },
523
- "preloadInitial": {
524
- "type": "boolean",
525
- "default": true,
526
- "description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources."
527
- }
528
- },
529
- "required": ["input"]
553
+ "description": "TypeScript configuration for Web Worker modules."
530
554
  },
531
- {
532
- "const": false,
533
- "type": "boolean",
534
- "description": "Does not generate an `index.html` file."
535
- }
536
- ]
537
- },
538
- "statsJson": {
539
- "type": "boolean",
540
- "description": "Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/.",
541
- "default": false
542
- },
543
- "budgets": {
544
- "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
545
- "type": "array",
546
- "items": {
547
- "$ref": "#/definitions/budget"
548
- },
549
- "default": []
550
- },
551
- "webWorkerTsConfig": {
552
- "type": "string",
553
- "description": "TypeScript configuration for Web Worker modules."
554
- },
555
- "crossOrigin": {
556
- "type": "string",
557
- "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
558
- "default": "none",
559
- "enum": ["none", "anonymous", "use-credentials"]
560
- },
561
- "allowedCommonJsDependencies": {
562
- "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
563
- "type": "array",
564
- "items": {
565
- "type": "string"
566
- },
567
- "default": []
568
- },
569
- "prerender": {
570
- "description": "Prerender (SSG) pages of your application during build time.",
571
- "oneOf": [
572
- {
573
- "type": "boolean",
574
- "description": "Enable prerending of pages of your application during build time."
575
- },
576
- {
577
- "type": "object",
578
- "properties": {
579
- "routesFile": {
580
- "type": "string",
581
- "description": "The path to a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you want to prerender routes with parameterized URLs."
582
- },
583
- "discoverRoutes": {
584
- "type": "boolean",
585
- "description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
586
- "default": true
587
- }
588
- },
589
- "additionalProperties": false
590
- }
591
- ]
592
- },
593
- "ssr": {
594
- "description": "Server side render (SSR) pages of your application during runtime.",
595
- "default": false,
596
- "oneOf": [
597
- {
598
- "type": "boolean",
599
- "description": "Enable the server bundles to be written to disk."
600
- },
601
- {
602
- "type": "object",
603
- "properties": {
604
- "entry": {
605
- "type": "string",
606
- "description": "The server entry-point that when executed will spawn the web server."
555
+ "crossOrigin": {
556
+ "type": "string",
557
+ "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
558
+ "default": "none",
559
+ "enum": ["none", "anonymous", "use-credentials"]
560
+ },
561
+ "allowedCommonJsDependencies": {
562
+ "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
563
+ "type": "array",
564
+ "items": {
565
+ "type": "string"
607
566
  },
608
- "experimentalPlatform": {
609
- "description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules. Additionally, it is experimental, and the feature may undergo changes in future versions.",
610
- "default": "node",
611
- "enum": ["node", "neutral"]
567
+ "default": []
568
+ },
569
+ "prerender": {
570
+ "description": "Prerender (SSG) pages of your application during build time.",
571
+ "oneOf": [
572
+ {
573
+ "type": "boolean",
574
+ "description": "Enable prerending of pages of your application during build time."
575
+ },
576
+ {
577
+ "type": "object",
578
+ "properties": {
579
+ "routesFile": {
580
+ "type": "string",
581
+ "description": "The path to a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you want to prerender routes with parameterized URLs."
582
+ },
583
+ "discoverRoutes": {
584
+ "type": "boolean",
585
+ "description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
586
+ "default": true
587
+ }
588
+ },
589
+ "additionalProperties": false
590
+ }
591
+ ]
592
+ },
593
+ "ssr": {
594
+ "description": "Server side render (SSR) pages of your application during runtime.",
595
+ "default": false,
596
+ "oneOf": [
597
+ {
598
+ "type": "boolean",
599
+ "description": "Enable the server bundles to be written to disk."
600
+ },
601
+ {
602
+ "type": "object",
603
+ "properties": {
604
+ "entry": {
605
+ "type": "string",
606
+ "description": "The server entry-point that when executed will spawn the web server."
607
+ },
608
+ "experimentalPlatform": {
609
+ "description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules. Additionally, it is experimental, and the feature may undergo changes in future versions.",
610
+ "default": "node",
611
+ "enum": ["node", "neutral"]
612
+ }
613
+ },
614
+ "additionalProperties": false
615
+ }
616
+ ]
617
+ },
618
+ "appShell": {
619
+ "type": "boolean",
620
+ "description": "Generates an application shell during build time."
621
+ },
622
+ "outputMode": {
623
+ "type": "string",
624
+ "description": "Defines the build output target. 'static': Generates a static site for deployment on any static hosting service. 'server': Produces an application designed for deployment on a server that supports server-side rendering (SSR).",
625
+ "enum": ["static", "server"]
626
+ },
627
+ "buildLibsFromSource": {
628
+ "type": "boolean",
629
+ "description": "Read buildable libraries from source instead of building them separately.",
630
+ "default": true
631
+ },
632
+ "plugins": {
633
+ "description": "A list of ESBuild plugins.",
634
+ "type": "array",
635
+ "items": {
636
+ "oneOf": [
637
+ {
638
+ "type": "object",
639
+ "properties": {
640
+ "path": {
641
+ "type": "string",
642
+ "description": "The path to the plugin. Relative to the workspace root."
643
+ },
644
+ "options": {
645
+ "type": "object",
646
+ "description": "The options to provide to the plugin.",
647
+ "properties": {},
648
+ "additionalProperties": true
649
+ }
650
+ },
651
+ "additionalProperties": false,
652
+ "required": ["path"]
653
+ },
654
+ {
655
+ "type": "string",
656
+ "description": "The path to the plugin. Relative to the workspace root."
657
+ }
658
+ ]
612
659
  }
613
- },
614
- "additionalProperties": false
660
+ },
661
+ "indexHtmlTransformer": {
662
+ "description": "Path to a file exposing a default function to transform the `index.html` file.",
663
+ "type": "string"
615
664
  }
616
- ]
617
- },
618
- "appShell": {
619
- "type": "boolean",
620
- "description": "Generates an application shell during build time."
621
- },
622
- "outputMode": {
623
- "type": "string",
624
- "description": "Defines the build output target. 'static': Generates a static site for deployment on any static hosting service. 'server': Produces an application designed for deployment on a server that supports server-side rendering (SSR).",
625
- "enum": ["static", "server"]
626
665
  },
627
- "buildLibsFromSource": {
628
- "type": "boolean",
629
- "description": "Read buildable libraries from source instead of building them separately.",
630
- "default": true
631
- },
632
- "plugins": {
633
- "description": "A list of ESBuild plugins.",
634
- "type": "array",
635
- "items": {
636
- "oneOf": [
637
- {
666
+ "additionalProperties": false,
667
+ "required": ["outputPath", "tsConfig"],
668
+ "definitions": {
669
+ "assetPattern": {
670
+ "oneOf": [
671
+ {
672
+ "type": "object",
673
+ "properties": {
674
+ "followSymlinks": {
675
+ "type": "boolean",
676
+ "default": false,
677
+ "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
678
+ },
679
+ "glob": {
680
+ "type": "string",
681
+ "description": "The pattern to match."
682
+ },
683
+ "input": {
684
+ "type": "string",
685
+ "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
686
+ },
687
+ "ignore": {
688
+ "description": "An array of globs to ignore.",
689
+ "type": "array",
690
+ "items": {
691
+ "type": "string"
692
+ }
693
+ },
694
+ "output": {
695
+ "type": "string",
696
+ "default": "",
697
+ "description": "Absolute path within the output."
698
+ }
699
+ },
700
+ "additionalProperties": false,
701
+ "required": ["glob", "input"]
702
+ },
703
+ {
704
+ "type": "string"
705
+ }
706
+ ]
707
+ },
708
+ "fileReplacement": {
638
709
  "type": "object",
639
710
  "properties": {
640
- "path": {
641
- "type": "string",
642
- "description": "The path to the plugin. Relative to the workspace root."
643
- },
644
- "options": {
645
- "type": "object",
646
- "description": "The options to provide to the plugin.",
647
- "properties": {},
648
- "additionalProperties": true
649
- }
711
+ "replace": {
712
+ "type": "string",
713
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
714
+ },
715
+ "with": {
716
+ "type": "string",
717
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
718
+ }
650
719
  },
651
720
  "additionalProperties": false,
652
- "required": ["path"]
653
- },
654
- {
655
- "type": "string",
656
- "description": "The path to the plugin. Relative to the workspace root."
657
- }
658
- ]
659
- }
660
- },
661
- "indexHtmlTransformer": {
662
- "description": "Path to a file exposing a default function to transform the `index.html` file.",
663
- "type": "string"
664
- }
665
- },
666
- "additionalProperties": false,
667
- "required": ["outputPath", "tsConfig"],
668
- "definitions": {
669
- "assetPattern": {
670
- "oneOf": [
671
- {
672
- "type": "object",
673
- "properties": {
674
- "followSymlinks": {
675
- "type": "boolean",
676
- "default": false,
677
- "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
678
- },
679
- "glob": {
680
- "type": "string",
681
- "description": "The pattern to match."
682
- },
683
- "input": {
684
- "type": "string",
685
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
686
- },
687
- "ignore": {
688
- "description": "An array of globs to ignore.",
689
- "type": "array",
690
- "items": {
691
- "type": "string"
692
- }
693
- },
694
- "output": {
695
- "type": "string",
696
- "default": "",
697
- "description": "Absolute path within the output."
698
- }
699
- },
700
- "additionalProperties": false,
701
- "required": ["glob", "input"]
721
+ "required": ["replace", "with"]
702
722
  },
703
- {
704
- "type": "string"
705
- }
706
- ]
707
- },
708
- "fileReplacement": {
709
- "type": "object",
710
- "properties": {
711
- "replace": {
712
- "type": "string",
713
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
714
- },
715
- "with": {
716
- "type": "string",
717
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
718
- }
719
- },
720
- "additionalProperties": false,
721
- "required": ["replace", "with"]
722
- },
723
- "budget": {
724
- "type": "object",
725
- "properties": {
726
- "type": {
727
- "type": "string",
728
- "description": "The type of budget.",
729
- "enum": [
730
- "all",
731
- "allScript",
732
- "any",
733
- "anyScript",
734
- "anyComponentStyle",
735
- "bundle",
736
- "initial"
737
- ]
738
- },
739
- "name": {
740
- "type": "string",
741
- "description": "The name of the bundle."
742
- },
743
- "baseline": {
744
- "type": "string",
745
- "description": "The baseline size for comparison."
746
- },
747
- "maximumWarning": {
748
- "type": "string",
749
- "description": "The maximum threshold for warning relative to the baseline."
750
- },
751
- "maximumError": {
752
- "type": "string",
753
- "description": "The maximum threshold for error relative to the baseline."
754
- },
755
- "minimumWarning": {
756
- "type": "string",
757
- "description": "The minimum threshold for warning relative to the baseline."
758
- },
759
- "minimumError": {
760
- "type": "string",
761
- "description": "The minimum threshold for error relative to the baseline."
762
- },
763
- "warning": {
764
- "type": "string",
765
- "description": "The threshold for warning relative to the baseline (min & max)."
766
- },
767
- "error": {
768
- "type": "string",
769
- "description": "The threshold for error relative to the baseline (min & max)."
723
+ "budget": {
724
+ "type": "object",
725
+ "properties": {
726
+ "type": {
727
+ "type": "string",
728
+ "description": "The type of budget.",
729
+ "enum": [
730
+ "all",
731
+ "allScript",
732
+ "any",
733
+ "anyScript",
734
+ "anyComponentStyle",
735
+ "bundle",
736
+ "initial"
737
+ ]
738
+ },
739
+ "name": {
740
+ "type": "string",
741
+ "description": "The name of the bundle."
742
+ },
743
+ "baseline": {
744
+ "type": "string",
745
+ "description": "The baseline size for comparison."
746
+ },
747
+ "maximumWarning": {
748
+ "type": "string",
749
+ "description": "The maximum threshold for warning relative to the baseline."
750
+ },
751
+ "maximumError": {
752
+ "type": "string",
753
+ "description": "The maximum threshold for error relative to the baseline."
754
+ },
755
+ "minimumWarning": {
756
+ "type": "string",
757
+ "description": "The minimum threshold for warning relative to the baseline."
758
+ },
759
+ "minimumError": {
760
+ "type": "string",
761
+ "description": "The minimum threshold for error relative to the baseline."
762
+ },
763
+ "warning": {
764
+ "type": "string",
765
+ "description": "The threshold for warning relative to the baseline (min & max)."
766
+ },
767
+ "error": {
768
+ "type": "string",
769
+ "description": "The threshold for error relative to the baseline (min & max)."
770
+ }
771
+ },
772
+ "additionalProperties": false,
773
+ "required": ["type"]
770
774
  }
771
- },
772
- "additionalProperties": false,
773
- "required": ["type"]
774
775
  }
775
- }
776
776
  }