html-build
Version:
Utility script to build HTML documents - Appends scripts and styles, removes debug parts, append HTML partials, template options, etc.
28 lines (27 loc) • 785 B
TypeScript
import { Params, SuffixFunction } from "./params";
export interface Tag {
name: string;
type: TagType;
optional: boolean;
recursive: boolean;
inline: boolean;
noprocess: boolean;
attributes: string;
lines: string[];
}
export interface TagOptions extends Tag {
files: string[];
dest: string;
src: string;
prefix?: string;
suffix?: string | SuffixFunction;
data?: object;
relative?: boolean;
target?: string;
regexTagStart: string;
regexTagEnd: string;
EOL: string;
params: Params;
}
export declare type TagType = "script" | "style" | "section" | "process" | "remove";
export declare function createTagOptions(tag: Tag, params: Params, files: string[], dest: string): TagOptions;