@angular/cli 13.2.2 → 14.0.0-next.0

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.
@@ -9,20 +9,12 @@ export interface Schema {
9
9
  * The builder uses the named configurations to run the given target.
10
10
  * For more information, see
11
11
  * https://angular.io/guide/workspace-config#alternate-build-configurations.
12
- * Setting this explicitly overrides the "--prod" flag.
13
12
  */
14
13
  configuration?: string;
15
14
  /**
16
15
  * Shows a help message for this command in the console.
17
16
  */
18
17
  help?: HelpUnion;
19
- /**
20
- * Shorthand for "--configuration=production".
21
- * Set the build configuration to the production target.
22
- * By default, the production target is set up in the workspace configuration such that all
23
- * builds make use of bundling, limited tree-shaking, and also limited dead code elimination.
24
- */
25
- prod?: boolean;
26
18
  /**
27
19
  * The name of the project to build. Can be an application or a library.
28
20
  */
@@ -14,14 +14,9 @@
14
14
  }
15
15
  },
16
16
  "configuration": {
17
- "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.\nSetting this explicitly overrides the \"--prod\" flag.",
17
+ "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.",
18
18
  "type": "string",
19
19
  "aliases": ["c"]
20
- },
21
- "prod": {
22
- "description": "Shorthand for \"--configuration=production\".\nSet the build configuration to the production target.\nBy default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination.",
23
- "type": "boolean",
24
- "x-deprecated": "Use `--configuration production` instead."
25
20
  }
26
21
  }
27
22
  },
package/commands/e2e.d.ts CHANGED
@@ -8,20 +8,12 @@ export interface Schema {
8
8
  * The builder uses the named configurations to run the given target.
9
9
  * For more information, see
10
10
  * https://angular.io/guide/workspace-config#alternate-build-configurations.
11
- * Setting this explicitly overrides the "--prod" flag.
12
11
  */
13
12
  configuration?: string;
14
13
  /**
15
14
  * Shows a help message for this command in the console.
16
15
  */
17
16
  help?: HelpUnion;
18
- /**
19
- * Shorthand for "--configuration=production".
20
- * Set the build configuration to the production target.
21
- * By default, the production target is set up in the workspace configuration such that all
22
- * builds make use of bundling, limited tree-shaking, and also limited dead code elimination.
23
- */
24
- prod?: boolean;
25
17
  /**
26
18
  * The name of the project to build. Can be an application or a library.
27
19
  */
@@ -8,20 +8,12 @@ export interface Schema {
8
8
  * The builder uses the named configurations to run the given target.
9
9
  * For more information, see
10
10
  * https://angular.io/guide/workspace-config#alternate-build-configurations.
11
- * Setting this explicitly overrides the "--prod" flag.
12
11
  */
13
12
  configuration?: string;
14
13
  /**
15
14
  * Shows a help message for this command in the console.
16
15
  */
17
16
  help?: HelpUnion;
18
- /**
19
- * Shorthand for "--configuration=production".
20
- * Set the build configuration to the production target.
21
- * By default, the production target is set up in the workspace configuration such that all
22
- * builds make use of bundling, limited tree-shaking, and also limited dead code elimination.
23
- */
24
- prod?: boolean;
25
17
  /**
26
18
  * The name of the project to build. Can be an application or a library.
27
19
  */
@@ -8,20 +8,12 @@ export interface Schema {
8
8
  * The builder uses the named configurations to run the given target.
9
9
  * For more information, see
10
10
  * https://angular.io/guide/workspace-config#alternate-build-configurations.
11
- * Setting this explicitly overrides the "--prod" flag.
12
11
  */
13
12
  configuration?: string;
14
13
  /**
15
14
  * Shows a help message for this command in the console.
16
15
  */
17
16
  help?: HelpUnion;
18
- /**
19
- * Shorthand for "--configuration=production".
20
- * Set the build configuration to the production target.
21
- * By default, the production target is set up in the workspace configuration such that all
22
- * builds make use of bundling, limited tree-shaking, and also limited dead code elimination.
23
- */
24
- prod?: boolean;
25
17
  /**
26
18
  * The name of the project to build. Can be an application or a library.
27
19
  */
@@ -8,20 +8,12 @@ export interface Schema {
8
8
  * The builder uses the named configurations to run the given target.
9
9
  * For more information, see
10
10
  * https://angular.io/guide/workspace-config#alternate-build-configurations.
11
- * Setting this explicitly overrides the "--prod" flag.
12
11
  */
13
12
  configuration?: string;
14
13
  /**
15
14
  * Shows a help message for this command in the console.
16
15
  */
17
16
  help?: HelpUnion;
18
- /**
19
- * Shorthand for "--configuration=production".
20
- * Set the build configuration to the production target.
21
- * By default, the production target is set up in the workspace configuration such that all
22
- * builds make use of bundling, limited tree-shaking, and also limited dead code elimination.
23
- */
24
- prod?: boolean;
25
17
  /**
26
18
  * The name of the project to build. Can be an application or a library.
27
19
  */
@@ -230,17 +230,6 @@ class UpdateCommand extends command_1.Command {
230
230
  this.logger.info(message);
231
231
  }
232
232
  };
233
- if (options.all) {
234
- const updateCmd = this.packageManager === workspace_schema_1.PackageManager.Yarn
235
- ? `'yarn upgrade-interactive' or 'yarn upgrade'`
236
- : `'${this.packageManager} update'`;
237
- this.logger.warn(`
238
- '--all' functionality has been removed as updating multiple packages at once is not recommended.
239
- To update packages which don’t provide 'ng update' capabilities in your workspace 'package.json' use ${updateCmd} instead.
240
- Run the package manager update command after updating packages which provide 'ng update' capabilities.
241
- `);
242
- return 0;
243
- }
244
233
  const packages = [];
245
234
  for (const request of options['--'] || []) {
246
235
  try {
@@ -2,10 +2,6 @@
2
2
  * Updates your application and its dependencies. See https://update.angular.io/
3
3
  */
4
4
  export interface Schema {
5
- /**
6
- * Whether to update all packages in package.json.
7
- */
8
- all?: boolean;
9
5
  /**
10
6
  * Whether to allow updating when the repository contains modified or untracked files.
11
7
  */
@@ -32,12 +32,6 @@
32
32
  "default": false,
33
33
  "type": "boolean"
34
34
  },
35
- "all": {
36
- "description": "Whether to update all packages in package.json.",
37
- "default": false,
38
- "type": "boolean",
39
- "x-deprecated": true
40
- },
41
35
  "next": {
42
36
  "description": "Use the prerelease version, including beta and RCs.",
43
37
  "default": false,
@@ -1584,7 +1584,34 @@
1584
1584
  "type": "array",
1585
1585
  "default": [],
1586
1586
  "items": {
1587
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema/definitions/extraEntryPoint"
1587
+ "oneOf": [
1588
+ {
1589
+ "type": "object",
1590
+ "properties": {
1591
+ "input": {
1592
+ "type": "string",
1593
+ "description": "The file to include.",
1594
+ "pattern": "\\.[cm]?jsx?$"
1595
+ },
1596
+ "bundleName": {
1597
+ "type": "string",
1598
+ "pattern": "^[\\w\\-.]*$",
1599
+ "description": "The bundle name for this extra entry point."
1600
+ },
1601
+ "inject": {
1602
+ "type": "boolean",
1603
+ "description": "If the bundle will be referenced in the HTML file.",
1604
+ "default": true
1605
+ }
1606
+ },
1607
+ "additionalProperties": false
1608
+ },
1609
+ {
1610
+ "type": "string",
1611
+ "description": "The file to include.",
1612
+ "pattern": "\\.[cm]?jsx?$"
1613
+ }
1614
+ ]
1588
1615
  }
1589
1616
  },
1590
1617
  "styles": {
@@ -1592,7 +1619,34 @@
1592
1619
  "type": "array",
1593
1620
  "default": [],
1594
1621
  "items": {
1595
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema/definitions/extraEntryPoint"
1622
+ "oneOf": [
1623
+ {
1624
+ "type": "object",
1625
+ "properties": {
1626
+ "input": {
1627
+ "type": "string",
1628
+ "description": "The file to include.",
1629
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
1630
+ },
1631
+ "bundleName": {
1632
+ "type": "string",
1633
+ "pattern": "^[\\w\\-.]*$",
1634
+ "description": "The bundle name for this extra entry point."
1635
+ },
1636
+ "inject": {
1637
+ "type": "boolean",
1638
+ "description": "If the bundle will be referenced in the HTML file.",
1639
+ "default": true
1640
+ }
1641
+ },
1642
+ "additionalProperties": false
1643
+ },
1644
+ {
1645
+ "type": "string",
1646
+ "description": "The file to include.",
1647
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
1648
+ }
1649
+ ]
1596
1650
  }
1597
1651
  },
1598
1652
  "inlineStyleLanguage": {
@@ -1846,15 +1900,9 @@
1846
1900
  "description": "Extract all licenses in a separate file.",
1847
1901
  "default": true
1848
1902
  },
1849
- "showCircularDependencies": {
1850
- "type": "boolean",
1851
- "description": "Show circular dependency warnings on builds.",
1852
- "default": false,
1853
- "x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
1854
- },
1855
1903
  "buildOptimizer": {
1856
1904
  "type": "boolean",
1857
- "description": "Enables '@angular-devkit/build-optimizer' optimizations when using the 'aot' option.",
1905
+ "description": "Enables advanced build optimizations when using the 'aot' option.",
1858
1906
  "default": true
1859
1907
  },
1860
1908
  "namedChunks": {
@@ -2009,34 +2057,6 @@
2009
2057
  }
2010
2058
  ]
2011
2059
  },
2012
- "extraEntryPoint": {
2013
- "oneOf": [
2014
- {
2015
- "type": "object",
2016
- "properties": {
2017
- "input": {
2018
- "type": "string",
2019
- "description": "The file to include."
2020
- },
2021
- "bundleName": {
2022
- "type": "string",
2023
- "pattern": "^[\\w\\-.]*$",
2024
- "description": "The bundle name for this extra entry point."
2025
- },
2026
- "inject": {
2027
- "type": "boolean",
2028
- "description": "If the bundle will be referenced in the HTML file.",
2029
- "default": true
2030
- }
2031
- },
2032
- "additionalProperties": false
2033
- },
2034
- {
2035
- "type": "string",
2036
- "description": "The file to include."
2037
- }
2038
- ]
2039
- },
2040
2060
  "budget": {
2041
2061
  "type": "object",
2042
2062
  "properties": {
@@ -2266,7 +2286,34 @@
2266
2286
  "type": "array",
2267
2287
  "default": [],
2268
2288
  "items": {
2269
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersKarmaSchema/definitions/extraEntryPoint"
2289
+ "oneOf": [
2290
+ {
2291
+ "type": "object",
2292
+ "properties": {
2293
+ "input": {
2294
+ "type": "string",
2295
+ "description": "The file to include.",
2296
+ "pattern": "\\.[cm]?jsx?$"
2297
+ },
2298
+ "bundleName": {
2299
+ "type": "string",
2300
+ "pattern": "^[\\w\\-.]*$",
2301
+ "description": "The bundle name for this extra entry point."
2302
+ },
2303
+ "inject": {
2304
+ "type": "boolean",
2305
+ "description": "If the bundle will be referenced in the HTML file.",
2306
+ "default": true
2307
+ }
2308
+ },
2309
+ "additionalProperties": false
2310
+ },
2311
+ {
2312
+ "type": "string",
2313
+ "description": "The file to include.",
2314
+ "pattern": "\\.[cm]?jsx?$"
2315
+ }
2316
+ ]
2270
2317
  }
2271
2318
  },
2272
2319
  "styles": {
@@ -2274,7 +2321,34 @@
2274
2321
  "type": "array",
2275
2322
  "default": [],
2276
2323
  "items": {
2277
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersKarmaSchema/definitions/extraEntryPoint"
2324
+ "oneOf": [
2325
+ {
2326
+ "type": "object",
2327
+ "properties": {
2328
+ "input": {
2329
+ "type": "string",
2330
+ "description": "The file to include.",
2331
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
2332
+ },
2333
+ "bundleName": {
2334
+ "type": "string",
2335
+ "pattern": "^[\\w\\-.]*$",
2336
+ "description": "The bundle name for this extra entry point."
2337
+ },
2338
+ "inject": {
2339
+ "type": "boolean",
2340
+ "description": "If the bundle will be referenced in the HTML file.",
2341
+ "default": true
2342
+ }
2343
+ },
2344
+ "additionalProperties": false
2345
+ },
2346
+ {
2347
+ "type": "string",
2348
+ "description": "The file to include.",
2349
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
2350
+ }
2351
+ ]
2278
2352
  }
2279
2353
  },
2280
2354
  "inlineStyleLanguage": {
@@ -2452,34 +2526,6 @@
2452
2526
  "type": "string"
2453
2527
  }
2454
2528
  ]
2455
- },
2456
- "extraEntryPoint": {
2457
- "oneOf": [
2458
- {
2459
- "type": "object",
2460
- "properties": {
2461
- "input": {
2462
- "type": "string",
2463
- "description": "The file to include."
2464
- },
2465
- "bundleName": {
2466
- "type": "string",
2467
- "pattern": "^[\\w\\-.]*$",
2468
- "description": "The bundle name for this extra entry point."
2469
- },
2470
- "inject": {
2471
- "type": "boolean",
2472
- "description": "If the bundle will be referenced in the HTML file.",
2473
- "default": true
2474
- }
2475
- },
2476
- "additionalProperties": false
2477
- },
2478
- {
2479
- "type": "string",
2480
- "description": "The file to include."
2481
- }
2482
- ]
2483
2529
  }
2484
2530
  }
2485
2531
  },
@@ -2734,12 +2780,6 @@
2734
2780
  "description": "Extract all licenses in a separate file, in the case of production builds only.",
2735
2781
  "default": true
2736
2782
  },
2737
- "showCircularDependencies": {
2738
- "type": "boolean",
2739
- "description": "Show circular dependency warnings on builds.",
2740
- "default": false,
2741
- "x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
2742
- },
2743
2783
  "namedChunks": {
2744
2784
  "type": "boolean",
2745
2785
  "description": "Use file name for lazy loaded chunks.",
@@ -346,7 +346,6 @@ class ArchitectCommand extends command_1.Command {
346
346
  }
347
347
  }
348
348
  _makeTargetSpecifier(commandOptions) {
349
- var _a, _b, _c;
350
349
  let project, target, configuration;
351
350
  if (commandOptions.target) {
352
351
  [project, target, configuration] = commandOptions.target.split(':');
@@ -357,17 +356,6 @@ class ArchitectCommand extends command_1.Command {
357
356
  else {
358
357
  project = commandOptions.project;
359
358
  target = this.target;
360
- if (commandOptions.prod) {
361
- const defaultConfig = project &&
362
- target &&
363
- ((_c = (_b = (_a = this.workspace) === null || _a === void 0 ? void 0 : _a.projects.get(project)) === null || _b === void 0 ? void 0 : _b.targets.get(target)) === null || _c === void 0 ? void 0 : _c.defaultConfiguration);
364
- this.logger.warn(defaultConfig === 'production'
365
- ? 'Option "--prod" is deprecated: No need to use this option as this builder defaults to configuration "production".'
366
- : 'Option "--prod" is deprecated: Use "--configuration production" instead.');
367
- // The --prod flag will always be the first configuration, available to be overwritten
368
- // by following configurations.
369
- configuration = 'production';
370
- }
371
359
  if (commandOptions.configuration) {
372
360
  configuration = `${configuration ? `${configuration},` : ''}${commandOptions.configuration}`;
373
361
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "13.2.2",
3
+ "version": "14.0.0-next.0",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "homepage": "https://github.com/angular/angular-cli",
30
30
  "dependencies": {
31
- "@angular-devkit/architect": "0.1302.2",
32
- "@angular-devkit/core": "13.2.2",
33
- "@angular-devkit/schematics": "13.2.2",
34
- "@schematics/angular": "13.2.2",
31
+ "@angular-devkit/architect": "0.1400.0-next.0",
32
+ "@angular-devkit/core": "14.0.0-next.0",
33
+ "@angular-devkit/schematics": "14.0.0-next.0",
34
+ "@schematics/angular": "14.0.0-next.0",
35
35
  "@yarnpkg/lockfile": "1.1.0",
36
36
  "ansi-colors": "4.1.1",
37
37
  "debug": "4.3.3",
@@ -51,12 +51,12 @@
51
51
  "ng-update": {
52
52
  "migrations": "@schematics/angular/migrations/migration-collection.json",
53
53
  "packageGroup": {
54
- "@angular/cli": "13.2.2",
55
- "@angular-devkit/architect": "0.1302.2",
56
- "@angular-devkit/build-angular": "13.2.2",
57
- "@angular-devkit/build-webpack": "0.1302.2",
58
- "@angular-devkit/core": "13.2.2",
59
- "@angular-devkit/schematics": "13.2.2"
54
+ "@angular/cli": "14.0.0-next.0",
55
+ "@angular-devkit/architect": "0.1400.0-next.0",
56
+ "@angular-devkit/build-angular": "14.0.0-next.0",
57
+ "@angular-devkit/build-webpack": "0.1400.0-next.0",
58
+ "@angular-devkit/core": "14.0.0-next.0",
59
+ "@angular-devkit/schematics": "14.0.0-next.0"
60
60
  }
61
61
  },
62
62
  "engines": {
@@ -650,9 +650,7 @@ function default_1(options) {
650
650
  const npmPackageJsonMap = allPackageMetadata.reduce((acc, npmPackageJson) => {
651
651
  // If the package was not found on the registry. It could be private, so we will just
652
652
  // ignore. If the package was part of the list, we will error out, but will simply ignore
653
- // if it's either not requested (so just part of package.json. silently) or if it's a
654
- // `--all` situation. There is an edge case here where a public package peer depends on a
655
- // private one, but it's rare enough.
653
+ // if it's either not requested (so just part of package.json. silently).
656
654
  if (!npmPackageJson.name) {
657
655
  if (npmPackageJson.requestedName && packages.has(npmPackageJson.requestedName)) {
658
656
  throw new schematics_1.SchematicsException(`Package ${JSON.stringify(npmPackageJson.requestedName)} was not found on the ` +