Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PostProcessFiles

Performs all actions to be carried on files after all directives have been executed..

Hierarchy

  • PostProcessFiles

Index

Constructors

constructor

Properties

Private arrPromises

arrPromises: Array<Promise<void>> = []

To speed up things post processing is async. All promises are stored and returned in an Array to wait with Promise.all.

Private config

config: YassbConfig

the full YASSB configuration file.

Private htmlFiles

htmlFiles: Array<string> = []

List of files to post process.

Private isWatching

isWatching: boolean

determines if we are in watch mode to skip unnecessary jobs meant for productions.

Methods

do

  • do(): Promise<Array<void>>
  • Do post process files by creating the list of file with ListFiles and then delegating the actions for each file to PostProcessFile. All promises returned by PostProcessFile are pushed to an Array and returned so the calling process can wait if necessary.

    Returns Promise<Array<void>>

    all the promises in an Array.

Private removeSiteMap

  • removeSiteMap(): void