I was wondering if someone knew of a good way to continuously run the "flow check" command inside a given repo such that it will re-run anytime a file is updated?
Thanks! Thomas
fswatch -o ./ | xargs -n1 -I{} sh -c 'clear; printf "\033[3J" && flow'
using https://github.com/emcrisostomo/fswatch will get you a nice color-coded experience that is cleared properly every time
and if you wanna put it in your NPM scripts, here's the escaped version:
"flow-watch": "fswatch -o ./ | xargs -n1 -I{} sh -c 'clear; printf \"\\033[3J\" && flow'"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With