UNPKG

1.83 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, experimental, json, virtualFs } from '@angular-devkit/core';
11export declare const ivyEnabled: 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: experimental.workspace.Workspace;
41 architectHost: TestingArchitectHost;
42 architect: Architect;
43}>;
44export declare function browserBuild(architect: Architect, host: virtualFs.Host, target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<{
45 output: BuilderOutput;
46 files: {
47 [file: string]: Promise<string>;
48 };
49}>;
50export declare const lazyModuleFiles: {
51 [path: string]: string;
52};
53export declare const lazyModuleStringImport: {
54 [path: string]: string;
55};
56export declare const lazyModuleFnImport: {
57 [path: string]: string;
58};