1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { Architect, Target } from '@angular-devkit/architect';
|
9 | import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node';
|
10 | import { json, workspaces } from '@angular-devkit/core';
|
11 | import { BaseCommandOptions, Command } from './command';
|
12 | import { Arguments } from './interface';
|
13 | export interface ArchitectCommandOptions extends BaseCommandOptions {
|
14 | project?: string;
|
15 | configuration?: string;
|
16 | prod?: boolean;
|
17 | target?: string;
|
18 | }
|
19 | export declare abstract class ArchitectCommand<T extends ArchitectCommandOptions = ArchitectCommandOptions> extends Command<T> {
|
20 | protected _architect: Architect;
|
21 | protected _architectHost: WorkspaceNodeModulesArchitectHost;
|
22 | protected _workspace: workspaces.WorkspaceDefinition;
|
23 | protected _registry: json.schema.SchemaRegistry;
|
24 | protected multiTarget: boolean;
|
25 | target: string | undefined;
|
26 | missingTargetError: string | undefined;
|
27 | initialize(options: T & Arguments): Promise<void>;
|
28 | run(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
29 | protected runBepTarget<T>(command: string, configuration: Target, overrides: json.JsonObject, buildEventLog: string): Promise<number>;
|
30 | protected runSingleTarget(target: Target, targetOptions: string[], commandOptions: ArchitectCommandOptions & Arguments): Promise<number>;
|
31 | protected runArchitectTarget(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
32 | private getProjectNamesByTarget;
|
33 | private _makeTargetSpecifier;
|
34 | }
|