UNPKG

1.39 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 { BaseException } from '@angular-devkit/core';
9import { RuleFactory } from '../src';
10import { FileSystemCollectionDesc, FileSystemSchematicDesc } from './description';
11import { FileSystemEngineHostBase } from './file-system-engine-host-base';
12export declare class NodePackageDoesNotSupportSchematics extends BaseException {
13 constructor(name: string);
14}
15/**
16 * A simple EngineHost that uses NodeModules to resolve collections.
17 */
18export declare class NodeModulesEngineHost extends FileSystemEngineHostBase {
19 private readonly paths?;
20 constructor(paths?: string[] | undefined);
21 private resolve;
22 protected _resolveCollectionPath(name: string, requester?: string): string;
23 protected _resolveReferenceString(refString: string, parentPath: string, collectionDescription?: FileSystemCollectionDesc): {
24 ref: RuleFactory<{}>;
25 path: string;
26 } | null;
27 protected _transformCollectionDescription(name: string, desc: Partial<FileSystemCollectionDesc>): FileSystemCollectionDesc;
28 protected _transformSchematicDescription(name: string, _collection: FileSystemCollectionDesc, desc: Partial<FileSystemSchematicDesc>): FileSystemSchematicDesc;
29}