local.sh: npm install automaattisesti jos node_modules puuttuu
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
echo "=== Kipinä Studio Local Development ==="
|
||||
|
||||
# Frontend build
|
||||
# Frontend
|
||||
echo "[1/2] Rakennetaan frontend..."
|
||||
cd "$(dirname "$0")/frontend"
|
||||
cd "$SCRIPT_DIR/frontend"
|
||||
[ -d node_modules ] || npm install --silent
|
||||
npm run build --silent 2>&1 | tail -1
|
||||
|
||||
# Hub
|
||||
echo "[2/2] Käynnistetään hub..."
|
||||
cd ../hub
|
||||
echo "[2/2] Käynnistetään hub → http://localhost:3000"
|
||||
cd "$SCRIPT_DIR/hub"
|
||||
cargo run
|
||||
|
||||
Reference in New Issue
Block a user