-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (53 loc) · 1.58 KB
/
Makefile
File metadata and controls
62 lines (53 loc) · 1.58 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
.PHONY: help build-ui build-core build-all dev clean install test
help:
@echo "heyvm - Interactive SSH VM Manager"
@echo ""
@echo "Available targets:"
@echo " install - Install dependencies (UI + Core)"
@echo " build-ui - Build UI (TypeScript/Ink)"
@echo " build-core - Build Core backend (Go)"
@echo " build-all - Build all components"
@echo " dev - Run in development mode"
@echo " test - Run tests"
@echo " clean - Clean build artifacts"
@echo " help - Show this help message"
install:
@echo "Installing UI dependencies..."
cd ui && npm install
@echo "Installing Core dependencies..."
cd core && go mod tidy
@echo "Dependencies installed successfully!"
build-ui:
@echo "Building UI..."
cd ui && npm run build
@echo "UI build complete!"
build-core:
@echo "Building Core backend..."
cd core && go build -o ../bin/heyvm-core ./cmd/heyvm-core
@echo "Core backend build complete! Binary: bin/heyvm-core"
build-all: build-core build-ui
@echo "Full build complete!"
dev:
@echo "Starting heyvm in development mode..."
@echo "Building core backend first..."
@make build-core
@echo "Building UI..."
cd ui && npm run build
@echo "Starting integrated app..."
cd ui && npm run dev:with-core
test:
@echo "Running tests..."
@echo "Testing Core backend..."
cd core && go test -v ./...
@echo "Tests complete!"
clean:
@echo "Cleaning build artifacts..."
rm -rf bin/*
rm -rf ui/dist
rm -rf ui/node_modules
rm -rf core/vendor
@echo "Clean complete!"
# Quick run target (for testing)
run: build-all
@echo "Running heyvm..."
cd ui && npm start