feat: add scripts/build.sh

This commit is contained in:
mirivlad 2026-06-16 12:12:13 +08:00
parent 92a82434ab
commit fecf61a375
1 changed files with 18 additions and 0 deletions

18
scripts/build.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
echo "=== verstak-browser-extension build ==="
if [ -f "$ROOT/package.json" ]; then
echo "[npm build]"
(cd "$ROOT" && npm ci --no-audit --no-fund)
echo " ✅ npm ci"
(cd "$ROOT" && npm run build)
echo " ✅ npm run build"
else
echo " repository empty — no build target yet"
echo " 📝 This repo will hold the Verstak browser extension (page capture)"
fi
echo ""
echo "✅ build passed (no-op)"