Christopher Vagnetoft
30dfd4889b
* Added request logging to com.noccy.apiclient * Added plugin com.noccy.watcher * Added pipe command and filter support * Fixes and stubs |
||
---|---|---|
.. | ||
Commands | ||
Monitor | ||
FileWatcher.php | ||
README.md | ||
Rule.php | ||
sparkplug.php |
Watcher Plugin for Spark
Note: While the plugin currently supports wildcards, it does not scale well. Keep the watched files to a minimum or increase the interval if you experience issues.
Usage
$ spark watch
Installation
- Install Spark with global plugins
- Initialize your project:
spark init
- Enable the plugin with
spark plugin --enable com.noccy.watcher
- Configure your
.spark/watchers.json
file
Configuration
watchers.json
{
"watchers": [
{
"name": "name-of-rule",
"watch": [ "file1", "dir1/*" ],
"initial-trigger": true,
"actions": [
"@build"
]
}
]
}
The initial-trigger
key controls whether the rule is triggered on startup.