forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-impl.ts
More file actions
49 lines (40 loc) · 1.44 KB
/
Copy pathdeploy-impl.ts
File metadata and controls
49 lines (40 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { Arguments } from '../models/interface';
import { Schema as DeployCommandSchema } from './deploy';
const BuilderMissing = `
Cannot find "deploy" target for the specified project.
You should add a package that implements deployment capabilities for your
favorite platform.
For example:
ng add @angular/fire
ng add @azure/ng-deploy
ng add @zeit/ng-deploy
Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
`;
export class DeployCommand extends ArchitectCommand<DeployCommandSchema> {
public readonly target = 'deploy';
public readonly missingTargetError = BuilderMissing;
public async run(options: ArchitectCommandOptions & Arguments) {
return this.runArchitectTarget(options);
}
public async initialize(options: DeployCommandSchema & Arguments): Promise<void> {
if (!options.help) {
return super.initialize(options);
}
}
async reportAnalytics(
paths: string[],
options: DeployCommandSchema & Arguments,
dimensions: (boolean | number | string)[] = [],
metrics: (boolean | number | string)[] = [],
): Promise<void> {
return super.reportAnalytics(paths, options, dimensions, metrics);
}
}