@loozo/angular-router 0.0.1 → 0.0.3

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 (40) hide show
  1. package/README.md +455 -63
  2. package/builders.json +2 -2
  3. package/fesm2022/loozo-angular-router-_core.mjs +348 -521
  4. package/fesm2022/loozo-angular-router-_core.mjs.map +1 -1
  5. package/fesm2022/loozo-angular-router-_generated.mjs +492 -617
  6. package/fesm2022/loozo-angular-router-_generated.mjs.map +1 -1
  7. package/fesm2022/loozo-angular-router.mjs +2 -6
  8. package/node/_core/src/path.d.ts +17 -0
  9. package/node/src/builders/application.js +9 -6
  10. package/node/src/builders/options.js +58 -52
  11. package/node/src/builders/serve.js +51 -8
  12. package/node/src/generation/anchor.d.ts +13 -0
  13. package/node/src/generation/anchor.js +92 -0
  14. package/node/src/generation/compiler.d.ts +6 -0
  15. package/node/src/generation/compiler.js +68 -0
  16. package/node/src/generation/emit.d.ts +3 -0
  17. package/node/src/generation/emit.js +26 -1
  18. package/node/src/generation/files.d.ts +26 -0
  19. package/node/src/generation/files.js +42 -10
  20. package/node/src/generation/filesystem.d.ts +7 -0
  21. package/node/src/generation/filesystem.js +343 -0
  22. package/node/src/generation/generate.d.ts +16 -0
  23. package/node/src/generation/generate.js +18 -6
  24. package/node/src/generation/index.d.ts +16 -0
  25. package/node/src/generation/index.js +15 -0
  26. package/node/src/generation/overlay.d.ts +3 -0
  27. package/node/src/generation/overlay.js +84 -0
  28. package/node/src/generation/selectors.d.ts +2 -0
  29. package/node/src/generation/sources.d.ts +50 -0
  30. package/node/src/generation/sources.js +109 -28
  31. package/node/src/generation/validate.d.ts +12 -0
  32. package/node/src/generation/validate.js +53 -33
  33. package/package.json +7 -2
  34. package/schemas/application.json +765 -7
  35. package/schemas/serve.json +11 -9
  36. package/types/loozo-angular-router-_core.d.ts +401 -124
  37. package/types/loozo-angular-router-_generated.d.ts +181 -44
  38. package/types/loozo-angular-router.d.ts +2 -1
  39. package/.npmignore +0 -3
  40. package/fesm2022/loozo-angular-router.mjs.map +0 -1
@@ -1,17 +1,775 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$comment": "Generated by scripts/application-schema.mjs from the @angular/build 22.2.2 application schema plus the router options. Do not edit. The @angular/build schema portions are distributed under this license:\n\nThe MIT License\n\nCopyright (c) 2010-2026 Google LLC. https://angular.dev/license\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.",
4
+ "title": "Application schema for Build Facade.",
5
+ "description": "Application builder target options",
3
6
  "type": "object",
4
- "additionalProperties": false,
5
- "required": ["tsconfig", "scanDirectories", "outDirectory", "delegateTarget"],
6
7
  "properties": {
7
- "tsconfig": { "type": "string", "minLength": 1 },
8
+ "tsconfig": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
8
12
  "scanDirectories": {
9
13
  "type": "array",
10
14
  "minItems": 1,
11
- "items": { "type": "string", "minLength": 1 }
15
+ "maxItems": 1,
16
+ "items": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ }
20
+ },
21
+ "autoDefineRoutes": {
22
+ "$comment": "Conditional validation prevents Angular addUndefinedDefaults from creating an omitted opt-in object.",
23
+ "if": true,
24
+ "then": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "properties": {
28
+ "filename": {
29
+ "type": "string",
30
+ "pattern": "^[A-Za-z0-9_$][A-Za-z0-9_$.-]*\\.ts$",
31
+ "not": {
32
+ "anyOf": [
33
+ {
34
+ "pattern": "\\.d\\.ts$"
35
+ },
36
+ {
37
+ "enum": ["route.generated.ts", "routes.generated.ts", "destinations.generated.ts"]
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ }
43
+ }
44
+ },
45
+ "outDirectory": {
46
+ "type": "string",
47
+ "minLength": 1
48
+ },
49
+ "check": {
50
+ "type": "boolean",
51
+ "default": false
52
+ },
53
+ "assets": {
54
+ "type": "array",
55
+ "description": "Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.",
56
+ "default": [],
57
+ "items": {
58
+ "$ref": "#/definitions/assetPattern"
59
+ }
60
+ },
61
+ "browser": {
62
+ "type": "string",
63
+ "description": "The full path for the browser entry point to the application, relative to the current workspace."
64
+ },
65
+ "server": {
66
+ "description": "The full path for the server entry point to the application, relative to the current workspace.",
67
+ "oneOf": [
68
+ {
69
+ "type": "string",
70
+ "description": "The full path for the server entry point to the application, relative to the current workspace."
71
+ },
72
+ {
73
+ "const": false,
74
+ "type": "boolean",
75
+ "description": "Indicates that a server entry point is not provided."
76
+ }
77
+ ]
78
+ },
79
+ "polyfills": {
80
+ "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'.",
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string",
84
+ "uniqueItems": true
85
+ },
86
+ "default": []
87
+ },
88
+ "tsConfig": {
89
+ "type": "string",
90
+ "description": "The full path for the TypeScript configuration file, relative to the current workspace."
91
+ },
92
+ "deployUrl": {
93
+ "type": "string",
94
+ "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."
95
+ },
96
+ "security": {
97
+ "description": "Security features to protect against XSS and other common attacks",
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "properties": {
101
+ "allowedHosts": {
102
+ "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.",
103
+ "type": "array",
104
+ "uniqueItems": true,
105
+ "items": {
106
+ "type": "string"
107
+ }
108
+ },
109
+ "autoCsp": {
110
+ "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.",
111
+ "default": false,
112
+ "oneOf": [
113
+ {
114
+ "type": "object",
115
+ "properties": {
116
+ "unsafeEval": {
117
+ "type": "boolean",
118
+ "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.",
119
+ "default": false
120
+ }
121
+ },
122
+ "additionalProperties": false
123
+ },
124
+ {
125
+ "type": "boolean"
126
+ }
127
+ ]
128
+ }
129
+ }
130
+ },
131
+ "scripts": {
132
+ "description": "Global scripts to be included in the build.",
133
+ "type": "array",
134
+ "default": [],
135
+ "items": {
136
+ "oneOf": [
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "input": {
141
+ "type": "string",
142
+ "description": "The file to include.",
143
+ "pattern": "\\.[cm]?jsx?$"
144
+ },
145
+ "bundleName": {
146
+ "type": "string",
147
+ "pattern": "^[\\w\\-.]*$",
148
+ "description": "The bundle name for this extra entry point."
149
+ },
150
+ "inject": {
151
+ "type": "boolean",
152
+ "description": "If the bundle will be referenced in the HTML file.",
153
+ "default": true
154
+ }
155
+ },
156
+ "additionalProperties": false,
157
+ "required": ["input"]
158
+ },
159
+ {
160
+ "type": "string",
161
+ "description": "The JavaScript/TypeScript file or package containing the file to include."
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ "styles": {
167
+ "description": "Global styles to be included in the build.",
168
+ "type": "array",
169
+ "default": [],
170
+ "items": {
171
+ "oneOf": [
172
+ {
173
+ "type": "object",
174
+ "properties": {
175
+ "input": {
176
+ "type": "string",
177
+ "description": "The file to include.",
178
+ "pattern": "\\.(?:css|scss|sass|less)$"
179
+ },
180
+ "bundleName": {
181
+ "type": "string",
182
+ "pattern": "^[\\w\\-.]*$",
183
+ "description": "The bundle name for this extra entry point."
184
+ },
185
+ "inject": {
186
+ "type": "boolean",
187
+ "description": "If the bundle will be referenced in the HTML file.",
188
+ "default": true
189
+ }
190
+ },
191
+ "additionalProperties": false,
192
+ "required": ["input"]
193
+ },
194
+ {
195
+ "type": "string",
196
+ "description": "The file to include.",
197
+ "pattern": "\\.(?:css|scss|sass|less)$"
198
+ }
199
+ ]
200
+ }
201
+ },
202
+ "inlineStyleLanguage": {
203
+ "description": "The stylesheet language to use for the application's inline component styles.",
204
+ "type": "string",
205
+ "default": "css",
206
+ "enum": ["css", "less", "sass", "scss"]
207
+ },
208
+ "stylePreprocessorOptions": {
209
+ "description": "Options to pass to style preprocessors.",
210
+ "type": "object",
211
+ "properties": {
212
+ "includePaths": {
213
+ "description": "Paths to include. Paths will be resolved to workspace root.",
214
+ "type": "array",
215
+ "items": {
216
+ "type": "string"
217
+ },
218
+ "default": []
219
+ },
220
+ "sass": {
221
+ "description": "Options to pass to the sass preprocessor.",
222
+ "type": "object",
223
+ "properties": {
224
+ "fatalDeprecations": {
225
+ "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.",
226
+ "type": "array",
227
+ "items": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ "silenceDeprecations": {
232
+ "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.",
233
+ "type": "array",
234
+ "items": {
235
+ "type": "string"
236
+ }
237
+ },
238
+ "futureDeprecations": {
239
+ "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.",
240
+ "type": "array",
241
+ "items": {
242
+ "type": "string"
243
+ }
244
+ }
245
+ },
246
+ "additionalProperties": false
247
+ }
248
+ },
249
+ "additionalProperties": false
250
+ },
251
+ "externalDependencies": {
252
+ "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. Note: `@foo/bar` marks all paths within the `@foo/bar` package as external, including sub-paths like `@foo/bar/baz`.",
253
+ "type": "array",
254
+ "items": {
255
+ "type": "string"
256
+ },
257
+ "default": []
258
+ },
259
+ "clearScreen": {
260
+ "type": "boolean",
261
+ "default": false,
262
+ "description": "Automatically clear the terminal screen during rebuilds."
263
+ },
264
+ "optimization": {
265
+ "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.",
266
+ "default": true,
267
+ "x-user-analytics": "ep.ng_optimization",
268
+ "oneOf": [
269
+ {
270
+ "type": "object",
271
+ "properties": {
272
+ "scripts": {
273
+ "type": "boolean",
274
+ "description": "Enables optimization of the scripts output.",
275
+ "default": true
276
+ },
277
+ "styles": {
278
+ "description": "Enables optimization of the styles output.",
279
+ "default": true,
280
+ "oneOf": [
281
+ {
282
+ "type": "object",
283
+ "properties": {
284
+ "minify": {
285
+ "type": "boolean",
286
+ "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
287
+ "default": true
288
+ },
289
+ "inlineCritical": {
290
+ "type": "boolean",
291
+ "description": "Extract and inline critical CSS definitions to improve first paint time.",
292
+ "default": true
293
+ },
294
+ "removeSpecialComments": {
295
+ "type": "boolean",
296
+ "description": "Remove comments in global CSS that contains '@license' or '@preserve' or that starts with '//!' or '/*!'.",
297
+ "default": true
298
+ }
299
+ },
300
+ "additionalProperties": false
301
+ },
302
+ {
303
+ "type": "boolean"
304
+ }
305
+ ]
306
+ },
307
+ "fonts": {
308
+ "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
309
+ "default": true,
310
+ "oneOf": [
311
+ {
312
+ "type": "object",
313
+ "properties": {
314
+ "inline": {
315
+ "type": "boolean",
316
+ "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.",
317
+ "default": true
318
+ }
319
+ },
320
+ "additionalProperties": false
321
+ },
322
+ {
323
+ "type": "boolean"
324
+ }
325
+ ]
326
+ }
327
+ },
328
+ "additionalProperties": false
329
+ },
330
+ {
331
+ "type": "boolean"
332
+ }
333
+ ]
334
+ },
335
+ "loader": {
336
+ "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.",
337
+ "type": "object",
338
+ "patternProperties": {
339
+ "^\\.\\S+$": {
340
+ "enum": ["text", "binary", "file", "dataurl", "base64", "empty"]
341
+ }
342
+ }
343
+ },
344
+ "define": {
345
+ "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.",
346
+ "type": "object",
347
+ "additionalProperties": {
348
+ "type": "string"
349
+ }
350
+ },
351
+ "conditions": {
352
+ "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'.",
353
+ "type": "array",
354
+ "items": {
355
+ "type": "string"
356
+ }
357
+ },
358
+ "fileReplacements": {
359
+ "description": "Replace compilation source files with other compilation source files in the build.",
360
+ "type": "array",
361
+ "items": {
362
+ "$ref": "#/definitions/fileReplacement"
363
+ },
364
+ "default": []
365
+ },
366
+ "outputPath": {
367
+ "description": "Specify the output path relative to workspace root.",
368
+ "oneOf": [
369
+ {
370
+ "type": "object",
371
+ "properties": {
372
+ "base": {
373
+ "type": "string",
374
+ "description": "Specify the output path relative to workspace root."
375
+ },
376
+ "browser": {
377
+ "type": "string",
378
+ "pattern": "^[-\\w\\.]*$",
379
+ "default": "browser",
380
+ "description": "The output directory name of your browser build within the output path base. Defaults to 'browser'."
381
+ },
382
+ "server": {
383
+ "type": "string",
384
+ "pattern": "^[-\\w\\.]*$",
385
+ "default": "server",
386
+ "description": "The output directory name of your server build within the output path base. Defaults to 'server'."
387
+ },
388
+ "media": {
389
+ "type": "string",
390
+ "pattern": "^[-\\w\\.]+$",
391
+ "default": "media",
392
+ "description": "The output directory name of your media files within the output browser directory. Defaults to 'media'."
393
+ }
394
+ },
395
+ "required": ["base"],
396
+ "additionalProperties": false
397
+ },
398
+ {
399
+ "type": "string"
400
+ }
401
+ ]
402
+ },
403
+ "aot": {
404
+ "type": "boolean",
405
+ "description": "Build using Ahead of Time compilation.",
406
+ "x-user-analytics": "ep.ng_aot",
407
+ "default": true
408
+ },
409
+ "sourceMap": {
410
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
411
+ "default": false,
412
+ "oneOf": [
413
+ {
414
+ "type": "object",
415
+ "properties": {
416
+ "scripts": {
417
+ "type": "boolean",
418
+ "description": "Output source maps for all scripts.",
419
+ "default": true
420
+ },
421
+ "styles": {
422
+ "type": "boolean",
423
+ "description": "Output source maps for all styles.",
424
+ "default": true
425
+ },
426
+ "hidden": {
427
+ "type": "boolean",
428
+ "description": "Output source maps used for error reporting tools.",
429
+ "default": false
430
+ },
431
+ "vendor": {
432
+ "type": "boolean",
433
+ "description": "Resolve vendor packages source maps.",
434
+ "default": false
435
+ },
436
+ "sourcesContent": {
437
+ "type": "boolean",
438
+ "description": "Output original source content for files within the source map.",
439
+ "default": true
440
+ }
441
+ },
442
+ "additionalProperties": false
443
+ },
444
+ {
445
+ "type": "boolean"
446
+ }
447
+ ]
448
+ },
449
+ "baseHref": {
450
+ "type": "string",
451
+ "description": "Base url for the application being built."
452
+ },
453
+ "verbose": {
454
+ "type": "boolean",
455
+ "description": "Adds more details to output logging.",
456
+ "default": false
457
+ },
458
+ "progress": {
459
+ "type": "boolean",
460
+ "description": "Log progress to the console while building.",
461
+ "default": true
462
+ },
463
+ "i18nMissingTranslation": {
464
+ "type": "string",
465
+ "description": "How to handle missing translations for i18n.",
466
+ "enum": ["warning", "error", "ignore"],
467
+ "default": "warning"
468
+ },
469
+ "i18nDuplicateTranslation": {
470
+ "type": "string",
471
+ "description": "How to handle duplicate translations for i18n.",
472
+ "enum": ["warning", "error", "ignore"],
473
+ "default": "warning"
474
+ },
475
+ "localize": {
476
+ "description": "Translate the bundles in one or more locales.",
477
+ "oneOf": [
478
+ {
479
+ "type": "boolean",
480
+ "description": "Translate all locales."
481
+ },
482
+ {
483
+ "type": "array",
484
+ "description": "List of locales ID's to translate.",
485
+ "minItems": 1,
486
+ "items": {
487
+ "type": "string",
488
+ "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})+)?$"
489
+ }
490
+ }
491
+ ]
492
+ },
493
+ "watch": {
494
+ "type": "boolean",
495
+ "description": "Run build when files change.",
496
+ "default": false
497
+ },
498
+ "outputHashing": {
499
+ "type": "string",
500
+ "description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles.",
501
+ "default": "none",
502
+ "enum": ["none", "all", "media", "bundles"]
503
+ },
504
+ "poll": {
505
+ "type": "number",
506
+ "description": "Enable and define the file watching poll time period in milliseconds."
507
+ },
508
+ "deleteOutputPath": {
509
+ "type": "boolean",
510
+ "description": "Delete the output path before building.",
511
+ "default": true
512
+ },
513
+ "preserveSymlinks": {
514
+ "type": "boolean",
515
+ "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
516
+ },
517
+ "extractLicenses": {
518
+ "type": "boolean",
519
+ "description": "Extract all licenses in a separate file.",
520
+ "default": true
521
+ },
522
+ "namedChunks": {
523
+ "type": "boolean",
524
+ "description": "Use file name for lazy loaded chunks.",
525
+ "default": false
526
+ },
527
+ "subresourceIntegrity": {
528
+ "type": "boolean",
529
+ "description": "Enables the use of subresource integrity validation.",
530
+ "default": false
531
+ },
532
+ "serviceWorker": {
533
+ "description": "Generates a service worker configuration.",
534
+ "default": false,
535
+ "oneOf": [
536
+ {
537
+ "type": "string",
538
+ "description": "Path to ngsw-config.json."
539
+ },
540
+ {
541
+ "const": false,
542
+ "type": "boolean",
543
+ "description": "Does not generate a service worker configuration."
544
+ }
545
+ ]
546
+ },
547
+ "index": {
548
+ "description": "Configures the generation of the application's HTML index.",
549
+ "oneOf": [
550
+ {
551
+ "type": "string",
552
+ "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."
553
+ },
554
+ {
555
+ "type": "object",
556
+ "description": "",
557
+ "properties": {
558
+ "input": {
559
+ "type": "string",
560
+ "minLength": 1,
561
+ "description": "The path of a file to use for the application's generated HTML index."
562
+ },
563
+ "output": {
564
+ "type": "string",
565
+ "minLength": 1,
566
+ "default": "index.html",
567
+ "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."
568
+ },
569
+ "preloadInitial": {
570
+ "type": "boolean",
571
+ "description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources. Defaults to false when a service worker is enabled; otherwise true."
572
+ }
573
+ },
574
+ "required": ["input"]
575
+ },
576
+ {
577
+ "const": false,
578
+ "type": "boolean",
579
+ "description": "Does not generate an `index.html` file."
580
+ }
581
+ ]
582
+ },
583
+ "statsJson": {
584
+ "type": "boolean",
585
+ "description": "Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/.",
586
+ "default": false
587
+ },
588
+ "budgets": {
589
+ "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
590
+ "type": "array",
591
+ "items": {
592
+ "$ref": "#/definitions/budget"
593
+ },
594
+ "default": []
595
+ },
596
+ "webWorkerTsConfig": {
597
+ "type": "string",
598
+ "description": "TypeScript configuration for Web Worker modules."
599
+ },
600
+ "crossOrigin": {
601
+ "type": "string",
602
+ "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
603
+ "default": "none",
604
+ "enum": ["none", "anonymous", "use-credentials"]
605
+ },
606
+ "allowedCommonJsDependencies": {
607
+ "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
608
+ "type": "array",
609
+ "items": {
610
+ "type": "string"
611
+ },
612
+ "default": []
613
+ },
614
+ "prerender": {
615
+ "description": "Prerender (SSG) pages of your application during build time.",
616
+ "oneOf": [
617
+ {
618
+ "type": "boolean",
619
+ "description": "Enable prerending of pages of your application during build time."
620
+ },
621
+ {
622
+ "type": "object",
623
+ "properties": {
624
+ "routesFile": {
625
+ "type": "string",
626
+ "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."
627
+ },
628
+ "discoverRoutes": {
629
+ "type": "boolean",
630
+ "description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
631
+ "default": true
632
+ }
633
+ },
634
+ "additionalProperties": false
635
+ }
636
+ ]
637
+ },
638
+ "ssr": {
639
+ "description": "Server side render (SSR) pages of your application during runtime.",
640
+ "default": false,
641
+ "oneOf": [
642
+ {
643
+ "type": "boolean",
644
+ "description": "Enable the server bundles to be written to disk."
645
+ },
646
+ {
647
+ "type": "object",
648
+ "properties": {
649
+ "entry": {
650
+ "type": "string",
651
+ "description": "The server entry-point that when executed will spawn the web server."
652
+ },
653
+ "platform": {
654
+ "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.",
655
+ "default": "node",
656
+ "enum": ["node", "neutral"]
657
+ }
658
+ },
659
+ "additionalProperties": false
660
+ }
661
+ ]
662
+ },
663
+ "appShell": {
664
+ "type": "boolean",
665
+ "description": "Generates an application shell during build time."
666
+ },
667
+ "outputMode": {
668
+ "type": "string",
669
+ "description": "Defines the type of build output artifact. 'static': Generates a static site build artifact for deployment on any static hosting service. 'server': Generates a server application build artifact, required for applications using hybrid rendering or APIs.",
670
+ "enum": ["static", "server"]
671
+ }
672
+ },
673
+ "additionalProperties": false,
674
+ "required": ["tsconfig", "scanDirectories", "outDirectory", "tsConfig"],
675
+ "definitions": {
676
+ "assetPattern": {
677
+ "oneOf": [
678
+ {
679
+ "type": "object",
680
+ "properties": {
681
+ "followSymlinks": {
682
+ "type": "boolean",
683
+ "default": false,
684
+ "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
685
+ },
686
+ "glob": {
687
+ "type": "string",
688
+ "description": "The pattern to match."
689
+ },
690
+ "input": {
691
+ "type": "string",
692
+ "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
693
+ },
694
+ "ignore": {
695
+ "description": "An array of globs to ignore.",
696
+ "type": "array",
697
+ "items": {
698
+ "type": "string"
699
+ }
700
+ },
701
+ "output": {
702
+ "type": "string",
703
+ "default": "",
704
+ "description": "Absolute path within the output."
705
+ }
706
+ },
707
+ "additionalProperties": false,
708
+ "required": ["glob", "input"]
709
+ },
710
+ {
711
+ "type": "string"
712
+ }
713
+ ]
714
+ },
715
+ "fileReplacement": {
716
+ "type": "object",
717
+ "properties": {
718
+ "replace": {
719
+ "type": "string",
720
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
721
+ },
722
+ "with": {
723
+ "type": "string",
724
+ "pattern": "\\.(([cm]?[jt])sx?|json)$"
725
+ }
726
+ },
727
+ "additionalProperties": false,
728
+ "required": ["replace", "with"]
12
729
  },
13
- "outDirectory": { "type": "string", "minLength": 1 },
14
- "delegateTarget": { "type": "string", "minLength": 1 },
15
- "check": { "type": "boolean", "default": false }
730
+ "budget": {
731
+ "type": "object",
732
+ "properties": {
733
+ "type": {
734
+ "type": "string",
735
+ "description": "The type of budget.",
736
+ "enum": ["all", "allScript", "any", "anyScript", "anyComponentStyle", "bundle", "initial"]
737
+ },
738
+ "name": {
739
+ "type": "string",
740
+ "description": "The name of the bundle."
741
+ },
742
+ "baseline": {
743
+ "type": "string",
744
+ "description": "The baseline size for comparison."
745
+ },
746
+ "maximumWarning": {
747
+ "type": "string",
748
+ "description": "The maximum threshold for warning relative to the baseline."
749
+ },
750
+ "maximumError": {
751
+ "type": "string",
752
+ "description": "The maximum threshold for error relative to the baseline."
753
+ },
754
+ "minimumWarning": {
755
+ "type": "string",
756
+ "description": "The minimum threshold for warning relative to the baseline."
757
+ },
758
+ "minimumError": {
759
+ "type": "string",
760
+ "description": "The minimum threshold for error relative to the baseline."
761
+ },
762
+ "warning": {
763
+ "type": "string",
764
+ "description": "The threshold for warning relative to the baseline (min & max)."
765
+ },
766
+ "error": {
767
+ "type": "string",
768
+ "description": "The threshold for error relative to the baseline (min & max)."
769
+ }
770
+ },
771
+ "additionalProperties": false,
772
+ "required": ["type"]
773
+ }
16
774
  }
17
775
  }