MCPcopy
hub / github.com/blitz-js/blitz / preFileWrite

Function preFileWrite

packages/generator/src/generator.ts:386–389  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

384 }
385
386 async preFileWrite(filePath: string): Promise<CommonTemplateValues> {
387 // allow subclasses to do something before writing a file
388 return this.getTemplateValues()
389 }
390
391 async postFileWrite(filePath: string, templateValues: CommonTemplateValues): Promise<void> {
392 // allow subclasses to do something after writing a file

Callers

nothing calls this directly

Calls 1

getTemplateValuesMethod · 0.65

Tested by

no test coverage detected