This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/client/watch.sh
2021-05-08 18:14:27 -07:00

15 lines
298 B
Bash

#!/usr/bin/env bash
set -euo pipefail
npm run watchify &
c1="";
while :; do
c2=$(find html css img -type f -and -not -iname '*autogen*'|sort|xargs cat|md5sum);
[[ $c1 != $c2 ]] && npm run build -- --debug --no-js --no-binary-assets --no-web-app-files
c1=$c2;
sleep 1;
done
wait