1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | const architect_command_1 = require("../models/architect-command");
|
11 | const BuilderMissing = `
|
12 |
|
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 | ng add @zeit/ng-deploy
|
22 |
|
23 | Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
|
24 | `;
|
25 | class DeployCommand extends architect_command_1.ArchitectCommand {
|
26 | constructor() {
|
27 | super(...arguments);
|
28 | this.target = 'deploy';
|
29 | this.missingTargetError = BuilderMissing;
|
30 | }
|
31 | async run(options) {
|
32 | return this.runArchitectTarget(options);
|
33 | }
|
34 | async initialize(options) {
|
35 | if (!options.help) {
|
36 | return super.initialize(options);
|
37 | }
|
38 | }
|
39 | async reportAnalytics(paths, options, dimensions = [], metrics = []) {
|
40 | return super.reportAnalytics(paths, options, dimensions, metrics);
|
41 | }
|
42 | }
|
43 | exports.DeployCommand = DeployCommand;
|