GenerateContents
@aurorajs.dev/catalyst-cli / generator/engine/file-manager / generateContents
Function: generateContents()
Section titled “Function: generateContents()”generateContents(
logger,originPath,relativeTargetBasePath,relativeTargetPath,options?,result?):Promise<void>
Defined in: generator/engine/file-manager.ts:148
Recursively walk a template directory on disk and generate every file
within it into the target location. Applies filename substitution,
exclusion filters (excludedFiles, excludedOperations) and the
overwrite rules defined in GenerateOptions.
Use generateFromTemplate unless you need to generate from a custom directory outside the bundled template tree.
Parameters
Section titled “Parameters”logger
Section titled “logger”originPath
Section titled “originPath”string
relativeTargetBasePath
Section titled “relativeTargetBasePath”string
relativeTargetPath
Section titled “relativeTargetPath”string
options?
Section titled “options?”GenerateOptions = {}
result?
Section titled “result?”GenerationResult = ...
Returns
Section titled “Returns”Promise<void>