# VibeCoding Build All Services Script
# This script builds the main project and all vibe-services
Write-Host "π Building VibeCoding System..." -ForegroundColor Cyan
# Phase 1: Install dependencies for all services
# This is still necessary as each service has its own package.json for runtime dependencies
Write-Host "`nπ¦ Installing dependencies for all services..." -ForegroundColor Cyan
$services = @(
"context-manager",
"code-generator",
"dependency-tracker",
"doc-generator",
"test-validator",
"deployment-manager"
)
foreach ($service in $services) {
Write-Host " Installing $service dependencies..." -ForegroundColor DarkYellow
Push-Location "vibe-services/$service"
npm install
if ($LASTEXITCODE -ne 0) {
Write-Host " β $service dependencies installation failed! Continuing anyway." -ForegroundColor Red
}
Pop-Location
}
Write-Host "β
All service dependencies processed." -ForegroundColor Green
# --- Phase 2: Build everything from the root ---
Write-Host "`nπ Starting unified compilation..." -ForegroundColor Cyan
# Build main project and all services
Write-Host "`nπ¦ Building main project and all services..." -ForegroundColor Yellow
npm run build
if ($LASTEXITCODE -ne 0) {
Write-Host "β Unified build failed!" -ForegroundColor Red
exit 1
}
Write-Host "β
Unified build completed successfully" -ForegroundColor Green
Write-Host "`nπ VibeCoding System build completed!" -ForegroundColor Cyan
Write-Host "π‘ Next steps:" -ForegroundColor Yellow
Write-Host " 1. Test CLI: npm run vibecoding" -ForegroundColor White
Write-Host " 2. Initialize project: npm run vibecoding init" -ForegroundColor White
Write-Host " 3. Start system: npm start" -ForegroundColor White