UNPKG

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