Module: watcher

Source:

Classes

Watcher

Type Definitions

watchCallback(srcDir, srcPaths)

On each time a file added/changed/removed, itself will be emitted, and after that, an array of dependency files are also emitted as changed, this keeps related files get latest dependency.

Parameters:
Name Type Description
srcDir String
srcPaths Object
Properties
Name Type Attributes Description
added Array.<String> <optional>

Added files.

changed Array.<String> <optional>

Changed files.

removed Array.<String> <optional>

Removed files.

Source: