[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { Architect, Target } from '@angular-devkit/architect';
|
---|
| 9 | import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node';
|
---|
| 10 | import { json } 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 _registry: json.schema.SchemaRegistry;
|
---|
| 23 | protected readonly useReportAnalytics = false;
|
---|
| 24 | protected multiTarget: boolean;
|
---|
| 25 | target: string | undefined;
|
---|
| 26 | missingTargetError: string | undefined;
|
---|
| 27 | initialize(options: T & Arguments): Promise<number | void>;
|
---|
| 28 | run(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
---|
| 29 | protected runSingleTarget(target: Target, targetOptions: string[]): Promise<0 | 1>;
|
---|
| 30 | protected runArchitectTarget(options: ArchitectCommandOptions & Arguments): Promise<number>;
|
---|
| 31 | private getProjectNamesByTarget;
|
---|
| 32 | private _makeTargetSpecifier;
|
---|
| 33 | }
|
---|