#!/usr/bin/env bash
# Rebuild the UI on every change (hot reload, also serves the shadow-cljs dashboard on :9630).
# The output lands in resources/public/js, so run script/server alongside and refresh the page.
set -euo pipefail
cd "$(dirname "$0")/../ui"

[[ -d node_modules ]] || npm ci
exec npx shadow-cljs watch app
