Simple task runner on directory changes.
- Download multiwatch
git clone https://github.com/Enapiuz/multiwatch.git
- Install via go
cd multiwatch && go install
brew install Enapiuz/tap/multiwatch
Work in progress
# debounce time for file change events in milliseconds
delay=500
[[watch]]
name = "linter"
paths = ["src"]
commands = ["npm run lint"]
[[watch]]
name = "tests"
paths = ["src", "tests"]
ignorePrefixes=["vendor"] # ignore "src/vendor/*" and "tests/vendor/*"
commands = ["npm run test", "npm run build"]
breakOnFail = true # if tests will fail, build won't be run
If you are enjoying this tool, feel free to buy me a coffee ๐