UNPKG

1.38 kBTypeScriptView 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 { Observable } from 'rxjs';
9import { RuleFactory, TaskExecutor } from '../src';
10import { FileSystemCollectionDesc, FileSystemSchematicDesc } from './description';
11import { FileSystemEngineHostBase } from './file-system-engine-host-base';
12/**
13 * A simple EngineHost that uses a root with one directory per collection inside of it. The
14 * collection declaration follows the same rules as the regular FileSystemEngineHostBase.
15 */
16export declare class FileSystemEngineHost extends FileSystemEngineHostBase {
17 protected _root: string;
18 constructor(_root: string);
19 protected _resolveCollectionPath(name: string): string;
20 protected _resolveReferenceString(refString: string, parentPath: string): {
21 ref: RuleFactory<{}>;
22 path: string;
23 } | null;
24 protected _transformCollectionDescription(name: string, desc: Partial<FileSystemCollectionDesc>): FileSystemCollectionDesc;
25 protected _transformSchematicDescription(name: string, _collection: FileSystemCollectionDesc, desc: Partial<FileSystemSchematicDesc>): FileSystemSchematicDesc;
26 hasTaskExecutor(name: string): boolean;
27 createTaskExecutor(name: string): Observable<TaskExecutor>;
28}