UNPKG

973 BTypeScriptView Raw
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 */
8import { TaskConfiguration } from '../src/engine';
9import { FileSystemSchematicContext } from './description';
10import { NodeModulesEngineHost } from './node-module-engine-host';
11/**
12 * An EngineHost that uses a registry to super seed locations of collection.json files, but
13 * revert back to using node modules resolution. This is done for testing.
14 */
15export declare class NodeModulesTestEngineHost extends NodeModulesEngineHost {
16 private _collections;
17 private _tasks;
18 get tasks(): TaskConfiguration<{}>[];
19 clearTasks(): void;
20 registerCollection(name: string, path: string): void;
21 transformContext(context: FileSystemSchematicContext): FileSystemSchematicContext;
22 protected _resolveCollectionPath(name: string, requester?: string): string;
23}