Massive/watch-tsc.sh
Brandon Presley 565df842c9 Add watch-lint.sh and watch-tsc.sh
Both these scripts will live reload run yarn lint and tsc,
reporting errors with notify-send.
2022-09-20 13:51:34 +12:00

10 lines
184 B
Bash
Executable File

#!/bin/sh
yarn tsc --watch --preserveWatchOutput | tee >(
while read ln; do
if echo "${ln}" | grep -q "Found [^0][0-9]* error"; then
notify-send "${ln}"
fi
done
)