/** * Scafflater class */ export class Scafflater { /** * Scafflater constructor. * * @param {?(ScafflaterOptions|object)} options - Scafflater configuration. If null, will get the default configuration. * @param {?TemplateManager} templateManager The template manager */ constructor(options?: (ScafflaterOptions | object) | null, templateManager?: TemplateManager | null); options: ScafflaterOptions; templateManager: TemplateManager; /** * Run scafflater * * @param {string} originPath The path where the template or partial is stored * @param {object} parameters Parameters for the generation process * @param {string} templatePath The template path * @param {string} targetPath The path where code must be generated * @param {object} ctx The context of generation * @returns {Promise} */ run(originPath: string, parameters: object, templatePath: string, targetPath?: string, ctx?: object): Promise; /** * Initializes the basic structure for scafflater template. * * @param {string} sourceKey - Source Template key * @param {object} parameters - Parameters used to generate the template * @param {string} targetPath - Path where the results must be placed * @returns {Promise} */ init(sourceKey: string, parameters: object, targetPath?: string): Promise; /** * Brief description of the function here. * * @summary If the description is long, write your summary here. Otherwise, feel free to remove this. * @param {string} templateName The template name thar includes the partial * @param {string} partialName The partial name * @param {object} parameters Parameters used to generate partials * @param {string} targetPath Path where the results must be placed * @returns {Promise} Brief description of the returning value here. */ runPartial(templateName: string, partialName: string, parameters: object, targetPath?: string): Promise; } import { ScafflaterOptions } from "./options"; import { TemplateManager } from "./template-manager";