2021-07-31 14:29:21 -04:00
|
|
|
CMD="$(cat <<'EOF'
|
|
|
|
set -euo pipefail
|
|
|
|
HEIGHT="$(($(tput lines) - 1))"
|
|
|
|
clear
|
2021-08-21 14:02:08 -04:00
|
|
|
|
|
|
|
(
|
|
|
|
cd ./liveview-rust/js/
|
|
|
|
npm run-script build
|
|
|
|
)
|
|
|
|
|
2021-08-08 14:15:38 -04:00
|
|
|
for i in check fmt build clippy; do
|
2021-07-31 14:29:21 -04:00
|
|
|
echo "+ cargo "${i}""
|
|
|
|
cargo --color=always "${i}" |& head -n "${HEIGHT}"
|
|
|
|
done
|
|
|
|
EOF
|
|
|
|
)"
|
|
|
|
{
|
2021-08-21 14:02:08 -04:00
|
|
|
fd -tf -ers -ehtml
|
|
|
|
fd -tf liveview-dev.js
|
2021-07-31 14:29:21 -04:00
|
|
|
printf "%s\n" "Cargo.toml"
|
|
|
|
} | entr bash -c "${CMD}"
|