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
14 lines (13 loc) • 553 B
TypeScript
/**
* Get all locations a template can be
*
* Templates can be in be:
* - any `.tps/` directory from the callers cwd and any directory above it
* - Any `node_module` directory from the callers cwd and any directory above it
*/
export declare const getTemplateLocations: (cwd?: string) => string[];
/**
* Get the path to a template or null if template doesnt exist
*/
export declare const findTemplate: (templateName: string, cwd?: string) => string | null;
export declare const directoryIsTpsInitialized: (location: string) => Promise<boolean>;