/multiwatch

Simple task runner on directory changes that doesn't produce tons of logs if everything is OK 👌

Primary LanguageGoGNU General Public License v3.0GPL-3.0

multiwatch

Build Status Go Report Card codecov Maintainability Open Source Helpers License: GPL v3 FOSSA Status

Simple task runner on directory changes. asciicast

Installation

Manual

  1. Download multiwatch
    • git clone https://github.com/Enapiuz/multiwatch.git
  2. Install via go
    • cd multiwatch && go install

Distros

macOS

brew install Enapiuz/tap/multiwatch

Other systems

Work in progress

Config

# 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

Donation

If you are enjoying this tool, feel free to buy me a coffee 😉

Buy Me A Coffee

License

FOSSA Status