@angular/cli 12.0.0-rc.0 → 12.0.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.
Files changed (134) hide show
  1. package/README.md +34 -30
  2. package/bin/ng +3 -3
  3. package/bin/postinstall/analytics-prompt.js +1 -1
  4. package/commands/add-impl.d.ts +7 -0
  5. package/commands/add-impl.js +18 -20
  6. package/commands/add.json +1 -2
  7. package/commands/add.md +1 -0
  8. package/commands/analytics-impl.d.ts +8 -1
  9. package/commands/analytics-impl.js +7 -7
  10. package/commands/analytics-long.md +8 -7
  11. package/commands/analytics.json +3 -15
  12. package/commands/build-impl.d.ts +1 -1
  13. package/commands/build-impl.js +3 -3
  14. package/commands/build.json +1 -1
  15. package/commands/config-impl.d.ts +2 -2
  16. package/commands/config-impl.js +16 -11
  17. package/commands/config-long.md +1 -1
  18. package/commands/config.json +1 -2
  19. package/commands/definitions.json +3 -5
  20. package/commands/deploy-impl.d.ts +1 -1
  21. package/commands/deploy-impl.js +3 -3
  22. package/commands/deploy-long.md +1 -1
  23. package/commands/deploy.json +1 -3
  24. package/commands/doc-impl.d.ts +1 -1
  25. package/commands/doc-impl.js +2 -2
  26. package/commands/doc.json +3 -4
  27. package/commands/e2e-impl.d.ts +1 -1
  28. package/commands/e2e-impl.js +1 -1
  29. package/commands/e2e-long.md +1 -1
  30. package/commands/e2e.json +1 -1
  31. package/commands/easter-egg-impl.d.ts +1 -1
  32. package/commands/easter-egg-impl.js +3 -3
  33. package/commands/easter-egg.json +1 -3
  34. package/commands/extract-i18n-impl.d.ts +1 -1
  35. package/commands/extract-i18n-impl.js +5 -4
  36. package/commands/generate-impl.d.ts +1 -1
  37. package/commands/generate-impl.js +9 -2
  38. package/commands/generate.json +2 -3
  39. package/commands/help-impl.d.ts +1 -1
  40. package/commands/help-impl.js +3 -3
  41. package/commands/help-long.md +5 -5
  42. package/commands/help.json +1 -3
  43. package/commands/lint-impl.d.ts +1 -1
  44. package/commands/lint-impl.js +3 -3
  45. package/commands/lint-long.md +1 -1
  46. package/commands/lint.json +1 -3
  47. package/commands/new-impl.d.ts +1 -1
  48. package/commands/new-impl.js +8 -1
  49. package/commands/new.json +3 -3
  50. package/commands/new.md +5 -5
  51. package/commands/run-impl.d.ts +1 -1
  52. package/commands/run-impl.js +1 -1
  53. package/commands/run-long.md +1 -1
  54. package/commands/run.json +2 -3
  55. package/commands/serve-impl.d.ts +2 -2
  56. package/commands/serve-impl.js +4 -4
  57. package/commands/serve.json +1 -1
  58. package/commands/test-impl.d.ts +1 -1
  59. package/commands/test-impl.js +1 -1
  60. package/commands/test-long.md +1 -1
  61. package/commands/test.json +1 -1
  62. package/commands/update-impl.d.ts +9 -2
  63. package/commands/update-impl.js +29 -23
  64. package/commands/update.d.ts +2 -1
  65. package/commands/update.json +1 -1
  66. package/commands/version-impl.d.ts +8 -0
  67. package/commands/version-impl.js +19 -6
  68. package/commands/version.json +2 -4
  69. package/lib/cli/index.d.ts +7 -0
  70. package/lib/cli/index.js +14 -16
  71. package/lib/config/schema.json +20 -12
  72. package/lib/config/workspace-schema.d.ts +4 -0
  73. package/lib/init.d.ts +1 -1
  74. package/lib/init.js +11 -10
  75. package/models/analytics-collector.d.ts +1 -2
  76. package/models/analytics-collector.js +7 -8
  77. package/models/analytics.d.ts +7 -0
  78. package/models/analytics.js +6 -8
  79. package/models/architect-command.d.ts +2 -2
  80. package/models/architect-command.js +10 -11
  81. package/models/command-runner.d.ts +1 -1
  82. package/models/command-runner.js +8 -7
  83. package/models/command.d.ts +3 -4
  84. package/models/command.js +17 -21
  85. package/models/error.d.ts +1 -1
  86. package/models/error.js +1 -1
  87. package/models/interface.d.ts +2 -2
  88. package/models/interface.js +7 -0
  89. package/models/parser.d.ts +1 -2
  90. package/models/parser.js +12 -15
  91. package/models/schematic-command.d.ts +1 -1
  92. package/models/schematic-command.js +48 -49
  93. package/models/schematic-engine-host.d.ts +1 -1
  94. package/models/schematic-engine-host.js +4 -4
  95. package/models/version.d.ts +1 -1
  96. package/models/version.js +1 -1
  97. package/package.json +14 -14
  98. package/src/commands/update/schematic/index.d.ts +7 -0
  99. package/src/commands/update/schematic/index.js +59 -56
  100. package/src/commands/update/schematic/npm-package-json.d.ts +1 -1
  101. package/src/commands/update/schematic/npm-package-json.js +7 -0
  102. package/src/commands/update/schematic/npm.d.ts +1 -1
  103. package/src/commands/update/schematic/npm.js +9 -4
  104. package/src/commands/update/schematic/package-json.d.ts +1 -1
  105. package/src/commands/update/schematic/package-json.js +1 -7
  106. package/src/commands/update/schematic/schema.json +2 -8
  107. package/utilities/color.d.ts +1 -1
  108. package/utilities/color.js +3 -3
  109. package/utilities/config.d.ts +1 -1
  110. package/utilities/config.js +24 -7
  111. package/utilities/find-up.d.ts +1 -1
  112. package/utilities/find-up.js +1 -1
  113. package/utilities/install-package.d.ts +7 -5
  114. package/utilities/install-package.js +37 -23
  115. package/utilities/json-file.d.ts +1 -1
  116. package/utilities/json-file.js +4 -4
  117. package/utilities/json-schema.d.ts +1 -1
  118. package/utilities/json-schema.js +30 -27
  119. package/utilities/log-file.d.ts +1 -1
  120. package/utilities/log-file.js +1 -1
  121. package/utilities/package-manager.d.ts +7 -0
  122. package/utilities/package-manager.js +5 -5
  123. package/utilities/package-metadata.d.ts +1 -1
  124. package/utilities/package-metadata.js +8 -1
  125. package/utilities/package-tree.d.ts +1 -1
  126. package/utilities/package-tree.js +1 -1
  127. package/utilities/project.d.ts +7 -0
  128. package/utilities/project.js +3 -3
  129. package/utilities/prompt.d.ts +7 -0
  130. package/utilities/prompt.js +3 -3
  131. package/utilities/spinner.d.ts +1 -1
  132. package/utilities/spinner.js +1 -1
  133. package/utilities/tty.d.ts +1 -1
  134. package/utilities/tty.js +1 -1
package/commands/doc.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.",
5
5
  "$longDescription": "",
6
6
 
7
- "$aliases": [ "d" ],
7
+ "$aliases": ["d"],
8
8
  "$type": "native",
9
9
  "$impl": "./doc-impl#DocCommand",
10
10
 
@@ -26,7 +26,7 @@
26
26
  "default": false,
27
27
  "description": "Search all of angular.io. Otherwise, searches only API reference documentation."
28
28
  },
29
- "version" : {
29
+ "version": {
30
30
  "oneOf": [
31
31
  {
32
32
  "type": "number",
@@ -39,8 +39,7 @@
39
39
  "description": "Contains the version of Angular to use for the documentation. If not provided, the command uses your current Angular core version."
40
40
  }
41
41
  },
42
- "required": [
43
- ]
42
+ "required": []
44
43
  },
45
44
  { "$ref": "./definitions.json#/definitions/base" }
46
45
  ]
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
@@ -1,2 +1,2 @@
1
1
  Must be executed from within a workspace directory.
2
- When a project name is not supplied, it will execute for all projects.
2
+ When a project name is not supplied, it will execute for all projects.
package/commands/e2e.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Builds and serves an Angular app, then runs end-to-end tests.",
5
5
  "$longDescription": "./e2e-long.md",
6
6
 
7
- "$aliases": [ "e" ],
7
+ "$aliases": ["e"],
8
8
  "$scope": "in",
9
9
  "$type": "architect",
10
10
  "$impl": "./e2e-impl#E2eCommand",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AwesomeCommand = void 0;
4
2
  /**
5
3
  * @license
6
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
7
5
  *
8
6
  * Use of this source code is governed by an MIT-style license that can be
9
7
  * found in the LICENSE file at https://angular.io/license
10
8
  */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AwesomeCommand = void 0;
11
11
  const command_1 = require("../models/command");
12
12
  const color_1 = require("../utilities/color");
13
13
  function pickOne(of) {
@@ -8,7 +8,5 @@
8
8
  "$impl": "./easter-egg-impl#AwesomeCommand",
9
9
 
10
10
  "type": "object",
11
- "allOf": [
12
- { "$ref": "./definitions.json#/definitions/base" }
13
- ]
11
+ "allOf": [{ "$ref": "./definitions.json#/definitions/base" }]
14
12
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
@@ -17,13 +17,14 @@ class ExtractI18nCommand extends architect_command_1.ArchitectCommand {
17
17
  async run(options) {
18
18
  const version = process.version.substr(1).split('.');
19
19
  if (Number(version[0]) === 12 && Number(version[1]) === 0) {
20
- this.logger.error('Due to a defect in Node.js 12.0, the command is not supported on this Node.js version. '
21
- + 'Please upgrade to Node.js 12.1 or later.');
20
+ this.logger.error('Due to a defect in Node.js 12.0, the command is not supported on this Node.js version. ' +
21
+ 'Please upgrade to Node.js 12.1 or later.');
22
22
  return 1;
23
23
  }
24
24
  const commandName = process.argv[2];
25
25
  if (['xi18n', 'i18n-extract'].includes(commandName)) {
26
- this.logger.warn(`Warning: "ng ${commandName}" has been deprecated and will be removed in a future major version. Please use "ng extract-i18n" instead.`);
26
+ this.logger.warn(`Warning: "ng ${commandName}" has been deprecated and will be removed in a future major version. ` +
27
+ 'Please use "ng extract-i18n" instead.');
27
28
  }
28
29
  return this.runArchitectTarget(options);
29
30
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.GenerateCommand = void 0;
4
11
  const schematic_command_1 = require("../models/schematic-command");
@@ -33,7 +40,7 @@ class GenerateCommand extends schematic_command_1.SchematicCommand {
33
40
  subcommands[`${collectionName}:${name}`] = subcommand;
34
41
  }
35
42
  }
36
- this.description.options.forEach(option => {
43
+ this.description.options.forEach((option) => {
37
44
  if (option.name == 'schematic') {
38
45
  option.subcommands = subcommands;
39
46
  }
@@ -71,7 +78,7 @@ class GenerateCommand extends schematic_command_1.SchematicCommand {
71
78
  await super.printHelp();
72
79
  this.logger.info('');
73
80
  // Find the generate subcommand.
74
- const subcommand = this.description.options.filter(x => x.subcommands)[0];
81
+ const subcommand = this.description.options.filter((x) => x.subcommands)[0];
75
82
  if (Object.keys((subcommand && subcommand.subcommands) || {}).length == 1) {
76
83
  this.logger.info(`\nTo see help for a schematic run:`);
77
84
  this.logger.info(color_1.colors.cyan(` ng generate <schematic> --help`));
@@ -4,7 +4,7 @@
4
4
  "description": "Generates and/or modifies files based on a schematic.",
5
5
  "$longDescription": "",
6
6
 
7
- "$aliases": [ "g" ],
7
+ "$aliases": ["g"],
8
8
  "$scope": "in",
9
9
  "$type": "schematics",
10
10
  "$impl": "./generate-impl#GenerateCommand",
@@ -22,8 +22,7 @@
22
22
  }
23
23
  }
24
24
  },
25
- "required": [
26
- ]
25
+ "required": []
27
26
  },
28
27
  { "$ref": "./definitions.json#/definitions/base" },
29
28
  { "$ref": "./definitions.json#/definitions/schematic" },
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HelpCommand = void 0;
4
2
  /**
5
3
  * @license
6
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
7
5
  *
8
6
  * Use of this source code is governed by an MIT-style license that can be
9
7
  * found in the LICENSE file at https://angular.io/license
10
8
  */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.HelpCommand = void 0;
11
11
  const command_1 = require("../models/command");
12
12
  const color_1 = require("../utilities/color");
13
13
  class HelpCommand extends command_1.Command {
@@ -1,7 +1,7 @@
1
- For help with individual commands, use the `--help` or `-h` option with the command.
1
+ For help with individual commands, use the `--help` or `-h` option with the command.
2
2
 
3
- For example,
3
+ For example,
4
4
 
5
- ```sh
6
- ng help serve
7
- ```
5
+ ```sh
6
+ ng help serve
7
+ ```
@@ -9,7 +9,5 @@
9
9
  "$impl": "./help-impl#HelpCommand",
10
10
 
11
11
  "type": "object",
12
- "allOf": [
13
- { "$ref": "./definitions.json#/definitions/base" }
14
- ]
12
+ "allOf": [{ "$ref": "./definitions.json#/definitions/base" }]
15
13
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LintCommand = void 0;
4
2
  /**
5
3
  * @license
6
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
7
5
  *
8
6
  * Use of this source code is governed by an MIT-style license that can be
9
7
  * found in the LICENSE file at https://angular.io/license
10
8
  */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.LintCommand = void 0;
11
11
  const architect_command_1 = require("../models/architect-command");
12
12
  const MissingBuilder = `
13
13
  Cannot find "lint" target for the specified project.
@@ -17,4 +17,4 @@ For example:
17
17
  }
18
18
  }
19
19
  }
20
- ```
20
+ ```
@@ -24,9 +24,7 @@
24
24
  "configuration": {
25
25
  "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.",
26
26
  "type": "string",
27
- "aliases": [
28
- "c"
29
- ]
27
+ "aliases": ["c"]
30
28
  }
31
29
  },
32
30
  "required": []
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.NewCommand = void 0;
4
11
  const schematic_command_1 = require("../models/schematic-command");
@@ -9,7 +16,7 @@ class NewCommand extends schematic_command_1.SchematicCommand {
9
16
  this.schematicName = 'ng-new';
10
17
  }
11
18
  async initialize(options) {
12
- this.collectionName = options.collection || await this.getDefaultSchematicCollection();
19
+ this.collectionName = options.collection || (await this.getDefaultSchematicCollection());
13
20
  return super.initialize(options);
14
21
  }
15
22
  async run(options) {
package/commands/new.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Creates a new workspace and an initial Angular application.",
5
5
  "$longDescription": "./new.md",
6
6
 
7
- "$aliases": [ "n" ],
7
+ "$aliases": ["n"],
8
8
  "$scope": "out",
9
9
  "$type": "schematic",
10
10
  "$impl": "./new-impl#NewCommand",
@@ -15,13 +15,13 @@
15
15
  "properties": {
16
16
  "collection": {
17
17
  "type": "string",
18
- "aliases": [ "c" ],
18
+ "aliases": ["c"],
19
19
  "description": "A collection of schematics to use in generating the initial application."
20
20
  },
21
21
  "verbose": {
22
22
  "type": "boolean",
23
23
  "default": false,
24
- "aliases": [ "v" ],
24
+ "aliases": ["v"],
25
25
  "description": "Add more details to output logging."
26
26
  }
27
27
  },
package/commands/new.md CHANGED
@@ -3,14 +3,14 @@ Creates and initializes a new Angular application that is the default project fo
3
3
  Provides interactive prompts for optional configuration, such as adding routing support.
4
4
  All prompts can safely be allowed to default.
5
5
 
6
- * The new workspace folder is given the specified project name, and contains configuration files at the top level.
6
+ - The new workspace folder is given the specified project name, and contains configuration files at the top level.
7
7
 
8
- * By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder. Corresponding end-to-end tests are placed in the `e2e/` subfolder.
8
+ - By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder. Corresponding end-to-end tests are placed in the `e2e/` subfolder.
9
9
 
10
- * The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
10
+ - The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
11
11
 
12
- * Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.
12
+ - Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.
13
13
 
14
14
  If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--createApplication` option to false.
15
15
  You can then use `ng generate application` to create an initial application.
16
- This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.
16
+ This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
@@ -13,4 +13,4 @@ Execute the command using the following format.
13
13
 
14
14
  ```
15
15
  ng run project:target[:configuration]
16
- ```
16
+ ```
package/commands/run.json CHANGED
@@ -24,11 +24,10 @@
24
24
  "configuration": {
25
25
  "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.",
26
26
  "type": "string",
27
- "aliases": [ "c" ]
27
+ "aliases": ["c"]
28
28
  }
29
29
  },
30
- "required": [
31
- ]
30
+ "required": []
32
31
  },
33
32
  {
34
33
  "$ref": "./definitions.json#/definitions/base"
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -10,6 +10,6 @@ import { Arguments } from '../models/interface';
10
10
  import { Schema as ServeCommandSchema } from './serve';
11
11
  export declare class ServeCommand extends ArchitectCommand<ServeCommandSchema> {
12
12
  readonly target = "serve";
13
- validate(_options: ArchitectCommandOptions & Arguments): boolean;
13
+ validate(): boolean;
14
14
  run(options: ArchitectCommandOptions & Arguments): Promise<number>;
15
15
  }
@@ -1,20 +1,20 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServeCommand = void 0;
4
2
  /**
5
3
  * @license
6
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
7
5
  *
8
6
  * Use of this source code is governed by an MIT-style license that can be
9
7
  * found in the LICENSE file at https://angular.io/license
10
8
  */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ServeCommand = void 0;
11
11
  const architect_command_1 = require("../models/architect-command");
12
12
  class ServeCommand extends architect_command_1.ArchitectCommand {
13
13
  constructor() {
14
14
  super(...arguments);
15
15
  this.target = 'serve';
16
16
  }
17
- validate(_options) {
17
+ validate() {
18
18
  return true;
19
19
  }
20
20
  async run(options) {
@@ -4,7 +4,7 @@
4
4
  "description": "Builds and serves your app, rebuilding on file changes.",
5
5
  "$longDescription": "",
6
6
 
7
- "$aliases": [ "s" ],
7
+ "$aliases": ["s"],
8
8
  "$scope": "in",
9
9
  "$type": "architect",
10
10
  "$impl": "./serve-impl#ServeCommand",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
@@ -1,2 +1,2 @@
1
1
  Takes the name of the project, as specified in the `projects` section of the `angular.json` workspace configuration file.
2
- When a project name is not supplied, it will execute for all projects.
2
+ When a project name is not supplied, it will execute for all projects.
@@ -4,7 +4,7 @@
4
4
  "description": "Runs unit tests in a project.",
5
5
  "$longDescription": "./test-long.md",
6
6
 
7
- "$aliases": [ "t" ],
7
+ "$aliases": ["t"],
8
8
  "$scope": "in",
9
9
  "$type": "architect",
10
10
  "$impl": "./test-impl#TestCommand",
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
1
8
  import { Command } from '../models/command';
2
9
  import { Arguments } from '../models/interface';
3
10
  import { Schema as UpdateCommandSchema } from './update';
@@ -5,7 +12,7 @@ export declare class UpdateCommand extends Command<UpdateCommandSchema> {
5
12
  readonly allowMissingWorkspace = true;
6
13
  private workflow;
7
14
  private packageManager;
8
- initialize(): Promise<void>;
15
+ initialize(options: UpdateCommandSchema & Arguments): Promise<void>;
9
16
  private executeSchematic;
10
17
  /**
11
18
  * @return Whether or not the migration was performed successfully.
@@ -25,6 +32,6 @@ export declare class UpdateCommand extends Command<UpdateCommandSchema> {
25
32
  /**
26
33
  * Checks if the current installed CLI version is older than the latest version.
27
34
  * @returns `true` when the installed version is older.
28
- */
35
+ */
29
36
  private checkCLILatestVersion;
30
37
  }