Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PostProcessFile

Post processes each file passed by PostProcessFiles

Hierarchy

  • PostProcessFile

Index

Constructors

constructor

Properties

Private config

config: YassbConfig

full YASSB configuration object

Private fileContents

fileContents: string

Contents of the file to post process

Private fileData

fileData: FrontMatterData

Front Matter data found in fileContents

Private isWatching

isWatching: boolean

determins if in watch mode to skip roduction-only steps

Private pathToFile

pathToFile: string

full absolute path to the file being processed

Methods

init

  • init(): Promise<void>

Private injectFrontMatterData

Private postProcessFile

  • postProcessFile(): void

Private prepareCodeForSaving

  • prepareCodeForSaving(): void

Private runCustomPostProcessors

  • runCustomPostProcessors(): void

Private saveToDiskFinalVersionOfFile

  • saveToDiskFinalVersionOfFile(): void

Private setFileContents

  • setFileContents(): Promise<void>

Private setFileData

  • setFileData(): void