Scaffold Class
Description
This module manages all files in the scaffold folder.
Constructor
Scaffold
This module manages all files in the scaffold folder.
Methods
_dispatch
(type, path, [callback]) async private_loadFileList
(callback) async privateaddProcessor
(pattern, fn)Adds a processor to the box.
Parameters
-
pattern
RegExp | String
The path pattern of the processor. See Box.Pattern for more info.
-
fn
Function
The processor function.
process
([files], [callback]) asyncremove
(layout, [callback]) asyncset
(layout, content, [callback]) asyncunwatch
Stops watching.
watch
Starts watching.
Properties
Box.Pattern
staticSee Box.Pattern
asset_dir
Asset folder.
base
Base path.
defaults
The default scaffold collection.
isProcessing
privateIndicates if the box is processing.
processingFiles
privateProcessing files.
processors
Processor collection.
scaffolds
The scaffold collection.
watcher
A instance of watcher.