UNPKG

1.78 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 workspaceRoot: Path;
12export declare const host: TestProjectHost;
13export declare const outputPath: Path;
14export declare const browserTargetSpec: {
15 project: string;
16 target: string;
17};
18export declare const devServerTargetSpec: {
19 project: string;
20 target: string;
21};
22export declare const extractI18nTargetSpec: {
23 project: string;
24 target: string;
25};
26export declare const karmaTargetSpec: {
27 project: string;
28 target: string;
29};
30export declare const tslintTargetSpec: {
31 project: string;
32 target: string;
33};
34export declare const protractorTargetSpec: {
35 project: string;
36 target: string;
37};
38export declare function createArchitect(workspaceRoot: Path): Promise<{
39 workspace: experimental.workspace.Workspace;
40 architectHost: TestingArchitectHost;
41 architect: Architect;
42}>;
43export declare function browserBuild(architect: Architect, host: virtualFs.Host, target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<{
44 output: BuilderOutput;
45 files: {
46 [file: string]: string;
47 };
48}>;
49export declare const lazyModuleFiles: {
50 [path: string]: string;
51};
52export declare const lazyModuleStringImport: {
53 [path: string]: string;
54};
55export declare const lazyModuleFnImport: {
56 [path: string]: string;
57};