From 6c7c2d6dd3fadf25599dc14d804dd8f5013acef9 Mon Sep 17 00:00:00 2001 From: Jaakko Vanhala Date: Thu, 9 Apr 2026 20:18:47 +0300 Subject: [PATCH] local.sh: npm install automaattisesti jos node_modules puuttuu Co-Authored-By: Claude Opus 4.6 (1M context) --- network-poc/local.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/network-poc/local.sh b/network-poc/local.sh index 1e53cdc..17407bc 100755 --- a/network-poc/local.sh +++ b/network-poc/local.sh @@ -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