UNPKG

725 BTypeScriptView Raw
1import execa from 'execa';
2export declare type TemplateConfig = {
3 placeholderName: string;
4 templateDir: string;
5 postInitScript?: string;
6 titlePlaceholder?: string;
7};
8export declare function installTemplatePackage(templateName: string, root: string, npm?: boolean): Promise<execa.ExecaReturns>;
9export declare function getTemplateConfig(templateName: string, templateSourceDir: string): TemplateConfig;
10export declare function copyTemplate(templateName: string, templateDir: string, templateSourceDir: string): Promise<void>;
11export declare function executePostInitScript(templateName: string, postInitScript: string, templateSourceDir: string): execa.ExecaChildProcess;
12//# sourceMappingURL=template.d.ts.map
\No newline at end of file