watch-then-execute
A CLI tool to execute script after source file changes.
install
yarn global add watch-then-execute
usage
watch-then-execute "src/*.ts" --script "npm run build"
options
key | description |
---|---|
-e,--exclude | exclude files, repeatable |
--script | executed script |
-h,--help | Print this message. |
-v,--version | Print the version |
API
; watch, , "npm run build";watch, , "npm run build";
exclude files
watch-then-execute "src/*.ts" --exclude "src/*.d.ts" --script "npm run build"