@angular/cli 14.0.0-next.1 → 14.0.0-next.12
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/bin/ng.js +3 -5
- package/lib/cli/index.d.ts +1 -2
- package/lib/cli/index.js +16 -45
- package/lib/config/schema.json +48 -15
- package/lib/config/workspace-schema.d.ts +18 -1
- package/lib/init.js +10 -9
- package/package.json +21 -23
- package/{models → src/analytics}/analytics-collector.d.ts +0 -0
- package/{models → src/analytics}/analytics-collector.js +8 -2
- package/src/analytics/analytics.d.ts +47 -0
- package/src/analytics/analytics.js +306 -0
- package/src/command-builder/architect-base-command-module.d.ts +30 -0
- package/src/command-builder/architect-base-command-module.js +165 -0
- package/src/command-builder/architect-command-module.d.ts +25 -0
- package/src/command-builder/architect-command-module.js +134 -0
- package/src/command-builder/command-module.d.ts +89 -0
- package/src/command-builder/command-module.js +198 -0
- package/{utilities/package-json.js → src/command-builder/command-runner.d.ts} +2 -2
- package/src/command-builder/command-runner.js +168 -0
- package/src/command-builder/schematics-command-module.d.ts +43 -0
- package/src/command-builder/schematics-command-module.js +333 -0
- package/src/command-builder/utilities/command.d.ts +13 -0
- package/src/command-builder/utilities/command.js +27 -0
- package/src/command-builder/utilities/json-help.d.ts +36 -0
- package/src/command-builder/utilities/json-help.js +94 -0
- package/src/command-builder/utilities/json-schema.d.ts +40 -0
- package/{utilities → src/command-builder/utilities}/json-schema.js +20 -121
- package/src/command-builder/utilities/normalize-options-middleware.d.ts +18 -0
- package/src/command-builder/utilities/normalize-options-middleware.js +59 -0
- package/{models → src/command-builder/utilities}/schematic-engine-host.d.ts +2 -2
- package/{models → src/command-builder/utilities}/schematic-engine-host.js +33 -18
- package/src/command-builder/utilities/schematic-workflow.d.ts +14 -0
- package/src/command-builder/utilities/schematic-workflow.js +68 -0
- package/src/commands/add/cli.d.ts +33 -0
- package/{commands/add-impl.js → src/commands/add/cli.js} +108 -80
- package/src/commands/add/long-description.md +7 -0
- package/src/commands/analytics/cli.d.ts +16 -0
- package/src/commands/analytics/cli.js +35 -0
- package/src/commands/analytics/info/cli.d.ts +16 -0
- package/src/commands/analytics/info/cli.js +26 -0
- package/src/commands/analytics/settings/cli.d.ts +35 -0
- package/src/commands/analytics/settings/cli.js +61 -0
- package/src/commands/build/cli.d.ts +16 -0
- package/src/commands/build/cli.js +23 -0
- package/{commands/build-long.md → src/commands/build/long-description.md} +0 -0
- package/src/commands/cache/clean/cli.d.ts +17 -0
- package/src/commands/cache/clean/cli.js +32 -0
- package/src/commands/cache/cli.d.ts +17 -0
- package/src/commands/cache/cli.js +38 -0
- package/src/commands/cache/info/cli.d.ts +20 -0
- package/src/commands/cache/info/cli.js +82 -0
- package/src/commands/cache/long-description.md +53 -0
- package/src/commands/cache/settings/cli.d.ts +27 -0
- package/src/commands/cache/settings/cli.js +42 -0
- package/src/commands/cache/utilities.d.ts +11 -0
- package/src/commands/cache/utilities.js +49 -0
- package/src/commands/completion/cli.d.ts +16 -0
- package/src/commands/completion/cli.js +31 -0
- package/src/commands/completion/long-description.md +1 -0
- package/src/commands/config/cli.d.ts +24 -0
- package/{commands/config-impl.js → src/commands/config/cli.js} +102 -89
- package/{commands/config-long.md → src/commands/config/long-description.md} +2 -2
- package/src/commands/deploy/cli.d.ts +17 -0
- package/src/commands/deploy/cli.js +49 -0
- package/{commands/deploy-long.md → src/commands/deploy/long-description.md} +0 -0
- package/src/commands/doc/cli.d.ts +23 -0
- package/{commands/doc-impl.js → src/commands/doc/cli.js} +41 -12
- package/src/commands/e2e/cli.d.ts +18 -0
- package/src/commands/e2e/cli.js +35 -0
- package/src/commands/extract-i18n/cli.d.ts +15 -0
- package/src/commands/extract-i18n/cli.js +20 -0
- package/src/commands/generate/cli.d.ts +39 -0
- package/src/commands/generate/cli.js +145 -0
- package/src/commands/lint/cli.d.ts +17 -0
- package/src/commands/lint/cli.js +28 -0
- package/{commands/lint-long.md → src/commands/lint/long-description.md} +0 -0
- package/src/commands/make-this-awesome/cli.d.ts +17 -0
- package/{commands/easter-egg-impl.js → src/commands/make-this-awesome/cli.js} +17 -10
- package/src/commands/new/cli.d.ts +27 -0
- package/src/commands/new/cli.js +82 -0
- package/src/commands/run/cli.d.ts +25 -0
- package/src/commands/run/cli.js +83 -0
- package/{commands/run-long.md → src/commands/run/long-description.md} +0 -0
- package/src/commands/serve/cli.d.ts +16 -0
- package/src/commands/serve/cli.js +21 -0
- package/src/commands/test/cli.d.ts +16 -0
- package/src/commands/test/cli.js +23 -0
- package/{commands/test-long.md → src/commands/test/long-description.md} +0 -0
- package/{commands/update-impl.d.ts → src/commands/update/cli.d.ts} +26 -9
- package/{commands/update-impl.js → src/commands/update/cli.js} +363 -316
- package/{commands/update-long.md → src/commands/update/long-description.md} +0 -0
- package/src/commands/update/schematic/index.js +33 -20
- package/src/commands/version/cli.d.ts +18 -0
- package/{commands/version-impl.js → src/commands/version/cli.js} +56 -74
- package/src/typings-bazel.d.ts +14 -0
- package/src/typings.d.ts +1 -14
- package/{utilities → src/utilities}/color.d.ts +0 -0
- package/{utilities → src/utilities}/color.js +5 -1
- package/{utilities → src/utilities}/config.d.ts +6 -5
- package/{utilities → src/utilities}/config.js +33 -19
- package/src/utilities/environment-options.d.ts +12 -0
- package/src/utilities/environment-options.js +24 -0
- package/{utilities → src/utilities}/find-up.d.ts +0 -0
- package/{utilities → src/utilities}/find-up.js +5 -1
- package/{utilities → src/utilities}/json-file.d.ts +0 -0
- package/{utilities → src/utilities}/json-file.js +1 -0
- package/{utilities → src/utilities}/log-file.d.ts +0 -0
- package/{utilities → src/utilities}/log-file.js +0 -0
- package/src/utilities/memoize.d.ts +15 -0
- package/src/utilities/memoize.js +69 -0
- package/src/utilities/package-manager.d.ts +41 -0
- package/src/utilities/package-manager.js +287 -0
- package/{utilities → src/utilities}/package-metadata.d.ts +15 -37
- package/{utilities → src/utilities}/package-metadata.js +15 -27
- package/{utilities → src/utilities}/package-tree.d.ts +2 -2
- package/{utilities → src/utilities}/package-tree.js +5 -1
- package/{utilities → src/utilities}/project.d.ts +0 -0
- package/{utilities → src/utilities}/project.js +5 -1
- package/{utilities → src/utilities}/prompt.d.ts +2 -0
- package/{utilities → src/utilities}/prompt.js +25 -4
- package/{utilities → src/utilities}/spinner.d.ts +0 -0
- package/{utilities → src/utilities}/spinner.js +0 -0
- package/{utilities → src/utilities}/tty.d.ts +0 -0
- package/{utilities → src/utilities}/tty.js +0 -0
- package/{models → src/utilities}/version.d.ts +2 -1
- package/{models → src/utilities}/version.js +6 -6
- package/bin/postinstall/analytics-prompt.js +0 -27
- package/bin/postinstall/script.js +0 -16
- package/commands/add-impl.d.ts +0 -21
- package/commands/add.d.ts +0 -42
- package/commands/add.js +0 -10
- package/commands/add.json +0 -54
- package/commands/add.md +0 -10
- package/commands/analytics-impl.d.ts +0 -13
- package/commands/analytics-impl.js +0 -80
- package/commands/analytics-long.md +0 -8
- package/commands/analytics.d.ts +0 -46
- package/commands/analytics.js +0 -31
- package/commands/analytics.json +0 -37
- package/commands/build-impl.d.ts +0 -14
- package/commands/build-impl.js +0 -21
- package/commands/build.d.ts +0 -30
- package/commands/build.js +0 -10
- package/commands/build.json +0 -16
- package/commands/config-impl.d.ts +0 -15
- package/commands/config.d.ts +0 -34
- package/commands/config.js +0 -10
- package/commands/config.json +0 -43
- package/commands/definitions.json +0 -66
- package/commands/deploy-impl.d.ts +0 -15
- package/commands/deploy-impl.js +0 -36
- package/commands/deploy.d.ts +0 -30
- package/commands/deploy.js +0 -10
- package/commands/deploy.json +0 -34
- package/commands/doc-impl.d.ts +0 -13
- package/commands/doc.d.ts +0 -39
- package/commands/doc.js +0 -14
- package/commands/doc.json +0 -46
- package/commands/e2e-impl.d.ts +0 -16
- package/commands/e2e-impl.js +0 -36
- package/commands/e2e-long.md +0 -4
- package/commands/e2e.d.ts +0 -29
- package/commands/e2e.js +0 -10
- package/commands/e2e.json +0 -17
- package/commands/easter-egg-impl.d.ts +0 -12
- package/commands/easter-egg.d.ts +0 -14
- package/commands/easter-egg.js +0 -10
- package/commands/easter-egg.json +0 -12
- package/commands/extract-i18n-impl.d.ts +0 -14
- package/commands/extract-i18n-impl.js +0 -32
- package/commands/extract-i18n.d.ts +0 -29
- package/commands/extract-i18n.js +0 -10
- package/commands/extract-i18n.json +0 -17
- package/commands/generate-impl.d.ts +0 -18
- package/commands/generate-impl.js +0 -89
- package/commands/generate.d.ts +0 -37
- package/commands/generate.js +0 -10
- package/commands/generate.json +0 -31
- package/commands/help-impl.d.ts +0 -12
- package/commands/help-impl.js +0 -26
- package/commands/help-long.md +0 -7
- package/commands/help.d.ts +0 -17
- package/commands/help.js +0 -10
- package/commands/help.json +0 -13
- package/commands/lint-impl.d.ts +0 -16
- package/commands/lint-impl.js +0 -69
- package/commands/lint.d.ts +0 -29
- package/commands/lint.js +0 -10
- package/commands/lint.json +0 -36
- package/commands/new-impl.d.ts +0 -16
- package/commands/new-impl.js +0 -37
- package/commands/new.d.ts +0 -41
- package/commands/new.js +0 -10
- package/commands/new.json +0 -34
- package/commands/new.md +0 -16
- package/commands/run-impl.d.ts +0 -13
- package/commands/run-impl.js +0 -22
- package/commands/run.d.ts +0 -30
- package/commands/run.js +0 -10
- package/commands/run.json +0 -36
- package/commands/serve-impl.d.ts +0 -15
- package/commands/serve-impl.js +0 -24
- package/commands/serve.d.ts +0 -29
- package/commands/serve.js +0 -10
- package/commands/serve.json +0 -17
- package/commands/test-impl.d.ts +0 -15
- package/commands/test-impl.js +0 -22
- package/commands/test.d.ts +0 -29
- package/commands/test.js +0 -10
- package/commands/test.json +0 -17
- package/commands/update.d.ts +0 -61
- package/commands/update.js +0 -10
- package/commands/update.json +0 -78
- package/commands/version-impl.d.ts +0 -17
- package/commands/version.d.ts +0 -17
- package/commands/version.js +0 -10
- package/commands/version.json +0 -13
- package/commands.json +0 -20
- package/models/analytics.d.ts +0 -58
- package/models/analytics.js +0 -358
- package/models/architect-command.d.ts +0 -35
- package/models/architect-command.js +0 -364
- package/models/command-runner.d.ts +0 -24
- package/models/command-runner.js +0 -241
- package/models/command.d.ts +0 -34
- package/models/command.js +0 -143
- package/models/interface.d.ts +0 -196
- package/models/interface.js +0 -31
- package/models/parser.d.ts +0 -39
- package/models/parser.js +0 -349
- package/models/schematic-command.d.ts +0 -55
- package/models/schematic-command.js +0 -485
- package/utilities/INITIAL_COMMIT_MESSAGE.txt +0 -8
- package/utilities/install-package.d.ts +0 -16
- package/utilities/install-package.js +0 -193
- package/utilities/json-schema.d.ts +0 -17
- package/utilities/package-json.d.ts +0 -249
- package/utilities/package-manager.d.ts +0 -13
- package/utilities/package-manager.js +0 -106
package/commands/run.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
-
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.HelpEnum = void 0;
|
|
6
|
-
var HelpEnum;
|
|
7
|
-
(function (HelpEnum) {
|
|
8
|
-
HelpEnum["HelpJson"] = "JSON";
|
|
9
|
-
HelpEnum["Json"] = "json";
|
|
10
|
-
})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
|
package/commands/run.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "ng-cli://commands/run.json",
|
|
4
|
-
"description": "Runs an Architect target with an optional custom builder configuration defined in your project.",
|
|
5
|
-
"$longDescription": "./run-long.md",
|
|
6
|
-
|
|
7
|
-
"$aliases": [],
|
|
8
|
-
"$scope": "in",
|
|
9
|
-
"$type": "architect",
|
|
10
|
-
"$impl": "./run-impl#RunCommand",
|
|
11
|
-
|
|
12
|
-
"type": "object",
|
|
13
|
-
"allOf": [
|
|
14
|
-
{
|
|
15
|
-
"properties": {
|
|
16
|
-
"target": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "The Architect target to run.",
|
|
19
|
-
"$default": {
|
|
20
|
-
"$source": "argv",
|
|
21
|
-
"index": 0
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"configuration": {
|
|
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
|
-
"type": "string",
|
|
27
|
-
"aliases": ["c"]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"required": []
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"$ref": "./definitions.json#/definitions/base"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
package/commands/serve-impl.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
*/
|
|
8
|
-
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
|
|
9
|
-
import { Arguments } from '../models/interface';
|
|
10
|
-
import { Schema as ServeCommandSchema } from './serve';
|
|
11
|
-
export declare class ServeCommand extends ArchitectCommand<ServeCommandSchema> {
|
|
12
|
-
readonly target = "serve";
|
|
13
|
-
validate(): boolean;
|
|
14
|
-
run(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
|
15
|
-
}
|
package/commands/serve-impl.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ServeCommand = void 0;
|
|
11
|
-
const architect_command_1 = require("../models/architect-command");
|
|
12
|
-
class ServeCommand extends architect_command_1.ArchitectCommand {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.target = 'serve';
|
|
16
|
-
}
|
|
17
|
-
validate() {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
async run(options) {
|
|
21
|
-
return this.runArchitectTarget(options);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.ServeCommand = ServeCommand;
|
package/commands/serve.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds and serves your app, rebuilding on file changes.
|
|
3
|
-
*/
|
|
4
|
-
export interface Schema {
|
|
5
|
-
/**
|
|
6
|
-
* One or more named builder configurations as a comma-separated list as specified in the
|
|
7
|
-
* "configurations" section of angular.json.
|
|
8
|
-
* The builder uses the named configurations to run the given target.
|
|
9
|
-
* For more information, see
|
|
10
|
-
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
11
|
-
*/
|
|
12
|
-
configuration?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Shows a help message for this command in the console.
|
|
15
|
-
*/
|
|
16
|
-
help?: HelpUnion;
|
|
17
|
-
/**
|
|
18
|
-
* The name of the project to build. Can be an application or a library.
|
|
19
|
-
*/
|
|
20
|
-
project?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Shows a help message for this command in the console.
|
|
24
|
-
*/
|
|
25
|
-
export declare type HelpUnion = boolean | HelpEnum;
|
|
26
|
-
export declare enum HelpEnum {
|
|
27
|
-
HelpJson = "JSON",
|
|
28
|
-
Json = "json"
|
|
29
|
-
}
|
package/commands/serve.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
-
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.HelpEnum = void 0;
|
|
6
|
-
var HelpEnum;
|
|
7
|
-
(function (HelpEnum) {
|
|
8
|
-
HelpEnum["HelpJson"] = "JSON";
|
|
9
|
-
HelpEnum["Json"] = "json";
|
|
10
|
-
})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
|
package/commands/serve.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "ng-cli://commands/serve.json",
|
|
4
|
-
"description": "Builds and serves your app, rebuilding on file changes.",
|
|
5
|
-
"$longDescription": "",
|
|
6
|
-
|
|
7
|
-
"$aliases": ["s"],
|
|
8
|
-
"$scope": "in",
|
|
9
|
-
"$type": "architect",
|
|
10
|
-
"$impl": "./serve-impl#ServeCommand",
|
|
11
|
-
|
|
12
|
-
"type": "object",
|
|
13
|
-
"allOf": [
|
|
14
|
-
{ "$ref": "./definitions.json#/definitions/architect" },
|
|
15
|
-
{ "$ref": "./definitions.json#/definitions/base" }
|
|
16
|
-
]
|
|
17
|
-
}
|
package/commands/test-impl.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
*/
|
|
8
|
-
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
|
|
9
|
-
import { Arguments } from '../models/interface';
|
|
10
|
-
import { Schema as TestCommandSchema } from './test';
|
|
11
|
-
export declare class TestCommand extends ArchitectCommand<TestCommandSchema> {
|
|
12
|
-
readonly target = "test";
|
|
13
|
-
readonly multiTarget = true;
|
|
14
|
-
run(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
|
15
|
-
}
|
package/commands/test-impl.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.TestCommand = void 0;
|
|
11
|
-
const architect_command_1 = require("../models/architect-command");
|
|
12
|
-
class TestCommand extends architect_command_1.ArchitectCommand {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.target = 'test';
|
|
16
|
-
this.multiTarget = true;
|
|
17
|
-
}
|
|
18
|
-
async run(options) {
|
|
19
|
-
return this.runArchitectTarget(options);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.TestCommand = TestCommand;
|
package/commands/test.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runs unit tests in a project.
|
|
3
|
-
*/
|
|
4
|
-
export interface Schema {
|
|
5
|
-
/**
|
|
6
|
-
* One or more named builder configurations as a comma-separated list as specified in the
|
|
7
|
-
* "configurations" section of angular.json.
|
|
8
|
-
* The builder uses the named configurations to run the given target.
|
|
9
|
-
* For more information, see
|
|
10
|
-
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
11
|
-
*/
|
|
12
|
-
configuration?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Shows a help message for this command in the console.
|
|
15
|
-
*/
|
|
16
|
-
help?: HelpUnion;
|
|
17
|
-
/**
|
|
18
|
-
* The name of the project to build. Can be an application or a library.
|
|
19
|
-
*/
|
|
20
|
-
project?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Shows a help message for this command in the console.
|
|
24
|
-
*/
|
|
25
|
-
export declare type HelpUnion = boolean | HelpEnum;
|
|
26
|
-
export declare enum HelpEnum {
|
|
27
|
-
HelpJson = "JSON",
|
|
28
|
-
Json = "json"
|
|
29
|
-
}
|
package/commands/test.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
-
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.HelpEnum = void 0;
|
|
6
|
-
var HelpEnum;
|
|
7
|
-
(function (HelpEnum) {
|
|
8
|
-
HelpEnum["HelpJson"] = "JSON";
|
|
9
|
-
HelpEnum["Json"] = "json";
|
|
10
|
-
})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
|
package/commands/test.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "ng-cli://commands/test.json",
|
|
4
|
-
"description": "Runs unit tests in a project.",
|
|
5
|
-
"$longDescription": "./test-long.md",
|
|
6
|
-
|
|
7
|
-
"$aliases": ["t"],
|
|
8
|
-
"$scope": "in",
|
|
9
|
-
"$type": "architect",
|
|
10
|
-
"$impl": "./test-impl#TestCommand",
|
|
11
|
-
|
|
12
|
-
"type": "object",
|
|
13
|
-
"allOf": [
|
|
14
|
-
{ "$ref": "./definitions.json#/definitions/architect" },
|
|
15
|
-
{ "$ref": "./definitions.json#/definitions/base" }
|
|
16
|
-
]
|
|
17
|
-
}
|
package/commands/update.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Updates your application and its dependencies. See https://update.angular.io/
|
|
3
|
-
*/
|
|
4
|
-
export interface Schema {
|
|
5
|
-
/**
|
|
6
|
-
* Whether to allow updating when the repository contains modified or untracked files.
|
|
7
|
-
*/
|
|
8
|
-
allowDirty?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Create source control commits for updates and migrations.
|
|
11
|
-
*/
|
|
12
|
-
createCommits?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Ignore peer dependency version mismatches. Passes the `--force` flag to the package
|
|
15
|
-
* manager when installing packages.
|
|
16
|
-
*/
|
|
17
|
-
force?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Version from which to migrate from. Only available with a single package being updated,
|
|
20
|
-
* and only on migration only.
|
|
21
|
-
*/
|
|
22
|
-
from?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Shows a help message for this command in the console.
|
|
25
|
-
*/
|
|
26
|
-
help?: HelpUnion;
|
|
27
|
-
/**
|
|
28
|
-
* Only perform a migration, do not update the installed version.
|
|
29
|
-
*/
|
|
30
|
-
migrateOnly?: MigrateOnly;
|
|
31
|
-
/**
|
|
32
|
-
* Use the prerelease version, including beta and RCs.
|
|
33
|
-
*/
|
|
34
|
-
next?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The names of package(s) to update.
|
|
37
|
-
*/
|
|
38
|
-
packages?: string[];
|
|
39
|
-
/**
|
|
40
|
-
* Version up to which to apply migrations. Only available with a single package being
|
|
41
|
-
* updated, and only on migrations only. Requires from to be specified. Default to the
|
|
42
|
-
* installed version detected.
|
|
43
|
-
*/
|
|
44
|
-
to?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Display additional details about internal operations during execution.
|
|
47
|
-
*/
|
|
48
|
-
verbose?: boolean;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Shows a help message for this command in the console.
|
|
52
|
-
*/
|
|
53
|
-
export declare type HelpUnion = boolean | HelpEnum;
|
|
54
|
-
export declare enum HelpEnum {
|
|
55
|
-
HelpJson = "JSON",
|
|
56
|
-
Json = "json"
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Only perform a migration, do not update the installed version.
|
|
60
|
-
*/
|
|
61
|
-
export declare type MigrateOnly = boolean | string;
|
package/commands/update.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
-
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.HelpEnum = void 0;
|
|
6
|
-
var HelpEnum;
|
|
7
|
-
(function (HelpEnum) {
|
|
8
|
-
HelpEnum["HelpJson"] = "JSON";
|
|
9
|
-
HelpEnum["Json"] = "json";
|
|
10
|
-
})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
|
package/commands/update.json
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "ng-cli://commands/update.json",
|
|
4
|
-
"description": "Updates your application and its dependencies. See https://update.angular.io/",
|
|
5
|
-
"$longDescription": "./update-long.md",
|
|
6
|
-
|
|
7
|
-
"$scope": "all",
|
|
8
|
-
"$aliases": [],
|
|
9
|
-
"$type": "schematics",
|
|
10
|
-
"$impl": "./update-impl#UpdateCommand",
|
|
11
|
-
|
|
12
|
-
"type": "object",
|
|
13
|
-
"allOf": [
|
|
14
|
-
{
|
|
15
|
-
"$ref": "./definitions.json#/definitions/base"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "object",
|
|
19
|
-
"properties": {
|
|
20
|
-
"packages": {
|
|
21
|
-
"description": "The names of package(s) to update.",
|
|
22
|
-
"type": "array",
|
|
23
|
-
"items": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"$default": {
|
|
27
|
-
"$source": "argv"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"force": {
|
|
31
|
-
"description": "Ignore peer dependency version mismatches. Passes the `--force` flag to the package manager when installing packages.",
|
|
32
|
-
"default": false,
|
|
33
|
-
"type": "boolean"
|
|
34
|
-
},
|
|
35
|
-
"next": {
|
|
36
|
-
"description": "Use the prerelease version, including beta and RCs.",
|
|
37
|
-
"default": false,
|
|
38
|
-
"type": "boolean"
|
|
39
|
-
},
|
|
40
|
-
"migrateOnly": {
|
|
41
|
-
"description": "Only perform a migration, do not update the installed version.",
|
|
42
|
-
"oneOf": [
|
|
43
|
-
{
|
|
44
|
-
"type": "boolean"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "The name of the migration to run."
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"from": {
|
|
53
|
-
"description": "Version from which to migrate from. Only available with a single package being updated, and only on migration only.",
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
"to": {
|
|
57
|
-
"description": "Version up to which to apply migrations. Only available with a single package being updated, and only on migrations only. Requires from to be specified. Default to the installed version detected.",
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
"allowDirty": {
|
|
61
|
-
"description": "Whether to allow updating when the repository contains modified or untracked files.",
|
|
62
|
-
"type": "boolean"
|
|
63
|
-
},
|
|
64
|
-
"verbose": {
|
|
65
|
-
"description": "Display additional details about internal operations during execution.",
|
|
66
|
-
"type": "boolean",
|
|
67
|
-
"default": false
|
|
68
|
-
},
|
|
69
|
-
"createCommits": {
|
|
70
|
-
"description": "Create source control commits for updates and migrations.",
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"default": false,
|
|
73
|
-
"aliases": ["C"]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
*/
|
|
8
|
-
import { Command } from '../models/command';
|
|
9
|
-
import { Schema as VersionCommandSchema } from './version';
|
|
10
|
-
export declare class VersionCommand extends Command<VersionCommandSchema> {
|
|
11
|
-
static aliases: string[];
|
|
12
|
-
private readonly localRequire;
|
|
13
|
-
private readonly workspaceRequire;
|
|
14
|
-
run(): Promise<void>;
|
|
15
|
-
private getVersion;
|
|
16
|
-
private getPackageManager;
|
|
17
|
-
}
|
package/commands/version.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Outputs Angular CLI version.
|
|
3
|
-
*/
|
|
4
|
-
export interface Schema {
|
|
5
|
-
/**
|
|
6
|
-
* Shows a help message for this command in the console.
|
|
7
|
-
*/
|
|
8
|
-
help?: HelpUnion;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Shows a help message for this command in the console.
|
|
12
|
-
*/
|
|
13
|
-
export declare type HelpUnion = boolean | HelpEnum;
|
|
14
|
-
export declare enum HelpEnum {
|
|
15
|
-
HelpJson = "JSON",
|
|
16
|
-
Json = "json"
|
|
17
|
-
}
|
package/commands/version.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
-
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.HelpEnum = void 0;
|
|
6
|
-
var HelpEnum;
|
|
7
|
-
(function (HelpEnum) {
|
|
8
|
-
HelpEnum["HelpJson"] = "JSON";
|
|
9
|
-
HelpEnum["Json"] = "json";
|
|
10
|
-
})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
|
package/commands/version.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "ng-cli://commands/version.json",
|
|
4
|
-
"description": "Outputs Angular CLI version.",
|
|
5
|
-
"$longDescription": "",
|
|
6
|
-
|
|
7
|
-
"$aliases": ["v"],
|
|
8
|
-
"$scope": "all",
|
|
9
|
-
"$impl": "./version-impl#VersionCommand",
|
|
10
|
-
|
|
11
|
-
"type": "object",
|
|
12
|
-
"allOf": [{ "$ref": "./definitions.json#/definitions/base" }]
|
|
13
|
-
}
|
package/commands.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"add": "./commands/add.json",
|
|
3
|
-
"analytics": "./commands/analytics.json",
|
|
4
|
-
"build": "./commands/build.json",
|
|
5
|
-
"config": "./commands/config.json",
|
|
6
|
-
"deploy": "./commands/deploy.json",
|
|
7
|
-
"doc": "./commands/doc.json",
|
|
8
|
-
"e2e": "./commands/e2e.json",
|
|
9
|
-
"extract-i18n": "./commands/extract-i18n.json",
|
|
10
|
-
"make-this-awesome": "./commands/easter-egg.json",
|
|
11
|
-
"generate": "./commands/generate.json",
|
|
12
|
-
"help": "./commands/help.json",
|
|
13
|
-
"lint": "./commands/lint.json",
|
|
14
|
-
"new": "./commands/new.json",
|
|
15
|
-
"run": "./commands/run.json",
|
|
16
|
-
"serve": "./commands/serve.json",
|
|
17
|
-
"test": "./commands/test.json",
|
|
18
|
-
"update": "./commands/update.json",
|
|
19
|
-
"version": "./commands/version.json"
|
|
20
|
-
}
|
package/models/analytics.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
*/
|
|
8
|
-
import { AnalyticsCollector } from './analytics-collector';
|
|
9
|
-
export declare const AnalyticsProperties: {
|
|
10
|
-
AngularCliProd: string;
|
|
11
|
-
AngularCliStaging: string;
|
|
12
|
-
readonly AngularCliDefault: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* This is the ultimate safelist for checking if a package name is safe to report to analytics.
|
|
16
|
-
*/
|
|
17
|
-
export declare const analyticsPackageSafelist: (string | RegExp)[];
|
|
18
|
-
export declare function isPackageNameSafeForAnalytics(name: string): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Set analytics settings. This does not work if the user is not inside a project.
|
|
21
|
-
* @param level Which config to use. "global" for user-level, and "local" for project-level.
|
|
22
|
-
* @param value Either a user ID, true to generate a new User ID, or false to disable analytics.
|
|
23
|
-
*/
|
|
24
|
-
export declare function setAnalyticsConfig(level: 'global' | 'local', value: string | boolean): void;
|
|
25
|
-
/**
|
|
26
|
-
* Prompt the user for usage gathering permission.
|
|
27
|
-
* @param force Whether to ask regardless of whether or not the user is using an interactive shell.
|
|
28
|
-
* @return Whether or not the user was shown a prompt.
|
|
29
|
-
*/
|
|
30
|
-
export declare function promptGlobalAnalytics(force?: boolean): Promise<boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* Prompt the user for usage gathering permission for the local project. Fails if there is no
|
|
33
|
-
* local workspace.
|
|
34
|
-
* @param force Whether to ask regardless of whether or not the user is using an interactive shell.
|
|
35
|
-
* @return Whether or not the user was shown a prompt.
|
|
36
|
-
*/
|
|
37
|
-
export declare function promptProjectAnalytics(force?: boolean): Promise<boolean>;
|
|
38
|
-
export declare function hasGlobalAnalyticsConfiguration(): Promise<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Get the global analytics object for the user. This returns an instance of UniversalAnalytics,
|
|
41
|
-
* or undefined if analytics are disabled.
|
|
42
|
-
*
|
|
43
|
-
* If any problem happens, it is considered the user has been opting out of analytics.
|
|
44
|
-
*/
|
|
45
|
-
export declare function getGlobalAnalytics(): Promise<AnalyticsCollector | undefined>;
|
|
46
|
-
export declare function hasWorkspaceAnalyticsConfiguration(): Promise<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* Get the workspace analytics object for the user. This returns an instance of AnalyticsCollector,
|
|
49
|
-
* or undefined if analytics are disabled.
|
|
50
|
-
*
|
|
51
|
-
* If any problem happens, it is considered the user has been opting out of analytics.
|
|
52
|
-
*/
|
|
53
|
-
export declare function getWorkspaceAnalytics(): Promise<AnalyticsCollector | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* Return the usage analytics sharing setting, which is either a property string (GA-XXXXXXX-XX),
|
|
56
|
-
* or undefined if no sharing.
|
|
57
|
-
*/
|
|
58
|
-
export declare function getSharedAnalytics(): Promise<AnalyticsCollector | undefined>;
|