UNPKG

hades-cli

Version:
56 lines (55 loc) 2.13 kB
import { Options } from 'ejs'; import { StateService } from './../services/state.service'; import './../prototypes/string-to-kebab-case.interface'; import './../prototypes/string-to-kebab-case'; import './../prototypes/string-to-snake-case.interface'; import './../prototypes/string-to-snake-case'; import './../prototypes/string-to-camel-case.interface'; import './../prototypes/string-to-camel-case'; import './../prototypes/string-to-pascal-case.interface'; import './../prototypes/string-to-pascal-case'; import './../handlebars/helpers/string-to-camel-case'; import './../handlebars/helpers/string-to-kebab-case'; import './../handlebars/helpers/string-to-pascal-case'; import './../handlebars/helpers/string-to-snake-case'; import './../handlebars/helpers/has-items'; import './../handlebars/helpers/not-in-array'; import './../handlebars/helpers/faker'; import './../handlebars/helpers/faker-property'; import './../handlebars/helpers/set-var'; import './../handlebars/helpers/loops'; export declare class FileManager { static readonly stateService: StateService; /** * Delete all origin files from directory recursively. * @param currentPath * @param skipDirectories */ static deleteOriginFiles(currentPath: string): void; /** * Render templates with handlebars template engine. * @param content * @param data * @param opts */ static renderContent(content: string, data: any, opts?: Options): string; /** * Render filename and folder name * @param name */ static renderFilename(name: string): string; /** * Render all files and folders from template folder * @param currentPath * @param relativePath */ static generateContents(currentPath: string, relativePath: string, rootTemplatePath: string): void; /** * Create and render file template * @param originFilePath * @param file * @param relativeDirectoryPath * @param projectDirectory */ static manageFileTemplate(originFilePath: string, file: string, relativeDirectoryPath: string, projectDirectory?: string): void; }