Brandon Presley
565df842c9
Both these scripts will live reload run yarn lint and tsc, reporting errors with notify-send.
10 lines
154 B
Bash
Executable File
10 lines
154 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ls *.ts* | entr yarn lint | tee >(
|
|
while read ln; do
|
|
if echo "${ln}" | grep -q "error"; then
|
|
notify-send "${ln}"
|
|
fi
|
|
done
|
|
)
|