@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.
- package/README.md +34 -30
- package/bin/ng +3 -3
- package/bin/postinstall/analytics-prompt.js +1 -1
- package/commands/add-impl.d.ts +7 -0
- package/commands/add-impl.js +18 -20
- package/commands/add.json +1 -2
- package/commands/add.md +1 -0
- package/commands/analytics-impl.d.ts +8 -1
- package/commands/analytics-impl.js +7 -7
- package/commands/analytics-long.md +8 -7
- package/commands/analytics.json +3 -15
- package/commands/build-impl.d.ts +1 -1
- package/commands/build-impl.js +3 -3
- package/commands/build.json +1 -1
- package/commands/config-impl.d.ts +2 -2
- package/commands/config-impl.js +16 -11
- package/commands/config-long.md +1 -1
- package/commands/config.json +1 -2
- package/commands/definitions.json +3 -5
- package/commands/deploy-impl.d.ts +1 -1
- package/commands/deploy-impl.js +3 -3
- package/commands/deploy-long.md +1 -1
- package/commands/deploy.json +1 -3
- package/commands/doc-impl.d.ts +1 -1
- package/commands/doc-impl.js +2 -2
- package/commands/doc.json +3 -4
- package/commands/e2e-impl.d.ts +1 -1
- package/commands/e2e-impl.js +1 -1
- package/commands/e2e-long.md +1 -1
- package/commands/e2e.json +1 -1
- package/commands/easter-egg-impl.d.ts +1 -1
- package/commands/easter-egg-impl.js +3 -3
- package/commands/easter-egg.json +1 -3
- package/commands/extract-i18n-impl.d.ts +1 -1
- package/commands/extract-i18n-impl.js +5 -4
- package/commands/generate-impl.d.ts +1 -1
- package/commands/generate-impl.js +9 -2
- package/commands/generate.json +2 -3
- package/commands/help-impl.d.ts +1 -1
- package/commands/help-impl.js +3 -3
- package/commands/help-long.md +5 -5
- package/commands/help.json +1 -3
- package/commands/lint-impl.d.ts +1 -1
- package/commands/lint-impl.js +3 -3
- package/commands/lint-long.md +1 -1
- package/commands/lint.json +1 -3
- package/commands/new-impl.d.ts +1 -1
- package/commands/new-impl.js +8 -1
- package/commands/new.json +3 -3
- package/commands/new.md +5 -5
- package/commands/run-impl.d.ts +1 -1
- package/commands/run-impl.js +1 -1
- package/commands/run-long.md +1 -1
- package/commands/run.json +2 -3
- package/commands/serve-impl.d.ts +2 -2
- package/commands/serve-impl.js +4 -4
- package/commands/serve.json +1 -1
- package/commands/test-impl.d.ts +1 -1
- package/commands/test-impl.js +1 -1
- package/commands/test-long.md +1 -1
- package/commands/test.json +1 -1
- package/commands/update-impl.d.ts +9 -2
- package/commands/update-impl.js +29 -23
- package/commands/update.d.ts +2 -1
- package/commands/update.json +1 -1
- package/commands/version-impl.d.ts +8 -0
- package/commands/version-impl.js +19 -6
- package/commands/version.json +2 -4
- package/lib/cli/index.d.ts +7 -0
- package/lib/cli/index.js +14 -16
- package/lib/config/schema.json +20 -12
- package/lib/config/workspace-schema.d.ts +4 -0
- package/lib/init.d.ts +1 -1
- package/lib/init.js +11 -10
- package/models/analytics-collector.d.ts +1 -2
- package/models/analytics-collector.js +7 -8
- package/models/analytics.d.ts +7 -0
- package/models/analytics.js +6 -8
- package/models/architect-command.d.ts +2 -2
- package/models/architect-command.js +10 -11
- package/models/command-runner.d.ts +1 -1
- package/models/command-runner.js +8 -7
- package/models/command.d.ts +3 -4
- package/models/command.js +17 -21
- package/models/error.d.ts +1 -1
- package/models/error.js +1 -1
- package/models/interface.d.ts +2 -2
- package/models/interface.js +7 -0
- package/models/parser.d.ts +1 -2
- package/models/parser.js +12 -15
- package/models/schematic-command.d.ts +1 -1
- package/models/schematic-command.js +48 -49
- package/models/schematic-engine-host.d.ts +1 -1
- package/models/schematic-engine-host.js +4 -4
- package/models/version.d.ts +1 -1
- package/models/version.js +1 -1
- package/package.json +14 -14
- package/src/commands/update/schematic/index.d.ts +7 -0
- package/src/commands/update/schematic/index.js +59 -56
- package/src/commands/update/schematic/npm-package-json.d.ts +1 -1
- package/src/commands/update/schematic/npm-package-json.js +7 -0
- package/src/commands/update/schematic/npm.d.ts +1 -1
- package/src/commands/update/schematic/npm.js +9 -4
- package/src/commands/update/schematic/package-json.d.ts +1 -1
- package/src/commands/update/schematic/package-json.js +1 -7
- package/src/commands/update/schematic/schema.json +2 -8
- package/utilities/color.d.ts +1 -1
- package/utilities/color.js +3 -3
- package/utilities/config.d.ts +1 -1
- package/utilities/config.js +24 -7
- package/utilities/find-up.d.ts +1 -1
- package/utilities/find-up.js +1 -1
- package/utilities/install-package.d.ts +7 -5
- package/utilities/install-package.js +37 -23
- package/utilities/json-file.d.ts +1 -1
- package/utilities/json-file.js +4 -4
- package/utilities/json-schema.d.ts +1 -1
- package/utilities/json-schema.js +30 -27
- package/utilities/log-file.d.ts +1 -1
- package/utilities/log-file.js +1 -1
- package/utilities/package-manager.d.ts +7 -0
- package/utilities/package-manager.js +5 -5
- package/utilities/package-metadata.d.ts +1 -1
- package/utilities/package-metadata.js +8 -1
- package/utilities/package-tree.d.ts +1 -1
- package/utilities/package-tree.js +1 -1
- package/utilities/project.d.ts +7 -0
- package/utilities/project.js +3 -3
- package/utilities/prompt.d.ts +7 -0
- package/utilities/prompt.js +3 -3
- package/utilities/spinner.d.ts +1 -1
- package/utilities/spinner.js +1 -1
- package/utilities/tty.d.ts +1 -1
- 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": [
|
|
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
|
]
|
package/commands/e2e-impl.d.ts
CHANGED
package/commands/e2e-impl.js
CHANGED
package/commands/e2e-long.md
CHANGED
|
@@ -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
|
@@ -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
|
|
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) {
|
package/commands/easter-egg.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright Google
|
|
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
|
-
|
|
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.
|
|
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,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`));
|
package/commands/generate.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "Generates and/or modifies files based on a schematic.",
|
|
5
5
|
"$longDescription": "",
|
|
6
6
|
|
|
7
|
-
"$aliases": [
|
|
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" },
|
package/commands/help-impl.d.ts
CHANGED
package/commands/help-impl.js
CHANGED
|
@@ -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
|
|
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 {
|
package/commands/help-long.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
For help with individual commands, use the `--help` or `-h` option with the command.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
For example,
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
```sh
|
|
6
|
+
ng help serve
|
|
7
|
+
```
|
package/commands/help.json
CHANGED
package/commands/lint-impl.d.ts
CHANGED
package/commands/lint-impl.js
CHANGED
|
@@ -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
|
|
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.
|
package/commands/lint-long.md
CHANGED
package/commands/lint.json
CHANGED
|
@@ -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": []
|
package/commands/new-impl.d.ts
CHANGED
package/commands/new-impl.js
CHANGED
|
@@ -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": [
|
|
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": [
|
|
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": [
|
|
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
|
-
|
|
6
|
+
- The new workspace folder is given the specified project name, and contains configuration files at the top level.
|
|
7
7
|
|
|
8
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
package/commands/run-impl.d.ts
CHANGED
package/commands/run-impl.js
CHANGED
package/commands/run-long.md
CHANGED
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": [
|
|
27
|
+
"aliases": ["c"]
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"required": [
|
|
31
|
-
]
|
|
30
|
+
"required": []
|
|
32
31
|
},
|
|
33
32
|
{
|
|
34
33
|
"$ref": "./definitions.json#/definitions/base"
|
package/commands/serve-impl.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright Google
|
|
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(
|
|
13
|
+
validate(): boolean;
|
|
14
14
|
run(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
|
15
15
|
}
|
package/commands/serve-impl.js
CHANGED
|
@@ -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
|
|
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(
|
|
17
|
+
validate() {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
20
|
async run(options) {
|
package/commands/serve.json
CHANGED
package/commands/test-impl.d.ts
CHANGED
package/commands/test-impl.js
CHANGED
package/commands/test-long.md
CHANGED
|
@@ -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.
|
package/commands/test.json
CHANGED
|
@@ -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
|
}
|