Files
kid_dash/scripts/run-prod.sh
T
Elias Journal 30f9148adb Initial commit: KiddOs v3 React kiosk
- React 18 + Vite 5 hot-reload OS (800x480 Nord theme)
- 7 apps: Journal, Calculator, Drawing, CodeLab, Clock, Files, Scratch
- Cage + Cog Wayland kiosk, offline localStorage
- Scripts: dev.sh, run-kiosk.sh, run-prod.sh
2026-08-24 21:53:02 -04:00

20 lines
530 B
Bash
Executable File

#!/bin/bash
# Dev helper: run both vite + quick test
set -e
cd "$(dirname "$0")/../webapp"
echo "Checking vite build..."
npm run build
echo "Build ok -> dist/"
echo ""
echo "Preview static build on http://localhost:4173 to test without HMR"
npm run preview -- --host 0.0.0.0 --port 4173 &
PREVIEW_PID=$!
echo "Preview PID $PREVIEW_PID"
sleep 2
echo ""
echo "Try kiosk with prod file:"
echo "cage -s -- cog --platform=wl file://$PWD/dist/index.html --bg-color=#2E3440"
echo ""
echo "Press Ctrl+C to stop preview"
wait $PREVIEW_PID