@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
@@ -1,31 +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.SettingOrProject = exports.ProjectSetting = exports.HelpEnum = void 0;
6
- var HelpEnum;
7
- (function (HelpEnum) {
8
- HelpEnum["HelpJson"] = "JSON";
9
- HelpEnum["Json"] = "json";
10
- })(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
11
- /**
12
- * Sets the default analytics enablement status for the project.
13
- */
14
- var ProjectSetting;
15
- (function (ProjectSetting) {
16
- ProjectSetting["Off"] = "off";
17
- ProjectSetting["On"] = "on";
18
- ProjectSetting["Prompt"] = "prompt";
19
- })(ProjectSetting = exports.ProjectSetting || (exports.ProjectSetting = {}));
20
- /**
21
- * Directly enables or disables all usage analytics for the user, or prompts the user to set
22
- * the status interactively, or sets the default status for the project.
23
- */
24
- var SettingOrProject;
25
- (function (SettingOrProject) {
26
- SettingOrProject["Ci"] = "ci";
27
- SettingOrProject["Off"] = "off";
28
- SettingOrProject["On"] = "on";
29
- SettingOrProject["Project"] = "project";
30
- SettingOrProject["Prompt"] = "prompt";
31
- })(SettingOrProject = exports.SettingOrProject || (exports.SettingOrProject = {}));
@@ -1,37 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/analytics.json",
4
- "description": "Configures the gathering of Angular CLI usage metrics. See https://angular.io/cli/usage-analytics-gathering.",
5
- "$longDescription": "./analytics-long.md",
6
-
7
- "$aliases": [],
8
- "$scope": "all",
9
- "$type": "native",
10
- "$impl": "./analytics-impl#AnalyticsCommand",
11
-
12
- "type": "object",
13
- "allOf": [
14
- {
15
- "properties": {
16
- "settingOrProject": {
17
- "enum": ["on", "off", "ci", "project", "prompt"],
18
- "description": "Directly enables or disables all usage analytics for the user, or prompts the user to set the status interactively, or sets the default status for the project.",
19
- "$default": {
20
- "$source": "argv",
21
- "index": 0
22
- }
23
- },
24
- "projectSetting": {
25
- "enum": ["on", "off", "prompt"],
26
- "description": "Sets the default analytics enablement status for the project.",
27
- "$default": {
28
- "$source": "argv",
29
- "index": 1
30
- }
31
- }
32
- },
33
- "required": ["settingOrProject"]
34
- },
35
- { "$ref": "./definitions.json#/definitions/base" }
36
- ]
37
- }
@@ -1,14 +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 BuildCommandSchema } from './build';
11
- export declare class BuildCommand extends ArchitectCommand<BuildCommandSchema> {
12
- readonly target = "build";
13
- run(options: ArchitectCommandOptions & Arguments): Promise<number>;
14
- }
@@ -1,21 +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.BuildCommand = void 0;
11
- const architect_command_1 = require("../models/architect-command");
12
- class BuildCommand extends architect_command_1.ArchitectCommand {
13
- constructor() {
14
- super(...arguments);
15
- this.target = 'build';
16
- }
17
- async run(options) {
18
- return this.runArchitectTarget(options);
19
- }
20
- }
21
- exports.BuildCommand = BuildCommand;
@@ -1,30 +0,0 @@
1
- /**
2
- * Compiles an Angular app into an output directory named dist/ at the given output path.
3
- * Must be executed from within a workspace directory.
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 name of the project to build. Can be an application or a library.
20
- */
21
- project?: 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/build.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,16 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/build.json",
4
- "description": "Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.",
5
- "$longDescription": "./build-long.md",
6
-
7
- "$aliases": ["b"],
8
- "$scope": "in",
9
- "$type": "architect",
10
- "$impl": "./build-impl#BuildCommand",
11
-
12
- "allOf": [
13
- { "$ref": "./definitions.json#/definitions/architect" },
14
- { "$ref": "./definitions.json#/definitions/base" }
15
- ]
16
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * Retrieves or sets Angular configuration values in the angular.json file for the workspace.
3
- */
4
- export interface Schema {
5
- /**
6
- * Access the global configuration in the caller's home directory.
7
- */
8
- global?: boolean;
9
- /**
10
- * Shows a help message for this command in the console.
11
- */
12
- help?: HelpUnion;
13
- /**
14
- * The configuration key to set or query, in JSON path format. For example:
15
- * "a[3].foo.bar[2]". If no new value is provided, returns the current value of this key.
16
- */
17
- jsonPath?: string;
18
- /**
19
- * If provided, a new value for the given configuration key.
20
- */
21
- value?: Value;
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
- }
31
- /**
32
- * If provided, a new value for the given configuration key.
33
- */
34
- export declare type Value = boolean | number | 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,43 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/config.json",
4
- "description": "Retrieves or sets Angular configuration values in the angular.json file for the workspace.",
5
- "$longDescription": "",
6
-
7
- "$aliases": [],
8
- "$scope": "all",
9
- "$type": "native",
10
- "$impl": "./config-impl#ConfigCommand",
11
-
12
- "type": "object",
13
- "allOf": [
14
- {
15
- "properties": {
16
- "jsonPath": {
17
- "type": "string",
18
- "description": "The configuration key to set or query, in JSON path format. For example: \"a[3].foo.bar[2]\". If no new value is provided, returns the current value of this key.",
19
- "$default": {
20
- "$source": "argv",
21
- "index": 0
22
- }
23
- },
24
- "value": {
25
- "type": ["string", "number", "boolean"],
26
- "description": "If provided, a new value for the given configuration key.",
27
- "$default": {
28
- "$source": "argv",
29
- "index": 1
30
- }
31
- },
32
- "global": {
33
- "type": "boolean",
34
- "description": "Access the global configuration in the caller's home directory.",
35
- "default": false,
36
- "aliases": ["g"]
37
- }
38
- },
39
- "required": []
40
- },
41
- { "$ref": "./definitions.json#/definitions/base" }
42
- ]
43
- }
@@ -1,66 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/definitions.json",
4
-
5
- "definitions": {
6
- "architect": {
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "The name of the project to build. Can be an application or a library.",
11
- "$default": {
12
- "$source": "argv",
13
- "index": 0
14
- }
15
- },
16
- "configuration": {
17
- "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.",
18
- "type": "string",
19
- "aliases": ["c"]
20
- }
21
- }
22
- },
23
- "base": {
24
- "type": "object",
25
- "properties": {
26
- "help": {
27
- "enum": [true, false, "json", "JSON"],
28
- "description": "Shows a help message for this command in the console.",
29
- "default": false
30
- }
31
- }
32
- },
33
- "schematic": {
34
- "type": "object",
35
- "properties": {
36
- "dryRun": {
37
- "type": "boolean",
38
- "default": false,
39
- "aliases": ["d"],
40
- "description": "Run through and reports activity without writing out results."
41
- },
42
- "force": {
43
- "type": "boolean",
44
- "default": false,
45
- "aliases": ["f"],
46
- "description": "Force overwriting of existing files."
47
- }
48
- }
49
- },
50
- "interactive": {
51
- "type": "object",
52
- "properties": {
53
- "interactive": {
54
- "type": "boolean",
55
- "default": "true",
56
- "description": "Enable interactive input prompts."
57
- },
58
- "defaults": {
59
- "type": "boolean",
60
- "default": "false",
61
- "description": "Disable interactive input prompts for options with a default."
62
- }
63
- }
64
- }
65
- }
66
- }
@@ -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 } from '../models/architect-command';
9
- import { Arguments } from '../models/interface';
10
- import { Schema as DeployCommandSchema } from './deploy';
11
- export declare class DeployCommand extends ArchitectCommand<DeployCommandSchema> {
12
- readonly target = "deploy";
13
- readonly missingTargetError = "\nCannot find \"deploy\" target for the specified project.\n\nYou should add a package that implements deployment capabilities for your\nfavorite platform.\n\nFor example:\n ng add @angular/fire\n ng add @azure/ng-deploy\n\nFind more packages on npm https://www.npmjs.com/search?q=ng%20deploy\n";
14
- initialize(options: DeployCommandSchema & Arguments): Promise<number | void>;
15
- }
@@ -1,36 +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.DeployCommand = void 0;
11
- const architect_command_1 = require("../models/architect-command");
12
- const BuilderMissing = `
13
- Cannot find "deploy" target for the specified project.
14
-
15
- You should add a package that implements deployment capabilities for your
16
- favorite platform.
17
-
18
- For example:
19
- ng add @angular/fire
20
- ng add @azure/ng-deploy
21
-
22
- Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
23
- `;
24
- class DeployCommand extends architect_command_1.ArchitectCommand {
25
- constructor() {
26
- super(...arguments);
27
- this.target = 'deploy';
28
- this.missingTargetError = BuilderMissing;
29
- }
30
- async initialize(options) {
31
- if (!options.help) {
32
- return super.initialize(options);
33
- }
34
- }
35
- }
36
- exports.DeployCommand = DeployCommand;
@@ -1,30 +0,0 @@
1
- /**
2
- * Invokes the deploy builder for a specified project or for the default project in the
3
- * workspace.
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 name of the project to deploy.
20
- */
21
- project?: 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
- }
@@ -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,34 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/deploy.json",
4
- "description": "Invokes the deploy builder for a specified project or for the default project in the workspace.",
5
- "$longDescription": "./deploy-long.md",
6
-
7
- "$scope": "in",
8
- "$type": "architect",
9
- "$impl": "./deploy-impl#DeployCommand",
10
-
11
- "allOf": [
12
- {
13
- "properties": {
14
- "project": {
15
- "type": "string",
16
- "description": "The name of the project to deploy.",
17
- "$default": {
18
- "$source": "argv",
19
- "index": 0
20
- }
21
- },
22
- "configuration": {
23
- "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.",
24
- "type": "string",
25
- "aliases": ["c"]
26
- }
27
- },
28
- "required": []
29
- },
30
- {
31
- "$ref": "./definitions.json#/definitions/base"
32
- }
33
- ]
34
- }
@@ -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 { Command } from '../models/command';
9
- import { Arguments } from '../models/interface';
10
- import { Schema as DocCommandSchema } from './doc';
11
- export declare class DocCommand extends Command<DocCommandSchema> {
12
- run(options: DocCommandSchema & Arguments): Promise<0 | undefined>;
13
- }
package/commands/doc.d.ts DELETED
@@ -1,39 +0,0 @@
1
- /**
2
- * Opens the official Angular documentation (angular.io) in a browser, and searches for a
3
- * given keyword.
4
- */
5
- export interface Schema {
6
- /**
7
- * Shows a help message for this command in the console.
8
- */
9
- help?: HelpUnion;
10
- /**
11
- * The keyword to search for, as provided in the search bar in angular.io.
12
- */
13
- keyword?: string;
14
- /**
15
- * Search all of angular.io. Otherwise, searches only API reference documentation.
16
- */
17
- search?: boolean;
18
- /**
19
- * Contains the version of Angular to use for the documentation. If not provided, the
20
- * command uses your current Angular core version.
21
- */
22
- version?: VersionUnion;
23
- }
24
- /**
25
- * Shows a help message for this command in the console.
26
- */
27
- export declare type HelpUnion = boolean | HelpEnum;
28
- export declare enum HelpEnum {
29
- HelpJson = "JSON",
30
- Json = "json"
31
- }
32
- /**
33
- * Contains the version of Angular to use for the documentation. If not provided, the
34
- * command uses your current Angular core version.
35
- */
36
- export declare type VersionUnion = number | VersionEnum;
37
- export declare enum VersionEnum {
38
- Next = "next"
39
- }
package/commands/doc.js DELETED
@@ -1,14 +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.VersionEnum = exports.HelpEnum = void 0;
6
- var HelpEnum;
7
- (function (HelpEnum) {
8
- HelpEnum["HelpJson"] = "JSON";
9
- HelpEnum["Json"] = "json";
10
- })(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {}));
11
- var VersionEnum;
12
- (function (VersionEnum) {
13
- VersionEnum["Next"] = "next";
14
- })(VersionEnum = exports.VersionEnum || (exports.VersionEnum = {}));
package/commands/doc.json DELETED
@@ -1,46 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "ng-cli://commands/doc.json",
4
- "description": "Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.",
5
- "$longDescription": "",
6
-
7
- "$aliases": ["d"],
8
- "$type": "native",
9
- "$impl": "./doc-impl#DocCommand",
10
-
11
- "type": "object",
12
- "allOf": [
13
- {
14
- "properties": {
15
- "keyword": {
16
- "type": "string",
17
- "description": "The keyword to search for, as provided in the search bar in angular.io.",
18
- "$default": {
19
- "$source": "argv",
20
- "index": 0
21
- }
22
- },
23
- "search": {
24
- "aliases": ["s"],
25
- "type": "boolean",
26
- "default": false,
27
- "description": "Search all of angular.io. Otherwise, searches only API reference documentation."
28
- },
29
- "version": {
30
- "oneOf": [
31
- {
32
- "type": "number",
33
- "minimum": 4
34
- },
35
- {
36
- "enum": [2, "next"]
37
- }
38
- ],
39
- "description": "Contains the version of Angular to use for the documentation. If not provided, the command uses your current Angular core version."
40
- }
41
- },
42
- "required": []
43
- },
44
- { "$ref": "./definitions.json#/definitions/base" }
45
- ]
46
- }
@@ -1,16 +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 } from '../models/architect-command';
9
- import { Arguments } from '../models/interface';
10
- import { Schema as E2eCommandSchema } from './e2e';
11
- export declare class E2eCommand extends ArchitectCommand<E2eCommandSchema> {
12
- readonly target = "e2e";
13
- readonly multiTarget = true;
14
- readonly missingTargetError = "\nCannot find \"e2e\" target for the specified project.\n\nYou should add a package that implements end-to-end testing capabilities.\n\nFor example:\n Cypress: ng add @cypress/schematic\n Nightwatch: ng add @nightwatch/schematics\n WebdriverIO: ng add @wdio/schematics\n\nMore options will be added to the list as they become available.\n";
15
- initialize(options: E2eCommandSchema & Arguments): Promise<number | void>;
16
- }
@@ -1,36 +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.E2eCommand = void 0;
11
- const architect_command_1 = require("../models/architect-command");
12
- class E2eCommand extends architect_command_1.ArchitectCommand {
13
- constructor() {
14
- super(...arguments);
15
- this.target = 'e2e';
16
- this.multiTarget = true;
17
- this.missingTargetError = `
18
- Cannot find "e2e" target for the specified project.
19
-
20
- You should add a package that implements end-to-end testing capabilities.
21
-
22
- For example:
23
- Cypress: ng add @cypress/schematic
24
- Nightwatch: ng add @nightwatch/schematics
25
- WebdriverIO: ng add @wdio/schematics
26
-
27
- More options will be added to the list as they become available.
28
- `;
29
- }
30
- async initialize(options) {
31
- if (!options.help) {
32
- return super.initialize(options);
33
- }
34
- }
35
- }
36
- exports.E2eCommand = E2eCommand;
@@ -1,4 +0,0 @@
1
- The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.
2
- When a project name is not supplied, executes the `e2e` builder for the default project.
3
-
4
- To use the `ng e2e` command, use `ng add` to add a package that implements end-to-end testing capabilities. Adding the package automatically updates your workspace configuration, adding an `e2e` [CLI builder](guide/cli-builder).
package/commands/e2e.d.ts DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * Builds and serves an Angular app, then runs end-to-end tests.
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
- }