diff --git a/watch-lint.sh b/watch-lint.sh new file mode 100755 index 0000000..e5f0536 --- /dev/null +++ b/watch-lint.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +ls *.ts* | entr yarn lint | tee >( + while read ln; do + if echo "${ln}" | grep -q "error"; then + notify-send "${ln}" + fi + done +) diff --git a/watch-tsc.sh b/watch-tsc.sh new file mode 100755 index 0000000..092687e --- /dev/null +++ b/watch-tsc.sh @@ -0,0 +1,9 @@ +#!/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 +)