UNPKG

1.88 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. 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 */
8import { Architect, BuilderOutput, ScheduleOptions, Target } from '@angular-devkit/architect';
9import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing';
10import { Path, json, virtualFs, workspaces } from '@angular-devkit/core';
11export declare const veEnabled: boolean;
12export declare const workspaceRoot: Path;
13export declare const host: TestProjectHost;
14export declare const outputPath: Path;
15export declare const browserTargetSpec: {
16 project: string;
17 target: string;
18};
19export declare const devServerTargetSpec: {
20 project: string;
21 target: string;
22};
23export declare const extractI18nTargetSpec: {
24 project: string;
25 target: string;
26};
27export declare const karmaTargetSpec: {
28 project: string;
29 target: string;
30};
31export declare const tslintTargetSpec: {
32 project: string;
33 target: string;
34};
35export declare const protractorTargetSpec: {
36 project: string;
37 target: string;
38};
39export declare function createArchitect(workspaceRoot: Path): Promise<{
40 workspace: workspaces.WorkspaceDefinition;
41 architectHost: TestingArchitectHost;
42 architect: Architect;
43}>;
44export interface BrowserBuildOutput {
45 output: BuilderOutput;
46 files: {
47 [file: string]: Promise<string>;
48 };
49}
50export declare function browserBuild(architect: Architect, host: virtualFs.Host, target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<BrowserBuildOutput>;
51export declare const lazyModuleFiles: {
52 [path: string]: string;
53};
54export declare const lazyModuleStringImport: {
55 [path: string]: string;
56};
57export declare const lazyModuleFnImport: {
58 [path: string]: string;
59};