2026-06-03 11:40:21 +08:00
|
|
|
#!/usr/bin/env bash
|
2026-06-15 17:25:28 +08:00
|
|
|
# Build HSAP frontend from platform/web/ → platform/ui-hsap/dist/
|
2026-06-03 11:40:21 +08:00
|
|
|
set -euo pipefail
|
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
|
|
|
|
|
|
echo "[web] Installing dependencies..."
|
|
|
|
|
cd "$ROOT/platform/web"
|
|
|
|
|
npm ci --silent
|
|
|
|
|
|
|
|
|
|
echo "[web] Building..."
|
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
|
|
DIST="$ROOT/platform/ui-hsap/dist"
|
2026-06-15 17:25:28 +08:00
|
|
|
rm -rf "$DIST/annotate"
|
2026-06-03 11:40:21 +08:00
|
|
|
|
|
|
|
|
echo "[web] Build complete → $DIST"
|
|
|
|
|
ls -lh "$DIST/index.html" "$DIST/assets/" | head -8
|