Add watch-lint.sh and watch-tsc.sh
Both these scripts will live reload run yarn lint and tsc, reporting errors with notify-send.
This commit is contained in:
parent
ceda1cecf4
commit
565df842c9
9
watch-lint.sh
Executable file
9
watch-lint.sh
Executable file
|
@ -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
|
||||||
|
)
|
9
watch-tsc.sh
Executable file
9
watch-tsc.sh
Executable file
|
@ -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
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user