The Config
object provided to this instance.
The Display
instance which allows displaying user configued messages.
The instance of the chokidar
watcher that powers this wrapper class.
The list of handlers attached to events in this instance. Handlers can be attached to the onBeforeStart
, onStart
, onBeforeChange
, onChange
, onBeforeStop
or onStop
events.
The Logger
instance which allows various log types based on level.
The paths generated by this Watcher
instance, using the config.
The root path generated by this Watcher
instance, using the config.
The instance of Thread
which manages the execution of commands on firing of watcher event.
Bind all watcher events to the instance.
Returns the instance of the internal watcher.
Allows attaching a handler to an watcher event. Does not attach event if event
is not valid.
The event to fire this function for. Possible options are onBeforeStart
, onStart
, onBeforeChange
, onChange
, onBeforeStop
and onStop
.
The event handler function. Receives
Generated using TypeDoc
The base watcher class, that handles all file watches and fires events accordingly.