UNPKG

1.29 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * @license
5 * Copyright Google Inc. All Rights Reserved.
6 *
7 * Use of this source code is governed by an MIT-style license that can be
8 * found in the LICENSE file at https://angular.io/license
9 */
10const architect_command_1 = require("../models/architect-command");
11const BuilderMissing = `
12
13Cannot find "deploy" target for the specified project.
14
15You should add a package that implements deployment capabilities for your
16favorite platform.
17
18For example:
19 ng add @angular/fire
20 ng add @azure/ng-deploy
21 ng add @zeit/ng-deploy
22
23Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
24`;
25class 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}
43exports.DeployCommand = DeployCommand;