wgo

Watch files for changes and execute arbitrary commands on modification

brewmacoslinux
Try with needOr install directly
Source

About

Watch arbitrary files and respond with arbitrary commands

Commands

wgo

Examples

Watch Go files and run tests on changes$ wgo run ./... ./...
Watch source files and rebuild on any change$ wgo -xignore=vendor,node_modules -file=.go,.ts go build
Monitor multiple file patterns and execute custom script$ wgo -file=.js,.json npm test