recovered from aaronjaworski710
CI / offline-tests (push) Has been cancelled
CI / web-unit-tests (push) Has been cancelled
CI / package-console10 (push) Has been cancelled

This commit is contained in:
reform
2026-10-23 20:02:14 +03:00
commit 8044e88be4
409 changed files with 104886 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# scripts/build_web_console.sh — build console10 (Vite+Preact) into apps/web/dist
# Prefer npm ci when package-lock.json is present (CI-friendly).
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT/apps/web"
if [[ -f package-lock.json ]]; then
npm ci
elif [[ ! -d node_modules ]]; then
npm install
fi
npm run build
test -f dist/index.html
echo "[web] built → $ROOT/apps/web/dist"