-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommit_and_build.ps1
More file actions
64 lines (58 loc) · 2.33 KB
/
Copy pathcommit_and_build.ps1
File metadata and controls
64 lines (58 loc) · 2.33 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# HEADY_BRAND:BEGIN
# HEADY SYSTEMS :: SACRED GEOMETRY
# FILE: commit_and_build.ps1
# LAYER: root
#
# _ _ _____ _ ____ __ __
# | | | || ____| / \ | _ \ \ \ / /
# | |_| || _| / _ \ | | | | \ V /
# | _ || |___ / ___ \| |_| | | |
# |_| |_||_____/_/ \_\____/ |_|
#
# Sacred Geometry :: Organic Systems :: Breathing Interfaces
# HEADY_BRAND:END
# HEADY COMMIT & BUILD PROTOCOL
$ErrorActionPreference = "Stop"
Write-Host "∞ INITIATING LOCAL BUILD & COMMIT CYCLE ∞" -ForegroundColor Cyan
# ------------------------------------------------------------------------------
# 1. GIT COMMIT PROTOCOL
# ------------------------------------------------------------------------------
Write-Host "`n[1/3] Staging and Committing..." -ForegroundColor Yellow
git add .
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm"
try {
git commit -m "Heady Build Update: $timestamp"
Write-Host "✓ Changes committed." -ForegroundColor Green
} catch {
Write-Host "O Nothing to commit (working tree clean)." -ForegroundColor Gray
}
# ------------------------------------------------------------------------------
# 2. MONOREPO BUILD (Manager & Frontend)
# ------------------------------------------------------------------------------
Write-Host "`n[2/3] Building Heady Monorepo..." -ForegroundColor Yellow
try {
npm install
npm run build --prefix frontend
Write-Host "✓ Monorepo dependencies installed and frontend built." -ForegroundColor Green
} catch {
Write-Host "X Monorepo build failed." -ForegroundColor Red
exit 1
}
# ------------------------------------------------------------------------------
# 3. PYTHON BUILD (Worker)
# ------------------------------------------------------------------------------
Write-Host "`n[3/3] Building Python Worker..." -ForegroundColor Yellow
$workerReqs = "backend/python_worker/requirements.txt"
if (Test-Path $workerReqs) {
try {
pip install -r $workerReqs
Write-Host "✓ Python dependencies installed." -ForegroundColor Green
} catch {
Write-Host "X Python build failed." -ForegroundColor Red
exit 1
}
} else {
Write-Host "! $workerReqs not found." -ForegroundColor DarkGray
}
Write-Host "`n∞ CYCLE COMPLETE. READY FOR PUSH. ∞" -ForegroundColor Cyan
Write-Host "To push to remotes, run: .\nexus_deploy.ps1"