File size: 1,252 Bytes
9de795a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Setup-Script für Windows (Bryans Dev-System).
# Ziel: «eine Stunde sauber starten» – frische Maschine → lauffähiges Repo.
#
# Voraussetzungen (einmalig, falls nicht vorhanden):
#   winget install OpenJS.NodeJS.LTS        # Node 22 LTS
#   winget install astral-sh.uv             # uv (holt Python 3.12 selbst)
#   corepack enable                          # aktiviert pnpm (gepinnt in package.json)

$ErrorActionPreference = "Stop"
Set-Location (Join-Path $PSScriptRoot "..")

Write-Host "==> Prüfe Werkzeuge..." -ForegroundColor Green
node --version
if (-not (Get-Command pnpm -ErrorAction SilentlyContinue)) { corepack enable }
pnpm --version
uv --version

Write-Host "==> Installiere Frontend-/Shared-Abhängigkeiten (pnpm)..." -ForegroundColor Green
pnpm install --frozen-lockfile

Write-Host "==> Installiere Python-Engines (uv, holt Python 3.12 bei Bedarf)..." -ForegroundColor Green
uv --project services/engines sync

Write-Host "==> Verifiziere: Lint + Typecheck + Tests..." -ForegroundColor Green
pnpm lint
pnpm typecheck
pnpm test

Write-Host ""
Write-Host "Setup OK. Starten mit:" -ForegroundColor Green
Write-Host "  pnpm dev   # Frontend  -> http://localhost:5173"
Write-Host "  pnpm api   # Engines   -> http://localhost:8000"