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 | */
|
---|
8 | import { BaseException } from '@angular-devkit/core';
|
---|
9 | import { FileOperator, Rule } from '../engine/interface';
|
---|
10 | export declare const TEMPLATE_FILENAME_RE: RegExp;
|
---|
11 | export declare class OptionIsNotDefinedException extends BaseException {
|
---|
12 | constructor(name: string);
|
---|
13 | }
|
---|
14 | export declare class UnknownPipeException extends BaseException {
|
---|
15 | constructor(name: string);
|
---|
16 | }
|
---|
17 | export declare class InvalidPipeException extends BaseException {
|
---|
18 | constructor(name: string);
|
---|
19 | }
|
---|
20 | export declare type PathTemplateValue = boolean | string | number | undefined;
|
---|
21 | export declare type PathTemplatePipeFunction = (x: string) => PathTemplateValue;
|
---|
22 | export declare type PathTemplateData = {
|
---|
23 | [key: string]: PathTemplateValue | PathTemplateData | PathTemplatePipeFunction;
|
---|
24 | };
|
---|
25 | export interface PathTemplateOptions {
|
---|
26 | interpolationStart: string;
|
---|
27 | interpolationEnd: string;
|
---|
28 | pipeSeparator?: string;
|
---|
29 | }
|
---|
30 | export declare function applyContentTemplate<T>(options: T): FileOperator;
|
---|
31 | export declare function contentTemplate<T>(options: T): Rule;
|
---|
32 | export declare function applyPathTemplate<T extends PathTemplateData>(data: T, options?: PathTemplateOptions): FileOperator;
|
---|
33 | export declare function pathTemplate<T extends PathTemplateData>(options: T): Rule;
|
---|
34 | /**
|
---|
35 | * Remove every `.template` suffix from file names.
|
---|
36 | */
|
---|
37 | export declare function renameTemplateFiles(): Rule;
|
---|
38 | export declare function template<T>(options: T): Rule;
|
---|
39 | export declare function applyTemplates<T>(options: T): Rule;
|
---|