@angular/cli 14.0.0-next.2 → 14.0.0-next.5

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 (211) hide show
  1. package/bin/ng.js +3 -5
  2. package/bin/postinstall/analytics-prompt.js +1 -1
  3. package/lib/cli/index.d.ts +1 -1
  4. package/lib/cli/index.js +16 -18
  5. package/lib/config/schema.json +4 -8
  6. package/lib/init.js +3 -3
  7. package/models/command.d.ts +14 -19
  8. package/models/command.js +13 -106
  9. package/models/interface.d.ts +3 -180
  10. package/models/interface.js +0 -22
  11. package/models/schematic-command.d.ts +6 -18
  12. package/models/schematic-command.js +16 -123
  13. package/package.json +16 -15
  14. package/{models → src/analytics}/analytics-collector.d.ts +0 -0
  15. package/{models → src/analytics}/analytics-collector.js +1 -1
  16. package/{models → src/analytics}/analytics.d.ts +2 -0
  17. package/{models → src/analytics}/analytics.js +33 -2
  18. package/src/command-builder/architect-base-command-module.d.ts +23 -0
  19. package/src/command-builder/architect-base-command-module.js +105 -0
  20. package/src/command-builder/architect-command-module.d.ts +22 -0
  21. package/src/command-builder/architect-command-module.js +110 -0
  22. package/src/command-builder/command-module.d.ts +85 -0
  23. package/src/command-builder/command-module.js +185 -0
  24. package/src/command-builder/command-runner.d.ts +10 -0
  25. package/src/command-builder/command-runner.js +146 -0
  26. package/src/command-builder/schematics-command-module.d.ts +31 -0
  27. package/src/command-builder/schematics-command-module.js +117 -0
  28. package/src/command-builder/utilities/json-help.d.ts +34 -0
  29. package/src/command-builder/utilities/json-help.js +90 -0
  30. package/src/command-builder/utilities/json-schema.d.ts +40 -0
  31. package/{utilities → src/command-builder/utilities}/json-schema.js +20 -121
  32. package/src/commands/add/add-impl.d.ts +22 -0
  33. package/{commands → src/commands/add}/add-impl.js +24 -32
  34. package/src/commands/add/cli.d.ts +23 -0
  35. package/src/commands/add/cli.js +48 -0
  36. package/{commands/add.md → src/commands/add/long-description.md} +0 -0
  37. package/src/commands/analytics/cli.d.ts +21 -0
  38. package/src/commands/analytics/cli.js +70 -0
  39. package/src/commands/analytics/long-description.md +10 -0
  40. package/src/commands/build/cli.d.ts +16 -0
  41. package/src/commands/build/cli.js +23 -0
  42. package/{commands/build-long.md → src/commands/build/long-description.md} +0 -0
  43. package/src/commands/config/cli.d.ts +21 -0
  44. package/src/commands/config/cli.js +46 -0
  45. package/{commands → src/commands/config}/config-impl.d.ts +7 -5
  46. package/{commands → src/commands/config}/config-impl.js +3 -7
  47. package/{commands/config-long.md → src/commands/config/long-description.md} +2 -2
  48. package/src/commands/deploy/cli.d.ts +16 -0
  49. package/src/commands/deploy/cli.js +35 -0
  50. package/{commands/deploy-long.md → src/commands/deploy/long-description.md} +0 -0
  51. package/src/commands/doc/cli.d.ts +23 -0
  52. package/{commands/doc-impl.js → src/commands/doc/cli.js} +36 -11
  53. package/src/commands/e2e/cli.d.ts +17 -0
  54. package/src/commands/e2e/cli.js +34 -0
  55. package/src/commands/extract-i18n/cli.d.ts +15 -0
  56. package/src/commands/extract-i18n/cli.js +20 -0
  57. package/src/commands/generate/cli.d.ts +27 -0
  58. package/src/commands/generate/cli.js +98 -0
  59. package/src/commands/generate/generate-impl.d.ts +19 -0
  60. package/src/commands/generate/generate-impl.js +49 -0
  61. package/src/commands/lint/cli.d.ts +16 -0
  62. package/src/commands/lint/cli.js +31 -0
  63. package/{commands/lint-long.md → src/commands/lint/long-description.md} +0 -0
  64. package/src/commands/make-this-awesome/cli.d.ts +17 -0
  65. package/{commands/easter-egg-impl.js → src/commands/make-this-awesome/cli.js} +17 -10
  66. package/src/commands/new/cli.d.ts +23 -0
  67. package/src/commands/new/cli.js +36 -0
  68. package/src/commands/new/new-impl.d.ts +18 -0
  69. package/{commands → src/commands/new}/new-impl.js +7 -6
  70. package/src/commands/run/cli.d.ts +23 -0
  71. package/src/commands/run/cli.js +59 -0
  72. package/{commands/run-long.md → src/commands/run/long-description.md} +0 -0
  73. package/src/commands/serve/cli.d.ts +16 -0
  74. package/src/commands/serve/cli.js +21 -0
  75. package/src/commands/test/cli.d.ts +16 -0
  76. package/src/commands/test/cli.js +23 -0
  77. package/{commands/test-long.md → src/commands/test/long-description.md} +0 -0
  78. package/src/commands/update/cli.d.ts +29 -0
  79. package/src/commands/update/cli.js +83 -0
  80. package/{commands/update-long.md → src/commands/update/long-description.md} +0 -0
  81. package/src/commands/update/schematic/index.js +1 -1
  82. package/{commands → src/commands/update}/update-impl.d.ts +8 -6
  83. package/{commands → src/commands/update}/update-impl.js +22 -31
  84. package/src/commands/version/cli.d.ts +19 -0
  85. package/{commands/version-impl.js → src/commands/version/cli.js} +44 -38
  86. package/src/typings.d.ts +2 -2
  87. package/{utilities → src/utilities}/color.d.ts +0 -0
  88. package/{utilities → src/utilities}/color.js +0 -0
  89. package/{utilities → src/utilities}/config.d.ts +1 -1
  90. package/{utilities → src/utilities}/config.js +2 -5
  91. package/{utilities → src/utilities}/find-up.d.ts +0 -0
  92. package/{utilities → src/utilities}/find-up.js +0 -0
  93. package/{utilities → src/utilities}/install-package.d.ts +2 -2
  94. package/{utilities → src/utilities}/install-package.js +1 -1
  95. package/{utilities → src/utilities}/json-file.d.ts +0 -0
  96. package/{utilities → src/utilities}/json-file.js +0 -0
  97. package/{utilities → src/utilities}/log-file.d.ts +0 -0
  98. package/{utilities → src/utilities}/log-file.js +0 -0
  99. package/{utilities → src/utilities}/package-json.d.ts +0 -0
  100. package/{utilities → src/utilities}/package-json.js +0 -0
  101. package/{utilities → src/utilities}/package-manager.d.ts +1 -1
  102. package/{utilities → src/utilities}/package-manager.js +1 -1
  103. package/{utilities → src/utilities}/package-metadata.d.ts +0 -0
  104. package/{utilities → src/utilities}/package-metadata.js +0 -0
  105. package/{utilities → src/utilities}/package-tree.d.ts +0 -0
  106. package/{utilities → src/utilities}/package-tree.js +0 -0
  107. package/{utilities → src/utilities}/project.d.ts +0 -0
  108. package/{utilities → src/utilities}/project.js +0 -0
  109. package/{utilities → src/utilities}/prompt.d.ts +0 -0
  110. package/{utilities → src/utilities}/prompt.js +0 -0
  111. package/{utilities → src/utilities}/spinner.d.ts +0 -0
  112. package/{utilities → src/utilities}/spinner.js +0 -0
  113. package/{utilities → src/utilities}/tty.d.ts +0 -0
  114. package/{utilities → src/utilities}/tty.js +0 -0
  115. package/{models → src/utilities}/version.d.ts +2 -1
  116. package/{models → src/utilities}/version.js +6 -6
  117. package/commands/add-impl.d.ts +0 -21
  118. package/commands/add.d.ts +0 -42
  119. package/commands/add.js +0 -10
  120. package/commands/add.json +0 -54
  121. package/commands/analytics-impl.d.ts +0 -13
  122. package/commands/analytics-impl.js +0 -80
  123. package/commands/analytics-long.md +0 -8
  124. package/commands/analytics.d.ts +0 -46
  125. package/commands/analytics.js +0 -31
  126. package/commands/analytics.json +0 -37
  127. package/commands/build-impl.d.ts +0 -14
  128. package/commands/build-impl.js +0 -21
  129. package/commands/build.d.ts +0 -30
  130. package/commands/build.js +0 -10
  131. package/commands/build.json +0 -16
  132. package/commands/config.d.ts +0 -34
  133. package/commands/config.js +0 -10
  134. package/commands/config.json +0 -43
  135. package/commands/definitions.json +0 -66
  136. package/commands/deploy-impl.d.ts +0 -15
  137. package/commands/deploy-impl.js +0 -36
  138. package/commands/deploy.d.ts +0 -30
  139. package/commands/deploy.js +0 -10
  140. package/commands/deploy.json +0 -34
  141. package/commands/doc-impl.d.ts +0 -13
  142. package/commands/doc.d.ts +0 -39
  143. package/commands/doc.js +0 -14
  144. package/commands/doc.json +0 -46
  145. package/commands/e2e-impl.d.ts +0 -16
  146. package/commands/e2e-impl.js +0 -36
  147. package/commands/e2e-long.md +0 -4
  148. package/commands/e2e.d.ts +0 -29
  149. package/commands/e2e.js +0 -10
  150. package/commands/e2e.json +0 -17
  151. package/commands/easter-egg-impl.d.ts +0 -12
  152. package/commands/easter-egg.d.ts +0 -14
  153. package/commands/easter-egg.js +0 -10
  154. package/commands/easter-egg.json +0 -12
  155. package/commands/extract-i18n-impl.d.ts +0 -14
  156. package/commands/extract-i18n-impl.js +0 -21
  157. package/commands/extract-i18n.d.ts +0 -29
  158. package/commands/extract-i18n.js +0 -10
  159. package/commands/extract-i18n.json +0 -15
  160. package/commands/generate-impl.d.ts +0 -18
  161. package/commands/generate-impl.js +0 -89
  162. package/commands/generate.d.ts +0 -37
  163. package/commands/generate.js +0 -10
  164. package/commands/generate.json +0 -31
  165. package/commands/help-impl.d.ts +0 -12
  166. package/commands/help-impl.js +0 -26
  167. package/commands/help-long.md +0 -7
  168. package/commands/help.d.ts +0 -17
  169. package/commands/help.js +0 -10
  170. package/commands/help.json +0 -13
  171. package/commands/lint-impl.d.ts +0 -16
  172. package/commands/lint-impl.js +0 -69
  173. package/commands/lint.d.ts +0 -29
  174. package/commands/lint.js +0 -10
  175. package/commands/lint.json +0 -36
  176. package/commands/new-impl.d.ts +0 -16
  177. package/commands/new.d.ts +0 -41
  178. package/commands/new.js +0 -10
  179. package/commands/new.json +0 -34
  180. package/commands/new.md +0 -16
  181. package/commands/run-impl.d.ts +0 -13
  182. package/commands/run-impl.js +0 -22
  183. package/commands/run.d.ts +0 -30
  184. package/commands/run.js +0 -10
  185. package/commands/run.json +0 -36
  186. package/commands/serve-impl.d.ts +0 -15
  187. package/commands/serve-impl.js +0 -24
  188. package/commands/serve.d.ts +0 -29
  189. package/commands/serve.js +0 -10
  190. package/commands/serve.json +0 -17
  191. package/commands/test-impl.d.ts +0 -15
  192. package/commands/test-impl.js +0 -22
  193. package/commands/test.d.ts +0 -29
  194. package/commands/test.js +0 -10
  195. package/commands/test.json +0 -17
  196. package/commands/update.d.ts +0 -61
  197. package/commands/update.js +0 -10
  198. package/commands/update.json +0 -78
  199. package/commands/version-impl.d.ts +0 -17
  200. package/commands/version.d.ts +0 -17
  201. package/commands/version.js +0 -10
  202. package/commands/version.json +0 -13
  203. package/commands.json +0 -20
  204. package/models/architect-command.d.ts +0 -35
  205. package/models/architect-command.js +0 -364
  206. package/models/command-runner.d.ts +0 -24
  207. package/models/command-runner.js +0 -241
  208. package/models/parser.d.ts +0 -39
  209. package/models/parser.js +0 -349
  210. package/utilities/INITIAL_COMMIT_MESSAGE.txt +0 -8
  211. package/utilities/json-schema.d.ts +0 -17
package/commands/new.d.ts DELETED
@@ -1,41 +0,0 @@
1
- /**
2
- * Creates a new workspace and an initial Angular application.
3
- */
4
- export interface Schema {
5
- /**
6
- * A collection of schematics to use in generating the initial application.
7
- */
8
- collection?: string;
9
- /**
10
- * Disable interactive input prompts for options with a default.
11
- */
12
- defaults?: boolean;
13
- /**
14
- * Run through and reports activity without writing out results.
15
- */
16
- dryRun?: boolean;
17
- /**
18
- * Force overwriting of existing files.
19
- */
20
- force?: boolean;
21
- /**
22
- * Shows a help message for this command in the console.
23
- */
24
- help?: HelpUnion;
25
- /**
26
- * Enable interactive input prompts.
27
- */
28
- interactive?: boolean;
29
- /**
30
- * Add more details to output logging.
31
- */
32
- verbose?: boolean;
33
- }
34
- /**
35
- * Shows a help message for this command in the console.
36
- */
37
- export declare type HelpUnion = boolean | HelpEnum;
38
- export declare enum HelpEnum {
39
- HelpJson = "JSON",
40
- Json = "json"
41
- }
package/commands/new.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/new.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/new.json",
4
- "description": "Creates a new workspace and an initial Angular application.",
5
- "$longDescription": "./new.md",
6
-
7
- "$aliases": ["n"],
8
- "$scope": "out",
9
- "$type": "schematic",
10
- "$impl": "./new-impl#NewCommand",
11
-
12
- "type": "object",
13
- "allOf": [
14
- {
15
- "properties": {
16
- "collection": {
17
- "type": "string",
18
- "aliases": ["c"],
19
- "description": "A collection of schematics to use in generating the initial application."
20
- },
21
- "verbose": {
22
- "type": "boolean",
23
- "default": false,
24
- "aliases": ["v"],
25
- "description": "Add more details to output logging."
26
- }
27
- },
28
- "required": []
29
- },
30
- { "$ref": "./definitions.json#/definitions/base" },
31
- { "$ref": "./definitions.json#/definitions/schematic" },
32
- { "$ref": "./definitions.json#/definitions/interactive" }
33
- ]
34
- }
package/commands/new.md DELETED
@@ -1,16 +0,0 @@
1
- Creates and initializes a new Angular application that is the default project for a new workspace.
2
-
3
- Provides interactive prompts for optional configuration, such as adding routing support.
4
- All prompts can safely be allowed to default.
5
-
6
- - The new workspace folder is given the specified project name, and contains configuration files at the top level.
7
-
8
- - By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder.
9
-
10
- - The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.
11
-
12
- - Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.
13
-
14
- If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--create-application` option to false.
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.
@@ -1,13 +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 RunCommandSchema } from './run';
11
- export declare class RunCommand extends ArchitectCommand<RunCommandSchema> {
12
- run(options: ArchitectCommandOptions & Arguments): Promise<number>;
13
- }
@@ -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.RunCommand = void 0;
11
- const architect_command_1 = require("../models/architect-command");
12
- class RunCommand extends architect_command_1.ArchitectCommand {
13
- async run(options) {
14
- if (options.target) {
15
- return this.runArchitectTarget(options);
16
- }
17
- else {
18
- throw new Error('Invalid architect target.');
19
- }
20
- }
21
- }
22
- exports.RunCommand = RunCommand;
package/commands/run.d.ts DELETED
@@ -1,30 +0,0 @@
1
- /**
2
- * Runs an Architect target with an optional custom builder configuration defined in your
3
- * project.
4
- */
5
- export interface Schema {
6
- /**
7
- * One or more named builder configurations as a comma-separated list as specified in the
8
- * "configurations" section of angular.json.
9
- * The builder uses the named configurations to run the given target.
10
- * For more information, see
11
- * https://angular.io/guide/workspace-config#alternate-build-configurations.
12
- */
13
- configuration?: string;
14
- /**
15
- * Shows a help message for this command in the console.
16
- */
17
- help?: HelpUnion;
18
- /**
19
- * The Architect target to run.
20
- */
21
- target?: string;
22
- }
23
- /**
24
- * Shows a help message for this command in the console.
25
- */
26
- export declare type HelpUnion = boolean | HelpEnum;
27
- export declare enum HelpEnum {
28
- HelpJson = "JSON",
29
- Json = "json"
30
- }
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
- }
@@ -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
- }
@@ -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;
@@ -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 = {}));
@@ -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
- }
@@ -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
- }
@@ -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;
@@ -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 = {}));
@@ -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
- }
@@ -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;
@@ -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 = {}));
@@ -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
- }
@@ -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
- }
@@ -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 = {}));
@@ -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
- }