1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.DeployCommand = void 0;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | const architect_command_1 = require("../models/architect-command");
|
12 | const BuilderMissing = `
|
13 |
|
14 | Cannot find "deploy" target for the specified project.
|
15 |
|
16 | You should add a package that implements deployment capabilities for your
|
17 | favorite platform.
|
18 |
|
19 | For example:
|
20 | ng add @angular/fire
|
21 | ng add @azure/ng-deploy
|
22 | ng add @zeit/ng-deploy
|
23 |
|
24 | Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
|
25 | `;
|
26 | class DeployCommand extends architect_command_1.ArchitectCommand {
|
27 | constructor() {
|
28 | super(...arguments);
|
29 | this.target = 'deploy';
|
30 | this.missingTargetError = BuilderMissing;
|
31 | }
|
32 | async run(options) {
|
33 | return this.runArchitectTarget(options);
|
34 | }
|
35 | async initialize(options) {
|
36 | if (!options.help) {
|
37 | return super.initialize(options);
|
38 | }
|
39 | }
|
40 | async reportAnalytics(paths, options, dimensions = [], metrics = []) {
|
41 | return super.reportAnalytics(paths, options, dimensions, metrics);
|
42 | }
|
43 | }
|
44 | exports.DeployCommand = DeployCommand;
|