Skip to main content
Version: Next (2.x)

generate()

generate(options, plugins, hooks?): Promise<{ didEnd: string[]; didGenerate: string[]; didSetup: string[]; fileManager: FileManager; generatorOptions: NormalizedGeneratorOptions; pluginNames: string[]; watching: boolean; changedFile?: WatcherFile; } | undefined>

Parameters

ParameterType

options

GeneratorOptions

plugins

GeneratorPluginV1<unknown>[]

hooks?

GeneratorHooks

Returns

Promise<{ didEnd: string[]; didGenerate: string[]; didSetup: string[]; fileManager: FileManager; generatorOptions: NormalizedGeneratorOptions; pluginNames: string[]; watching: boolean; changedFile?: WatcherFile; } | undefined>