Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6a3a178] | 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 | 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 initialize(options) {
|
---|
| 32 | if (!options.help) {
|
---|
| 33 | return super.initialize(options);
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 | exports.DeployCommand = DeployCommand;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.