UNPKG

templates-mo

Version:

Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting

52 lines (50 loc) • 1.04 kB
export interface TemplateOptions { /** * Don't load local `.tps/` config folder */ noLocalConfig: boolean; /** * Don't load global `.tps/` config folder */ noGlobalConfig: boolean; /** * Don't load the default folder */ defaultPackage: boolean; /** * Use all default prompt answers */ default: boolean; /** * Show hidden prompts */ hidden: boolean; /** * Force creation of template. This will over write files */ force: boolean; /** * Force creation of template. This will over write files */ newFolder: boolean; /** * Force creation of template. This will delete the directory if exists. */ wipe: boolean; /** * Change where templates reads `.tps` folder from */ tpsPath: string | null; /** * Directory to prepend to each build paths */ extendedDest: string; /** * Use experimental template engine */ experimentalTemplateEngine: boolean; } export interface TemplateAnswers { // eslint-disable-next-line @typescript-eslint/no-explicit-any [answerName: string]: any; }