@angular/cli 14.1.0-next.1 → 14.1.0-next.2
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.
- package/lib/config/schema.json +586 -0
- package/lib/init.js +4 -2
- package/package.json +11 -11
- package/src/command-builder/command-module.js +25 -2
- package/src/commands/run/cli.js +10 -0
package/lib/config/schema.json
CHANGED
|
@@ -372,6 +372,7 @@
|
|
|
372
372
|
"enum": [
|
|
373
373
|
"@angular-devkit/build-angular:app-shell",
|
|
374
374
|
"@angular-devkit/build-angular:browser",
|
|
375
|
+
"@angular-devkit/build-angular:browser-esbuild",
|
|
375
376
|
"@angular-devkit/build-angular:dev-server",
|
|
376
377
|
"@angular-devkit/build-angular:extract-i18n",
|
|
377
378
|
"@angular-devkit/build-angular:karma",
|
|
@@ -445,6 +446,28 @@
|
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
},
|
|
449
|
+
{
|
|
450
|
+
"type": "object",
|
|
451
|
+
"additionalProperties": false,
|
|
452
|
+
"properties": {
|
|
453
|
+
"builder": {
|
|
454
|
+
"const": "@angular-devkit/build-angular:browser-esbuild"
|
|
455
|
+
},
|
|
456
|
+
"defaultConfiguration": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "A default named configuration to use when a target configuration is not provided."
|
|
459
|
+
},
|
|
460
|
+
"options": {
|
|
461
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema"
|
|
462
|
+
},
|
|
463
|
+
"configurations": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"additionalProperties": {
|
|
466
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
448
471
|
{
|
|
449
472
|
"type": "object",
|
|
450
473
|
"additionalProperties": false,
|
|
@@ -2176,6 +2199,569 @@
|
|
|
2176
2199
|
}
|
|
2177
2200
|
}
|
|
2178
2201
|
},
|
|
2202
|
+
"AngularDevkitBuildAngularBuildersBrowserEsbuildSchema": {
|
|
2203
|
+
"title": "Esbuild browser schema for Build Facade.",
|
|
2204
|
+
"description": "Browser target options",
|
|
2205
|
+
"type": "object",
|
|
2206
|
+
"properties": {
|
|
2207
|
+
"assets": {
|
|
2208
|
+
"type": "array",
|
|
2209
|
+
"description": "List of static application assets.",
|
|
2210
|
+
"default": [],
|
|
2211
|
+
"items": {
|
|
2212
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/assetPattern"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"main": {
|
|
2216
|
+
"type": "string",
|
|
2217
|
+
"description": "The full path for the main entry point to the app, relative to the current workspace."
|
|
2218
|
+
},
|
|
2219
|
+
"polyfills": {
|
|
2220
|
+
"type": "string",
|
|
2221
|
+
"description": "The full path for the polyfills file, relative to the current workspace."
|
|
2222
|
+
},
|
|
2223
|
+
"tsConfig": {
|
|
2224
|
+
"type": "string",
|
|
2225
|
+
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
|
|
2226
|
+
},
|
|
2227
|
+
"scripts": {
|
|
2228
|
+
"description": "Global scripts to be included in the build.",
|
|
2229
|
+
"type": "array",
|
|
2230
|
+
"default": [],
|
|
2231
|
+
"items": {
|
|
2232
|
+
"oneOf": [
|
|
2233
|
+
{
|
|
2234
|
+
"type": "object",
|
|
2235
|
+
"properties": {
|
|
2236
|
+
"input": {
|
|
2237
|
+
"type": "string",
|
|
2238
|
+
"description": "The file to include.",
|
|
2239
|
+
"pattern": "\\.[cm]?jsx?$"
|
|
2240
|
+
},
|
|
2241
|
+
"bundleName": {
|
|
2242
|
+
"type": "string",
|
|
2243
|
+
"pattern": "^[\\w\\-.]*$",
|
|
2244
|
+
"description": "The bundle name for this extra entry point."
|
|
2245
|
+
},
|
|
2246
|
+
"inject": {
|
|
2247
|
+
"type": "boolean",
|
|
2248
|
+
"description": "If the bundle will be referenced in the HTML file.",
|
|
2249
|
+
"default": true
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
"additionalProperties": false
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
"type": "string",
|
|
2256
|
+
"description": "The file to include.",
|
|
2257
|
+
"pattern": "\\.[cm]?jsx?$"
|
|
2258
|
+
}
|
|
2259
|
+
]
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
"styles": {
|
|
2263
|
+
"description": "Global styles to be included in the build.",
|
|
2264
|
+
"type": "array",
|
|
2265
|
+
"default": [],
|
|
2266
|
+
"items": {
|
|
2267
|
+
"oneOf": [
|
|
2268
|
+
{
|
|
2269
|
+
"type": "object",
|
|
2270
|
+
"properties": {
|
|
2271
|
+
"input": {
|
|
2272
|
+
"type": "string",
|
|
2273
|
+
"description": "The file to include.",
|
|
2274
|
+
"pattern": "\\.(?:css|scss|sass|less|styl)$"
|
|
2275
|
+
},
|
|
2276
|
+
"bundleName": {
|
|
2277
|
+
"type": "string",
|
|
2278
|
+
"pattern": "^[\\w\\-.]*$",
|
|
2279
|
+
"description": "The bundle name for this extra entry point."
|
|
2280
|
+
},
|
|
2281
|
+
"inject": {
|
|
2282
|
+
"type": "boolean",
|
|
2283
|
+
"description": "If the bundle will be referenced in the HTML file.",
|
|
2284
|
+
"default": true
|
|
2285
|
+
}
|
|
2286
|
+
},
|
|
2287
|
+
"additionalProperties": false
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
"type": "string",
|
|
2291
|
+
"description": "The file to include.",
|
|
2292
|
+
"pattern": "\\.(?:css|scss|sass|less|styl)$"
|
|
2293
|
+
}
|
|
2294
|
+
]
|
|
2295
|
+
}
|
|
2296
|
+
},
|
|
2297
|
+
"inlineStyleLanguage": {
|
|
2298
|
+
"description": "The stylesheet language to use for the application's inline component styles.",
|
|
2299
|
+
"type": "string",
|
|
2300
|
+
"default": "css",
|
|
2301
|
+
"enum": [
|
|
2302
|
+
"css",
|
|
2303
|
+
"less",
|
|
2304
|
+
"sass",
|
|
2305
|
+
"scss"
|
|
2306
|
+
]
|
|
2307
|
+
},
|
|
2308
|
+
"stylePreprocessorOptions": {
|
|
2309
|
+
"description": "Options to pass to style preprocessors.",
|
|
2310
|
+
"type": "object",
|
|
2311
|
+
"properties": {
|
|
2312
|
+
"includePaths": {
|
|
2313
|
+
"description": "Paths to include. Paths will be resolved to workspace root.",
|
|
2314
|
+
"type": "array",
|
|
2315
|
+
"items": {
|
|
2316
|
+
"type": "string"
|
|
2317
|
+
},
|
|
2318
|
+
"default": []
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
2321
|
+
"additionalProperties": false
|
|
2322
|
+
},
|
|
2323
|
+
"externalDependencies": {
|
|
2324
|
+
"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.",
|
|
2325
|
+
"type": "array",
|
|
2326
|
+
"items": {
|
|
2327
|
+
"type": "string"
|
|
2328
|
+
},
|
|
2329
|
+
"default": []
|
|
2330
|
+
},
|
|
2331
|
+
"optimization": {
|
|
2332
|
+
"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.",
|
|
2333
|
+
"x-user-analytics": 16,
|
|
2334
|
+
"default": true,
|
|
2335
|
+
"oneOf": [
|
|
2336
|
+
{
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"properties": {
|
|
2339
|
+
"scripts": {
|
|
2340
|
+
"type": "boolean",
|
|
2341
|
+
"description": "Enables optimization of the scripts output.",
|
|
2342
|
+
"default": true
|
|
2343
|
+
},
|
|
2344
|
+
"styles": {
|
|
2345
|
+
"description": "Enables optimization of the styles output.",
|
|
2346
|
+
"default": true,
|
|
2347
|
+
"oneOf": [
|
|
2348
|
+
{
|
|
2349
|
+
"type": "object",
|
|
2350
|
+
"properties": {
|
|
2351
|
+
"minify": {
|
|
2352
|
+
"type": "boolean",
|
|
2353
|
+
"description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
|
|
2354
|
+
"default": true
|
|
2355
|
+
},
|
|
2356
|
+
"inlineCritical": {
|
|
2357
|
+
"type": "boolean",
|
|
2358
|
+
"description": "Extract and inline critical CSS definitions to improve first paint time.",
|
|
2359
|
+
"default": true
|
|
2360
|
+
}
|
|
2361
|
+
},
|
|
2362
|
+
"additionalProperties": false
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"type": "boolean"
|
|
2366
|
+
}
|
|
2367
|
+
]
|
|
2368
|
+
},
|
|
2369
|
+
"fonts": {
|
|
2370
|
+
"description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
|
|
2371
|
+
"default": true,
|
|
2372
|
+
"oneOf": [
|
|
2373
|
+
{
|
|
2374
|
+
"type": "object",
|
|
2375
|
+
"properties": {
|
|
2376
|
+
"inline": {
|
|
2377
|
+
"type": "boolean",
|
|
2378
|
+
"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.",
|
|
2379
|
+
"default": true
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
"additionalProperties": false
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"type": "boolean"
|
|
2386
|
+
}
|
|
2387
|
+
]
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"additionalProperties": false
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"type": "boolean"
|
|
2394
|
+
}
|
|
2395
|
+
]
|
|
2396
|
+
},
|
|
2397
|
+
"fileReplacements": {
|
|
2398
|
+
"description": "Replace compilation source files with other compilation source files in the build.",
|
|
2399
|
+
"type": "array",
|
|
2400
|
+
"items": {
|
|
2401
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/fileReplacement"
|
|
2402
|
+
},
|
|
2403
|
+
"default": []
|
|
2404
|
+
},
|
|
2405
|
+
"outputPath": {
|
|
2406
|
+
"type": "string",
|
|
2407
|
+
"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."
|
|
2408
|
+
},
|
|
2409
|
+
"resourcesOutputPath": {
|
|
2410
|
+
"type": "string",
|
|
2411
|
+
"description": "The path where style resources will be placed, relative to outputPath."
|
|
2412
|
+
},
|
|
2413
|
+
"aot": {
|
|
2414
|
+
"type": "boolean",
|
|
2415
|
+
"description": "Build using Ahead of Time compilation.",
|
|
2416
|
+
"x-user-analytics": 13,
|
|
2417
|
+
"default": true
|
|
2418
|
+
},
|
|
2419
|
+
"sourceMap": {
|
|
2420
|
+
"description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
|
|
2421
|
+
"default": false,
|
|
2422
|
+
"oneOf": [
|
|
2423
|
+
{
|
|
2424
|
+
"type": "object",
|
|
2425
|
+
"properties": {
|
|
2426
|
+
"scripts": {
|
|
2427
|
+
"type": "boolean",
|
|
2428
|
+
"description": "Output source maps for all scripts.",
|
|
2429
|
+
"default": true
|
|
2430
|
+
},
|
|
2431
|
+
"styles": {
|
|
2432
|
+
"type": "boolean",
|
|
2433
|
+
"description": "Output source maps for all styles.",
|
|
2434
|
+
"default": true
|
|
2435
|
+
},
|
|
2436
|
+
"hidden": {
|
|
2437
|
+
"type": "boolean",
|
|
2438
|
+
"description": "Output source maps used for error reporting tools.",
|
|
2439
|
+
"default": false
|
|
2440
|
+
},
|
|
2441
|
+
"vendor": {
|
|
2442
|
+
"type": "boolean",
|
|
2443
|
+
"description": "Resolve vendor packages source maps.",
|
|
2444
|
+
"default": false
|
|
2445
|
+
}
|
|
2446
|
+
},
|
|
2447
|
+
"additionalProperties": false
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
"type": "boolean"
|
|
2451
|
+
}
|
|
2452
|
+
]
|
|
2453
|
+
},
|
|
2454
|
+
"vendorChunk": {
|
|
2455
|
+
"type": "boolean",
|
|
2456
|
+
"description": "Generate a seperate bundle containing only vendor libraries. This option should only used for development.",
|
|
2457
|
+
"default": false
|
|
2458
|
+
},
|
|
2459
|
+
"commonChunk": {
|
|
2460
|
+
"type": "boolean",
|
|
2461
|
+
"description": "Generate a seperate bundle containing code used across multiple bundles.",
|
|
2462
|
+
"default": true
|
|
2463
|
+
},
|
|
2464
|
+
"baseHref": {
|
|
2465
|
+
"type": "string",
|
|
2466
|
+
"description": "Base url for the application being built."
|
|
2467
|
+
},
|
|
2468
|
+
"deployUrl": {
|
|
2469
|
+
"type": "string",
|
|
2470
|
+
"description": "URL where files will be deployed.",
|
|
2471
|
+
"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."
|
|
2472
|
+
},
|
|
2473
|
+
"verbose": {
|
|
2474
|
+
"type": "boolean",
|
|
2475
|
+
"description": "Adds more details to output logging.",
|
|
2476
|
+
"default": false
|
|
2477
|
+
},
|
|
2478
|
+
"progress": {
|
|
2479
|
+
"type": "boolean",
|
|
2480
|
+
"description": "Log progress to the console while building.",
|
|
2481
|
+
"default": true
|
|
2482
|
+
},
|
|
2483
|
+
"i18nMissingTranslation": {
|
|
2484
|
+
"type": "string",
|
|
2485
|
+
"description": "How to handle missing translations for i18n.",
|
|
2486
|
+
"enum": [
|
|
2487
|
+
"warning",
|
|
2488
|
+
"error",
|
|
2489
|
+
"ignore"
|
|
2490
|
+
],
|
|
2491
|
+
"default": "warning"
|
|
2492
|
+
},
|
|
2493
|
+
"i18nDuplicateTranslation": {
|
|
2494
|
+
"type": "string",
|
|
2495
|
+
"description": "How to handle duplicate translations for i18n.",
|
|
2496
|
+
"enum": [
|
|
2497
|
+
"warning",
|
|
2498
|
+
"error",
|
|
2499
|
+
"ignore"
|
|
2500
|
+
],
|
|
2501
|
+
"default": "warning"
|
|
2502
|
+
},
|
|
2503
|
+
"localize": {
|
|
2504
|
+
"description": "Translate the bundles in one or more locales.",
|
|
2505
|
+
"oneOf": [
|
|
2506
|
+
{
|
|
2507
|
+
"type": "boolean",
|
|
2508
|
+
"description": "Translate all locales."
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
"type": "array",
|
|
2512
|
+
"description": "List of locales ID's to translate.",
|
|
2513
|
+
"minItems": 1,
|
|
2514
|
+
"items": {
|
|
2515
|
+
"type": "string",
|
|
2516
|
+
"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})+)?$"
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
]
|
|
2520
|
+
},
|
|
2521
|
+
"watch": {
|
|
2522
|
+
"type": "boolean",
|
|
2523
|
+
"description": "Run build when files change.",
|
|
2524
|
+
"default": false
|
|
2525
|
+
},
|
|
2526
|
+
"outputHashing": {
|
|
2527
|
+
"type": "string",
|
|
2528
|
+
"description": "Define the output filename cache-busting hashing mode.",
|
|
2529
|
+
"default": "none",
|
|
2530
|
+
"enum": [
|
|
2531
|
+
"none",
|
|
2532
|
+
"all",
|
|
2533
|
+
"media",
|
|
2534
|
+
"bundles"
|
|
2535
|
+
]
|
|
2536
|
+
},
|
|
2537
|
+
"poll": {
|
|
2538
|
+
"type": "number",
|
|
2539
|
+
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
2540
|
+
},
|
|
2541
|
+
"deleteOutputPath": {
|
|
2542
|
+
"type": "boolean",
|
|
2543
|
+
"description": "Delete the output path before building.",
|
|
2544
|
+
"default": true
|
|
2545
|
+
},
|
|
2546
|
+
"preserveSymlinks": {
|
|
2547
|
+
"type": "boolean",
|
|
2548
|
+
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
|
|
2549
|
+
},
|
|
2550
|
+
"extractLicenses": {
|
|
2551
|
+
"type": "boolean",
|
|
2552
|
+
"description": "Extract all licenses in a separate file.",
|
|
2553
|
+
"default": true
|
|
2554
|
+
},
|
|
2555
|
+
"buildOptimizer": {
|
|
2556
|
+
"type": "boolean",
|
|
2557
|
+
"description": "Enables advanced build optimizations when using the 'aot' option.",
|
|
2558
|
+
"default": true
|
|
2559
|
+
},
|
|
2560
|
+
"namedChunks": {
|
|
2561
|
+
"type": "boolean",
|
|
2562
|
+
"description": "Use file name for lazy loaded chunks.",
|
|
2563
|
+
"default": false
|
|
2564
|
+
},
|
|
2565
|
+
"subresourceIntegrity": {
|
|
2566
|
+
"type": "boolean",
|
|
2567
|
+
"description": "Enables the use of subresource integrity validation.",
|
|
2568
|
+
"default": false
|
|
2569
|
+
},
|
|
2570
|
+
"serviceWorker": {
|
|
2571
|
+
"type": "boolean",
|
|
2572
|
+
"description": "Generates a service worker config for production builds.",
|
|
2573
|
+
"default": false
|
|
2574
|
+
},
|
|
2575
|
+
"ngswConfigPath": {
|
|
2576
|
+
"type": "string",
|
|
2577
|
+
"description": "Path to ngsw-config.json."
|
|
2578
|
+
},
|
|
2579
|
+
"index": {
|
|
2580
|
+
"description": "Configures the generation of the application's HTML index.",
|
|
2581
|
+
"oneOf": [
|
|
2582
|
+
{
|
|
2583
|
+
"type": "string",
|
|
2584
|
+
"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."
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"type": "object",
|
|
2588
|
+
"description": "",
|
|
2589
|
+
"properties": {
|
|
2590
|
+
"input": {
|
|
2591
|
+
"type": "string",
|
|
2592
|
+
"minLength": 1,
|
|
2593
|
+
"description": "The path of a file to use for the application's generated HTML index."
|
|
2594
|
+
},
|
|
2595
|
+
"output": {
|
|
2596
|
+
"type": "string",
|
|
2597
|
+
"minLength": 1,
|
|
2598
|
+
"default": "index.html",
|
|
2599
|
+
"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."
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
]
|
|
2604
|
+
},
|
|
2605
|
+
"statsJson": {
|
|
2606
|
+
"type": "boolean",
|
|
2607
|
+
"description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
|
|
2608
|
+
"default": false
|
|
2609
|
+
},
|
|
2610
|
+
"budgets": {
|
|
2611
|
+
"description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
|
|
2612
|
+
"type": "array",
|
|
2613
|
+
"items": {
|
|
2614
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/budget"
|
|
2615
|
+
},
|
|
2616
|
+
"default": []
|
|
2617
|
+
},
|
|
2618
|
+
"webWorkerTsConfig": {
|
|
2619
|
+
"type": "string",
|
|
2620
|
+
"description": "TypeScript configuration for Web Worker modules."
|
|
2621
|
+
},
|
|
2622
|
+
"crossOrigin": {
|
|
2623
|
+
"type": "string",
|
|
2624
|
+
"description": "Define the crossorigin attribute setting of elements that provide CORS support.",
|
|
2625
|
+
"default": "none",
|
|
2626
|
+
"enum": [
|
|
2627
|
+
"none",
|
|
2628
|
+
"anonymous",
|
|
2629
|
+
"use-credentials"
|
|
2630
|
+
]
|
|
2631
|
+
},
|
|
2632
|
+
"allowedCommonJsDependencies": {
|
|
2633
|
+
"description": "A list of CommonJS packages that are allowed to be used without a build time warning.",
|
|
2634
|
+
"type": "array",
|
|
2635
|
+
"items": {
|
|
2636
|
+
"type": "string"
|
|
2637
|
+
},
|
|
2638
|
+
"default": []
|
|
2639
|
+
}
|
|
2640
|
+
},
|
|
2641
|
+
"additionalProperties": false,
|
|
2642
|
+
"definitions": {
|
|
2643
|
+
"assetPattern": {
|
|
2644
|
+
"oneOf": [
|
|
2645
|
+
{
|
|
2646
|
+
"type": "object",
|
|
2647
|
+
"properties": {
|
|
2648
|
+
"followSymlinks": {
|
|
2649
|
+
"type": "boolean",
|
|
2650
|
+
"default": false,
|
|
2651
|
+
"description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
|
|
2652
|
+
},
|
|
2653
|
+
"glob": {
|
|
2654
|
+
"type": "string",
|
|
2655
|
+
"description": "The pattern to match."
|
|
2656
|
+
},
|
|
2657
|
+
"input": {
|
|
2658
|
+
"type": "string",
|
|
2659
|
+
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
2660
|
+
},
|
|
2661
|
+
"ignore": {
|
|
2662
|
+
"description": "An array of globs to ignore.",
|
|
2663
|
+
"type": "array",
|
|
2664
|
+
"items": {
|
|
2665
|
+
"type": "string"
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
"output": {
|
|
2669
|
+
"type": "string",
|
|
2670
|
+
"description": "Absolute path within the output."
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
"additionalProperties": false
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"type": "string"
|
|
2677
|
+
}
|
|
2678
|
+
]
|
|
2679
|
+
},
|
|
2680
|
+
"fileReplacement": {
|
|
2681
|
+
"oneOf": [
|
|
2682
|
+
{
|
|
2683
|
+
"type": "object",
|
|
2684
|
+
"properties": {
|
|
2685
|
+
"src": {
|
|
2686
|
+
"type": "string",
|
|
2687
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
2688
|
+
},
|
|
2689
|
+
"replaceWith": {
|
|
2690
|
+
"type": "string",
|
|
2691
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
2692
|
+
}
|
|
2693
|
+
},
|
|
2694
|
+
"additionalProperties": false
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"type": "object",
|
|
2698
|
+
"properties": {
|
|
2699
|
+
"replace": {
|
|
2700
|
+
"type": "string",
|
|
2701
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
2702
|
+
},
|
|
2703
|
+
"with": {
|
|
2704
|
+
"type": "string",
|
|
2705
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
2706
|
+
}
|
|
2707
|
+
},
|
|
2708
|
+
"additionalProperties": false
|
|
2709
|
+
}
|
|
2710
|
+
]
|
|
2711
|
+
},
|
|
2712
|
+
"budget": {
|
|
2713
|
+
"type": "object",
|
|
2714
|
+
"properties": {
|
|
2715
|
+
"type": {
|
|
2716
|
+
"type": "string",
|
|
2717
|
+
"description": "The type of budget.",
|
|
2718
|
+
"enum": [
|
|
2719
|
+
"all",
|
|
2720
|
+
"allScript",
|
|
2721
|
+
"any",
|
|
2722
|
+
"anyScript",
|
|
2723
|
+
"anyComponentStyle",
|
|
2724
|
+
"bundle",
|
|
2725
|
+
"initial"
|
|
2726
|
+
]
|
|
2727
|
+
},
|
|
2728
|
+
"name": {
|
|
2729
|
+
"type": "string",
|
|
2730
|
+
"description": "The name of the bundle."
|
|
2731
|
+
},
|
|
2732
|
+
"baseline": {
|
|
2733
|
+
"type": "string",
|
|
2734
|
+
"description": "The baseline size for comparison."
|
|
2735
|
+
},
|
|
2736
|
+
"maximumWarning": {
|
|
2737
|
+
"type": "string",
|
|
2738
|
+
"description": "The maximum threshold for warning relative to the baseline."
|
|
2739
|
+
},
|
|
2740
|
+
"maximumError": {
|
|
2741
|
+
"type": "string",
|
|
2742
|
+
"description": "The maximum threshold for error relative to the baseline."
|
|
2743
|
+
},
|
|
2744
|
+
"minimumWarning": {
|
|
2745
|
+
"type": "string",
|
|
2746
|
+
"description": "The minimum threshold for warning relative to the baseline."
|
|
2747
|
+
},
|
|
2748
|
+
"minimumError": {
|
|
2749
|
+
"type": "string",
|
|
2750
|
+
"description": "The minimum threshold for error relative to the baseline."
|
|
2751
|
+
},
|
|
2752
|
+
"warning": {
|
|
2753
|
+
"type": "string",
|
|
2754
|
+
"description": "The threshold for warning relative to the baseline (min & max)."
|
|
2755
|
+
},
|
|
2756
|
+
"error": {
|
|
2757
|
+
"type": "string",
|
|
2758
|
+
"description": "The threshold for error relative to the baseline (min & max)."
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
"additionalProperties": false
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
},
|
|
2179
2765
|
"AngularDevkitBuildAngularBuildersDevServerSchema": {
|
|
2180
2766
|
"title": "Dev Server Target",
|
|
2181
2767
|
"description": "Dev Server target options for Build Facade.",
|
package/lib/init.js
CHANGED
|
@@ -93,10 +93,12 @@ let forceExit = false;
|
|
|
93
93
|
// eslint-disable-next-line no-console
|
|
94
94
|
console.error('Version mismatch check skipped. Unable to compare local version: ' + error);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
const rawCommandName = process.argv[2];
|
|
97
|
+
// When using the completion command, don't show the warning as otherwise this will break completion.
|
|
98
|
+
if (isGlobalGreater && rawCommandName !== 'completion') {
|
|
97
99
|
// If using the update command and the global version is greater, use the newer update command
|
|
98
100
|
// This allows improvements in update to be used in older versions that do not have bootstrapping
|
|
99
|
-
if (
|
|
101
|
+
if (rawCommandName === 'update' &&
|
|
100
102
|
cli.VERSION &&
|
|
101
103
|
cli.VERSION.major - globalVersion.major <= 1) {
|
|
102
104
|
cli = await Promise.resolve().then(() => __importStar(require('./cli')));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "14.1.0-next.
|
|
3
|
+
"version": "14.1.0-next.2",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.1401.0-next.
|
|
29
|
-
"@angular-devkit/core": "14.1.0-next.
|
|
30
|
-
"@angular-devkit/schematics": "14.1.0-next.
|
|
31
|
-
"@schematics/angular": "14.1.0-next.
|
|
28
|
+
"@angular-devkit/architect": "0.1401.0-next.2",
|
|
29
|
+
"@angular-devkit/core": "14.1.0-next.2",
|
|
30
|
+
"@angular-devkit/schematics": "14.1.0-next.2",
|
|
31
|
+
"@schematics/angular": "14.1.0-next.2",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.3",
|
|
34
34
|
"debug": "4.3.4",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"ng-update": {
|
|
50
50
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
51
51
|
"packageGroup": {
|
|
52
|
-
"@angular/cli": "14.1.0-next.
|
|
53
|
-
"@angular-devkit/architect": "0.1401.0-next.
|
|
54
|
-
"@angular-devkit/build-angular": "14.1.0-next.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.1401.0-next.
|
|
56
|
-
"@angular-devkit/core": "14.1.0-next.
|
|
57
|
-
"@angular-devkit/schematics": "14.1.0-next.
|
|
52
|
+
"@angular/cli": "14.1.0-next.2",
|
|
53
|
+
"@angular-devkit/architect": "0.1401.0-next.2",
|
|
54
|
+
"@angular-devkit/build-angular": "14.1.0-next.2",
|
|
55
|
+
"@angular-devkit/build-webpack": "0.1401.0-next.2",
|
|
56
|
+
"@angular-devkit/core": "14.1.0-next.2",
|
|
57
|
+
"@angular-devkit/schematics": "14.1.0-next.2"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
@@ -149,6 +149,7 @@ class CommandModule {
|
|
|
149
149
|
* **Note:** This method should be called from the command bundler method.
|
|
150
150
|
*/
|
|
151
151
|
addSchemaOptionsToCommand(localYargs, options) {
|
|
152
|
+
const booleanOptionsWithNoPrefix = new Set();
|
|
152
153
|
for (const option of options) {
|
|
153
154
|
const { default: defaultVal, positional, deprecated, description, alias, userAnalytics, type, hidden, name, choices, } = option;
|
|
154
155
|
const sharedOptions = {
|
|
@@ -160,14 +161,24 @@ class CommandModule {
|
|
|
160
161
|
// This should only be done when `--help` is used otherwise default will override options set in angular.json.
|
|
161
162
|
...(this.context.args.options.help ? { default: defaultVal } : {}),
|
|
162
163
|
};
|
|
164
|
+
// TODO(alanagius4): remove in a major version.
|
|
165
|
+
// the below is an interim workaround to handle options which have been defined in the schema with `no` prefix.
|
|
166
|
+
let dashedName = core_1.strings.dasherize(name);
|
|
167
|
+
if (type === 'boolean' && dashedName.startsWith('no-')) {
|
|
168
|
+
dashedName = dashedName.slice(3);
|
|
169
|
+
booleanOptionsWithNoPrefix.add(dashedName);
|
|
170
|
+
// eslint-disable-next-line no-console
|
|
171
|
+
console.warn(`Warning: '${name}' option has been declared with a 'no' prefix in the schema.` +
|
|
172
|
+
'Please file an issue with the author of this package.');
|
|
173
|
+
}
|
|
163
174
|
if (positional === undefined) {
|
|
164
|
-
localYargs = localYargs.option(
|
|
175
|
+
localYargs = localYargs.option(dashedName, {
|
|
165
176
|
type,
|
|
166
177
|
...sharedOptions,
|
|
167
178
|
});
|
|
168
179
|
}
|
|
169
180
|
else {
|
|
170
|
-
localYargs = localYargs.positional(
|
|
181
|
+
localYargs = localYargs.positional(dashedName, {
|
|
171
182
|
type: type === 'array' || type === 'count' ? 'string' : type,
|
|
172
183
|
...sharedOptions,
|
|
173
184
|
});
|
|
@@ -177,6 +188,18 @@ class CommandModule {
|
|
|
177
188
|
this.optionsWithAnalytics.set(name, userAnalytics);
|
|
178
189
|
}
|
|
179
190
|
}
|
|
191
|
+
// TODO(alanagius4): remove in a major version.
|
|
192
|
+
// the below is an interim workaround to handle options which have been defined in the schema with `no` prefix.
|
|
193
|
+
if (booleanOptionsWithNoPrefix.size) {
|
|
194
|
+
localYargs.middleware((options) => {
|
|
195
|
+
for (const key of booleanOptionsWithNoPrefix) {
|
|
196
|
+
if (key in options) {
|
|
197
|
+
options[`no-${key}`] = !options[key];
|
|
198
|
+
delete options[key];
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}, false);
|
|
202
|
+
}
|
|
180
203
|
return localYargs;
|
|
181
204
|
}
|
|
182
205
|
getWorkspaceOrThrow() {
|
package/src/commands/run/cli.js
CHANGED
|
@@ -30,6 +30,16 @@ class RunCommandModule extends architect_base_command_module_1.ArchitectBaseComm
|
|
|
30
30
|
// Also, hide choices from JSON help so that we don't display them in AIO.
|
|
31
31
|
choices: (getYargsCompletions || help) && !jsonHelp ? this.getTargetChoices() : undefined,
|
|
32
32
|
})
|
|
33
|
+
.middleware((args) => {
|
|
34
|
+
// TODO: remove in version 15.
|
|
35
|
+
const { configuration, target } = args;
|
|
36
|
+
if (typeof configuration === 'string' && target) {
|
|
37
|
+
const targetWithConfig = target.split(':', 2);
|
|
38
|
+
targetWithConfig.push(configuration);
|
|
39
|
+
throw new command_module_1.CommandModuleError('Unknown argument: configuration.\n' +
|
|
40
|
+
`Provide the configuration as part of the target 'ng run ${targetWithConfig.join(':')}'.`);
|
|
41
|
+
}
|
|
42
|
+
}, true)
|
|
33
43
|
.strict();
|
|
34
44
|
const target = this.makeTargetSpecifier();
|
|
35
45
|
if (!target) {
|