blob: 6a303141abfd60a56a672617e26b1ec71555cb74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Path } from '@angular-devkit/core';
import { Tree } from '@angular-devkit/schematics';
export interface ModuleOptions {
module?: string;
name: string;
flat?: boolean;
path?: string;
skipImport?: boolean;
moduleExt?: string;
routingModuleExt?: string;
}
export declare const MODULE_EXT = ".module.ts";
export declare const ROUTING_MODULE_EXT = "-routing.module.ts";
/**
* Find the module referred by a set of options passed to the schematics.
*/
export declare function findModuleFromOptions(host: Tree, options: ModuleOptions): Path | undefined;
/**
* Function to find the "closest" module to a generated file's path.
*/
export declare function findModule(host: Tree, generateDir: string, moduleExt?: string, routingModuleExt?: string): Path;
/**
* Build a relative path from one file path to another file path.
*/
export declare function buildRelativePath(from: string, to: string): string;
|