aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/clean_and_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/anastasis-webui/clean_and_build.sh')
-rwxr-xr-xpackages/anastasis-webui/clean_and_build.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/anastasis-webui/clean_and_build.sh b/packages/anastasis-webui/clean_and_build.sh
index 2fa3ec777..21107a905 100755
--- a/packages/anastasis-webui/clean_and_build.sh
+++ b/packages/anastasis-webui/clean_and_build.sh
@@ -50,11 +50,14 @@ bundle ui-dev
if [ "WATCH" == "$1" ]; then
echo watch mode
+ echo Writting any file in the src directory will trigger a browser reload.
+ echo Be sure that the watcher server is running.
inotifywait -e close_write -r src -q -m | while read line; do
- DATE=$(date)
- echo $DATE $line
+ echo $(date) $line
build_js src/main.ts
bundle ui-dev
- ./watch/send_reload.sh
+ #CONTENT=$(echo 'alert("hola")' | base64)
+ ./watch/send.sh '{"type":"RELOAD"}'
+ #./watch/send.sh '{"type":"UPDATE","content":"'$CONTENT'"}'
done;
fi