@angular/cli 14.1.0-next.0 → 14.1.0-next.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 (38) hide show
  1. package/lib/cli/index.js +2 -2
  2. package/lib/config/schema.json +667 -5
  3. package/lib/init.js +4 -2
  4. package/package.json +14 -14
  5. package/src/analytics/analytics.js +3 -0
  6. package/src/command-builder/architect-base-command-module.d.ts +1 -1
  7. package/src/command-builder/architect-base-command-module.js +4 -1
  8. package/src/command-builder/command-module.d.ts +3 -1
  9. package/src/command-builder/command-module.js +26 -3
  10. package/src/command-builder/command-runner.js +3 -22
  11. package/src/command-builder/schematics-command-module.d.ts +1 -1
  12. package/src/command-builder/schematics-command-module.js +3 -1
  13. package/src/command-builder/utilities/command.js +13 -2
  14. package/src/command-builder/utilities/schematic-engine-host.js +2 -0
  15. package/src/commands/add/cli.js +5 -0
  16. package/src/commands/cache/clean/cli.d.ts +1 -1
  17. package/src/commands/cache/clean/cli.js +1 -1
  18. package/src/commands/cache/cli.d.ts +1 -1
  19. package/src/commands/cache/cli.js +1 -1
  20. package/src/commands/cache/info/cli.d.ts +1 -1
  21. package/src/commands/cache/info/cli.js +1 -1
  22. package/src/commands/cache/settings/cli.d.ts +2 -2
  23. package/src/commands/cache/settings/cli.js +2 -2
  24. package/src/commands/completion/cli.js +2 -0
  25. package/src/commands/config/cli.js +2 -17
  26. package/src/commands/new/cli.d.ts +1 -1
  27. package/src/commands/new/cli.js +2 -2
  28. package/src/commands/run/cli.d.ts +1 -1
  29. package/src/commands/run/cli.js +11 -1
  30. package/src/commands/update/cli.d.ts +1 -1
  31. package/src/commands/update/cli.js +11 -1
  32. package/src/commands/update/schematic/index.js +3 -0
  33. package/src/utilities/color.js +0 -1
  34. package/src/utilities/completion.js +3 -0
  35. package/src/utilities/config.d.ts +1 -1
  36. package/src/utilities/config.js +9 -2
  37. package/src/utilities/error.d.ts +10 -0
  38. package/src/utilities/error.js +18 -0
@@ -74,7 +74,8 @@
74
74
  "description": "Show a warning when the global version is newer than the local one.",
75
75
  "type": "boolean"
76
76
  }
77
- }
77
+ },
78
+ "additionalProperties": false
78
79
  },
79
80
  "analytics": {
80
81
  "type": [
@@ -96,7 +97,8 @@
96
97
  "type": "string",
97
98
  "format": "uuid"
98
99
  }
99
- }
100
+ },
101
+ "additionalProperties": false
100
102
  },
101
103
  "cache": {
102
104
  "description": "Control disk cache.",
@@ -119,7 +121,82 @@
119
121
  "description": "Cache base path.",
120
122
  "type": "string"
121
123
  }
124
+ },
125
+ "additionalProperties": false
126
+ }
127
+ },
128
+ "additionalProperties": false
129
+ },
130
+ "cliGlobalOptions": {
131
+ "type": "object",
132
+ "properties": {
133
+ "defaultCollection": {
134
+ "description": "The default schematics collection to use.",
135
+ "type": "string",
136
+ "x-deprecated": "Use 'schematicCollections' instead."
137
+ },
138
+ "schematicCollections": {
139
+ "type": "array",
140
+ "description": "The list of schematic collections to use.",
141
+ "items": {
142
+ "type": "string",
143
+ "uniqueItems": true
122
144
  }
145
+ },
146
+ "packageManager": {
147
+ "description": "Specify which package manager tool to use.",
148
+ "type": "string",
149
+ "enum": [
150
+ "npm",
151
+ "cnpm",
152
+ "yarn",
153
+ "pnpm"
154
+ ]
155
+ },
156
+ "warnings": {
157
+ "description": "Control CLI specific console warnings",
158
+ "type": "object",
159
+ "properties": {
160
+ "versionMismatch": {
161
+ "description": "Show a warning when the global version is newer than the local one.",
162
+ "type": "boolean"
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ },
167
+ "analytics": {
168
+ "type": [
169
+ "boolean",
170
+ "string"
171
+ ],
172
+ "description": "Share anonymous usage data with the Angular Team at Google."
173
+ },
174
+ "analyticsSharing": {
175
+ "type": "object",
176
+ "properties": {
177
+ "tracking": {
178
+ "description": "Analytics sharing info tracking ID.",
179
+ "type": "string",
180
+ "pattern": "^(GA|UA)?-\\d+-\\d+$"
181
+ },
182
+ "uuid": {
183
+ "description": "Analytics sharing info universally unique identifier.",
184
+ "type": "string",
185
+ "format": "uuid"
186
+ }
187
+ },
188
+ "additionalProperties": false
189
+ },
190
+ "completion": {
191
+ "type": "object",
192
+ "description": "Angular CLI completion settings.",
193
+ "properties": {
194
+ "prompted": {
195
+ "type": "boolean",
196
+ "description": "Whether the user has been prompted to add completion command prompt."
197
+ }
198
+ },
199
+ "additionalProperties": false
123
200
  }
124
201
  },
125
202
  "additionalProperties": false
@@ -372,6 +449,7 @@
372
449
  "enum": [
373
450
  "@angular-devkit/build-angular:app-shell",
374
451
  "@angular-devkit/build-angular:browser",
452
+ "@angular-devkit/build-angular:browser-esbuild",
375
453
  "@angular-devkit/build-angular:dev-server",
376
454
  "@angular-devkit/build-angular:extract-i18n",
377
455
  "@angular-devkit/build-angular:karma",
@@ -445,6 +523,28 @@
445
523
  }
446
524
  }
447
525
  },
526
+ {
527
+ "type": "object",
528
+ "additionalProperties": false,
529
+ "properties": {
530
+ "builder": {
531
+ "const": "@angular-devkit/build-angular:browser-esbuild"
532
+ },
533
+ "defaultConfiguration": {
534
+ "type": "string",
535
+ "description": "A default named configuration to use when a target configuration is not provided."
536
+ },
537
+ "options": {
538
+ "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema"
539
+ },
540
+ "configurations": {
541
+ "type": "object",
542
+ "additionalProperties": {
543
+ "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema"
544
+ }
545
+ }
546
+ }
547
+ },
448
548
  {
449
549
  "type": "object",
450
550
  "additionalProperties": false,
@@ -585,14 +685,13 @@
585
685
  "type": "object",
586
686
  "properties": {
587
687
  "$schema": {
588
- "type": "string",
589
- "format": "uri"
688
+ "type": "string"
590
689
  },
591
690
  "version": {
592
691
  "$ref": "#/definitions/fileVersion"
593
692
  },
594
693
  "cli": {
595
- "$ref": "#/definitions/cliOptions"
694
+ "$ref": "#/definitions/cliGlobalOptions"
596
695
  },
597
696
  "schematics": {
598
697
  "$ref": "#/definitions/schematicOptions"
@@ -2176,6 +2275,569 @@
2176
2275
  }
2177
2276
  }
2178
2277
  },
2278
+ "AngularDevkitBuildAngularBuildersBrowserEsbuildSchema": {
2279
+ "title": "Esbuild browser schema for Build Facade.",
2280
+ "description": "Browser target options",
2281
+ "type": "object",
2282
+ "properties": {
2283
+ "assets": {
2284
+ "type": "array",
2285
+ "description": "List of static application assets.",
2286
+ "default": [],
2287
+ "items": {
2288
+ "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/assetPattern"
2289
+ }
2290
+ },
2291
+ "main": {
2292
+ "type": "string",
2293
+ "description": "The full path for the main entry point to the app, relative to the current workspace."
2294
+ },
2295
+ "polyfills": {
2296
+ "type": "string",
2297
+ "description": "The full path for the polyfills file, relative to the current workspace."
2298
+ },
2299
+ "tsConfig": {
2300
+ "type": "string",
2301
+ "description": "The full path for the TypeScript configuration file, relative to the current workspace."
2302
+ },
2303
+ "scripts": {
2304
+ "description": "Global scripts to be included in the build.",
2305
+ "type": "array",
2306
+ "default": [],
2307
+ "items": {
2308
+ "oneOf": [
2309
+ {
2310
+ "type": "object",
2311
+ "properties": {
2312
+ "input": {
2313
+ "type": "string",
2314
+ "description": "The file to include.",
2315
+ "pattern": "\\.[cm]?jsx?$"
2316
+ },
2317
+ "bundleName": {
2318
+ "type": "string",
2319
+ "pattern": "^[\\w\\-.]*$",
2320
+ "description": "The bundle name for this extra entry point."
2321
+ },
2322
+ "inject": {
2323
+ "type": "boolean",
2324
+ "description": "If the bundle will be referenced in the HTML file.",
2325
+ "default": true
2326
+ }
2327
+ },
2328
+ "additionalProperties": false
2329
+ },
2330
+ {
2331
+ "type": "string",
2332
+ "description": "The file to include.",
2333
+ "pattern": "\\.[cm]?jsx?$"
2334
+ }
2335
+ ]
2336
+ }
2337
+ },
2338
+ "styles": {
2339
+ "description": "Global styles to be included in the build.",
2340
+ "type": "array",
2341
+ "default": [],
2342
+ "items": {
2343
+ "oneOf": [
2344
+ {
2345
+ "type": "object",
2346
+ "properties": {
2347
+ "input": {
2348
+ "type": "string",
2349
+ "description": "The file to include.",
2350
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
2351
+ },
2352
+ "bundleName": {
2353
+ "type": "string",
2354
+ "pattern": "^[\\w\\-.]*$",
2355
+ "description": "The bundle name for this extra entry point."
2356
+ },
2357
+ "inject": {
2358
+ "type": "boolean",
2359
+ "description": "If the bundle will be referenced in the HTML file.",
2360
+ "default": true
2361
+ }
2362
+ },
2363
+ "additionalProperties": false
2364
+ },
2365
+ {
2366
+ "type": "string",
2367
+ "description": "The file to include.",
2368
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
2369
+ }
2370
+ ]
2371
+ }
2372
+ },
2373
+ "inlineStyleLanguage": {
2374
+ "description": "The stylesheet language to use for the application's inline component styles.",
2375
+ "type": "string",
2376
+ "default": "css",
2377
+ "enum": [
2378
+ "css",
2379
+ "less",
2380
+ "sass",
2381
+ "scss"
2382
+ ]
2383
+ },
2384
+ "stylePreprocessorOptions": {
2385
+ "description": "Options to pass to style preprocessors.",
2386
+ "type": "object",
2387
+ "properties": {
2388
+ "includePaths": {
2389
+ "description": "Paths to include. Paths will be resolved to workspace root.",
2390
+ "type": "array",
2391
+ "items": {
2392
+ "type": "string"
2393
+ },
2394
+ "default": []
2395
+ }
2396
+ },
2397
+ "additionalProperties": false
2398
+ },
2399
+ "externalDependencies": {
2400
+ "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.",
2401
+ "type": "array",
2402
+ "items": {
2403
+ "type": "string"
2404
+ },
2405
+ "default": []
2406
+ },
2407
+ "optimization": {
2408
+ "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.io/guide/workspace-config#optimization-configuration.",
2409
+ "x-user-analytics": 16,
2410
+ "default": true,
2411
+ "oneOf": [
2412
+ {
2413
+ "type": "object",
2414
+ "properties": {
2415
+ "scripts": {
2416
+ "type": "boolean",
2417
+ "description": "Enables optimization of the scripts output.",
2418
+ "default": true
2419
+ },
2420
+ "styles": {
2421
+ "description": "Enables optimization of the styles output.",
2422
+ "default": true,
2423
+ "oneOf": [
2424
+ {
2425
+ "type": "object",
2426
+ "properties": {
2427
+ "minify": {
2428
+ "type": "boolean",
2429
+ "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
2430
+ "default": true
2431
+ },
2432
+ "inlineCritical": {
2433
+ "type": "boolean",
2434
+ "description": "Extract and inline critical CSS definitions to improve first paint time.",
2435
+ "default": true
2436
+ }
2437
+ },
2438
+ "additionalProperties": false
2439
+ },
2440
+ {
2441
+ "type": "boolean"
2442
+ }
2443
+ ]
2444
+ },
2445
+ "fonts": {
2446
+ "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
2447
+ "default": true,
2448
+ "oneOf": [
2449
+ {
2450
+ "type": "object",
2451
+ "properties": {
2452
+ "inline": {
2453
+ "type": "boolean",
2454
+ "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.",
2455
+ "default": true
2456
+ }
2457
+ },
2458
+ "additionalProperties": false
2459
+ },
2460
+ {
2461
+ "type": "boolean"
2462
+ }
2463
+ ]
2464
+ }
2465
+ },
2466
+ "additionalProperties": false
2467
+ },
2468
+ {
2469
+ "type": "boolean"
2470
+ }
2471
+ ]
2472
+ },
2473
+ "fileReplacements": {
2474
+ "description": "Replace compilation source files with other compilation source files in the build.",
2475
+ "type": "array",
2476
+ "items": {
2477
+ "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/fileReplacement"
2478
+ },
2479
+ "default": []
2480
+ },
2481
+ "outputPath": {
2482
+ "type": "string",
2483
+ "description": "The full path for the new output directory, relative to the current workspace.\nBy default, writes output to a folder named dist/ in the current project."
2484
+ },
2485
+ "resourcesOutputPath": {
2486
+ "type": "string",
2487
+ "description": "The path where style resources will be placed, relative to outputPath."
2488
+ },
2489
+ "aot": {
2490
+ "type": "boolean",
2491
+ "description": "Build using Ahead of Time compilation.",
2492
+ "x-user-analytics": 13,
2493
+ "default": true
2494
+ },
2495
+ "sourceMap": {
2496
+ "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
2497
+ "default": false,
2498
+ "oneOf": [
2499
+ {
2500
+ "type": "object",
2501
+ "properties": {
2502
+ "scripts": {
2503
+ "type": "boolean",
2504
+ "description": "Output source maps for all scripts.",
2505
+ "default": true
2506
+ },
2507
+ "styles": {
2508
+ "type": "boolean",
2509
+ "description": "Output source maps for all styles.",
2510
+ "default": true
2511
+ },
2512
+ "hidden": {
2513
+ "type": "boolean",
2514
+ "description": "Output source maps used for error reporting tools.",
2515
+ "default": false
2516
+ },
2517
+ "vendor": {
2518
+ "type": "boolean",
2519
+ "description": "Resolve vendor packages source maps.",
2520
+ "default": false
2521
+ }
2522
+ },
2523
+ "additionalProperties": false
2524
+ },
2525
+ {
2526
+ "type": "boolean"
2527
+ }
2528
+ ]
2529
+ },
2530
+ "vendorChunk": {
2531
+ "type": "boolean",
2532
+ "description": "Generate a seperate bundle containing only vendor libraries. This option should only used for development.",
2533
+ "default": false
2534
+ },
2535
+ "commonChunk": {
2536
+ "type": "boolean",
2537
+ "description": "Generate a seperate bundle containing code used across multiple bundles.",
2538
+ "default": true
2539
+ },
2540
+ "baseHref": {
2541
+ "type": "string",
2542
+ "description": "Base url for the application being built."
2543
+ },
2544
+ "deployUrl": {
2545
+ "type": "string",
2546
+ "description": "URL where files will be deployed.",
2547
+ "x-deprecated": "Use \"baseHref\" option, \"APP_BASE_HREF\" DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
2548
+ },
2549
+ "verbose": {
2550
+ "type": "boolean",
2551
+ "description": "Adds more details to output logging.",
2552
+ "default": false
2553
+ },
2554
+ "progress": {
2555
+ "type": "boolean",
2556
+ "description": "Log progress to the console while building.",
2557
+ "default": true
2558
+ },
2559
+ "i18nMissingTranslation": {
2560
+ "type": "string",
2561
+ "description": "How to handle missing translations for i18n.",
2562
+ "enum": [
2563
+ "warning",
2564
+ "error",
2565
+ "ignore"
2566
+ ],
2567
+ "default": "warning"
2568
+ },
2569
+ "i18nDuplicateTranslation": {
2570
+ "type": "string",
2571
+ "description": "How to handle duplicate translations for i18n.",
2572
+ "enum": [
2573
+ "warning",
2574
+ "error",
2575
+ "ignore"
2576
+ ],
2577
+ "default": "warning"
2578
+ },
2579
+ "localize": {
2580
+ "description": "Translate the bundles in one or more locales.",
2581
+ "oneOf": [
2582
+ {
2583
+ "type": "boolean",
2584
+ "description": "Translate all locales."
2585
+ },
2586
+ {
2587
+ "type": "array",
2588
+ "description": "List of locales ID's to translate.",
2589
+ "minItems": 1,
2590
+ "items": {
2591
+ "type": "string",
2592
+ "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})+)?$"
2593
+ }
2594
+ }
2595
+ ]
2596
+ },
2597
+ "watch": {
2598
+ "type": "boolean",
2599
+ "description": "Run build when files change.",
2600
+ "default": false
2601
+ },
2602
+ "outputHashing": {
2603
+ "type": "string",
2604
+ "description": "Define the output filename cache-busting hashing mode.",
2605
+ "default": "none",
2606
+ "enum": [
2607
+ "none",
2608
+ "all",
2609
+ "media",
2610
+ "bundles"
2611
+ ]
2612
+ },
2613
+ "poll": {
2614
+ "type": "number",
2615
+ "description": "Enable and define the file watching poll time period in milliseconds."
2616
+ },
2617
+ "deleteOutputPath": {
2618
+ "type": "boolean",
2619
+ "description": "Delete the output path before building.",
2620
+ "default": true
2621
+ },
2622
+ "preserveSymlinks": {
2623
+ "type": "boolean",
2624
+ "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
2625
+ },
2626
+ "extractLicenses": {
2627
+ "type": "boolean",
2628
+ "description": "Extract all licenses in a separate file.",
2629
+ "default": true
2630
+ },
2631
+ "buildOptimizer": {
2632
+ "type": "boolean",
2633
+ "description": "Enables advanced build optimizations when using the 'aot' option.",
2634
+ "default": true
2635
+ },
2636
+ "namedChunks": {
2637
+ "type": "boolean",
2638
+ "description": "Use file name for lazy loaded chunks.",
2639
+ "default": false
2640
+ },
2641
+ "subresourceIntegrity": {
2642
+ "type": "boolean",
2643
+ "description": "Enables the use of subresource integrity validation.",
2644
+ "default": false
2645
+ },
2646
+ "serviceWorker": {
2647
+ "type": "boolean",
2648
+ "description": "Generates a service worker config for production builds.",
2649
+ "default": false
2650
+ },
2651
+ "ngswConfigPath": {
2652
+ "type": "string",
2653
+ "description": "Path to ngsw-config.json."
2654
+ },
2655
+ "index": {
2656
+ "description": "Configures the generation of the application's HTML index.",
2657
+ "oneOf": [
2658
+ {
2659
+ "type": "string",
2660
+ "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."
2661
+ },
2662
+ {
2663
+ "type": "object",
2664
+ "description": "",
2665
+ "properties": {
2666
+ "input": {
2667
+ "type": "string",
2668
+ "minLength": 1,
2669
+ "description": "The path of a file to use for the application's generated HTML index."
2670
+ },
2671
+ "output": {
2672
+ "type": "string",
2673
+ "minLength": 1,
2674
+ "default": "index.html",
2675
+ "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."
2676
+ }
2677
+ }
2678
+ }
2679
+ ]
2680
+ },
2681
+ "statsJson": {
2682
+ "type": "boolean",
2683
+ "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
2684
+ "default": false
2685
+ },
2686
+ "budgets": {
2687
+ "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
2688
+ "type": "array",
2689
+ "items": {
2690
+ "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/budget"
2691
+ },
2692
+ "default": []
2693
+ },
2694
+ "webWorkerTsConfig": {
2695
+ "type": "string",
2696
+ "description": "TypeScript configuration for Web Worker modules."
2697
+ },
2698
+ "crossOrigin": {
2699
+ "type": "string",
2700
+ "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
2701
+ "default": "none",
2702
+ "enum": [
2703
+ "none",
2704
+ "anonymous",
2705
+ "use-credentials"
2706
+ ]
2707
+ },
2708
+ "allowedCommonJsDependencies": {
2709
+ "description": "A list of CommonJS packages that are allowed to be used without a build time warning.",
2710
+ "type": "array",
2711
+ "items": {
2712
+ "type": "string"
2713
+ },
2714
+ "default": []
2715
+ }
2716
+ },
2717
+ "additionalProperties": false,
2718
+ "definitions": {
2719
+ "assetPattern": {
2720
+ "oneOf": [
2721
+ {
2722
+ "type": "object",
2723
+ "properties": {
2724
+ "followSymlinks": {
2725
+ "type": "boolean",
2726
+ "default": false,
2727
+ "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
2728
+ },
2729
+ "glob": {
2730
+ "type": "string",
2731
+ "description": "The pattern to match."
2732
+ },
2733
+ "input": {
2734
+ "type": "string",
2735
+ "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
2736
+ },
2737
+ "ignore": {
2738
+ "description": "An array of globs to ignore.",
2739
+ "type": "array",
2740
+ "items": {
2741
+ "type": "string"
2742
+ }
2743
+ },
2744
+ "output": {
2745
+ "type": "string",
2746
+ "description": "Absolute path within the output."
2747
+ }
2748
+ },
2749
+ "additionalProperties": false
2750
+ },
2751
+ {
2752
+ "type": "string"
2753
+ }
2754
+ ]
2755
+ },
2756
+ "fileReplacement": {
2757
+ "oneOf": [
2758
+ {
2759
+ "type": "object",
2760
+ "properties": {
2761
+ "src": {
2762
+ "type": "string",
2763
+ "pattern": "\\.(([cm]?j|t)sx?|json)$"
2764
+ },
2765
+ "replaceWith": {
2766
+ "type": "string",
2767
+ "pattern": "\\.(([cm]?j|t)sx?|json)$"
2768
+ }
2769
+ },
2770
+ "additionalProperties": false
2771
+ },
2772
+ {
2773
+ "type": "object",
2774
+ "properties": {
2775
+ "replace": {
2776
+ "type": "string",
2777
+ "pattern": "\\.(([cm]?j|t)sx?|json)$"
2778
+ },
2779
+ "with": {
2780
+ "type": "string",
2781
+ "pattern": "\\.(([cm]?j|t)sx?|json)$"
2782
+ }
2783
+ },
2784
+ "additionalProperties": false
2785
+ }
2786
+ ]
2787
+ },
2788
+ "budget": {
2789
+ "type": "object",
2790
+ "properties": {
2791
+ "type": {
2792
+ "type": "string",
2793
+ "description": "The type of budget.",
2794
+ "enum": [
2795
+ "all",
2796
+ "allScript",
2797
+ "any",
2798
+ "anyScript",
2799
+ "anyComponentStyle",
2800
+ "bundle",
2801
+ "initial"
2802
+ ]
2803
+ },
2804
+ "name": {
2805
+ "type": "string",
2806
+ "description": "The name of the bundle."
2807
+ },
2808
+ "baseline": {
2809
+ "type": "string",
2810
+ "description": "The baseline size for comparison."
2811
+ },
2812
+ "maximumWarning": {
2813
+ "type": "string",
2814
+ "description": "The maximum threshold for warning relative to the baseline."
2815
+ },
2816
+ "maximumError": {
2817
+ "type": "string",
2818
+ "description": "The maximum threshold for error relative to the baseline."
2819
+ },
2820
+ "minimumWarning": {
2821
+ "type": "string",
2822
+ "description": "The minimum threshold for warning relative to the baseline."
2823
+ },
2824
+ "minimumError": {
2825
+ "type": "string",
2826
+ "description": "The minimum threshold for error relative to the baseline."
2827
+ },
2828
+ "warning": {
2829
+ "type": "string",
2830
+ "description": "The threshold for warning relative to the baseline (min & max)."
2831
+ },
2832
+ "error": {
2833
+ "type": "string",
2834
+ "description": "The threshold for error relative to the baseline (min & max)."
2835
+ }
2836
+ },
2837
+ "additionalProperties": false
2838
+ }
2839
+ }
2840
+ },
2179
2841
  "AngularDevkitBuildAngularBuildersDevServerSchema": {
2180
2842
  "title": "Dev Server Target",
2181
2843
  "description": "Dev Server target options for Build Facade.",