Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (53 loc) · 1.64 KB
/
Copy pathMakefile
File metadata and controls
69 lines (53 loc) · 1.64 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
65
66
67
68
69
.PHONY: dev dev-backend dev-frontend docker docker-down test test-backend test-frontend build clean help
# Default target
help:
@echo "Work-Flow Platform"
@echo ""
@echo "Development:"
@echo " make dev - Start all services locally (Temporal + Backend + Frontend)"
@echo " make dev-backend - Start backend only (Temporal + Worker + FastAPI)"
@echo " make dev-frontend - Start frontend dev server only"
@echo ""
@echo "Docker:"
@echo " make docker - Build and start all services via Docker Compose"
@echo " make docker-down - Stop and remove Docker Compose services"
@echo ""
@echo "Testing:"
@echo " make test - Run all tests (backend + frontend)"
@echo " make test-backend - Run backend tests (pytest)"
@echo " make test-frontend - Run frontend tests (vitest)"
@echo ""
@echo "Build:"
@echo " make build - Build frontend for production"
@echo ""
@echo "Cleanup:"
@echo " make clean - Remove build artifacts and logs"
# ---- Development ----
dev:
@echo "Starting all services..."
@$(MAKE) -C backend dev &
@sleep 5
@cd frontend && npm run dev
dev-backend:
@$(MAKE) -C backend dev
dev-frontend:
@cd frontend && npm run dev
# ---- Docker ----
docker:
docker compose up --build
docker-down:
docker compose down
# ---- Testing ----
test: test-backend test-frontend
test-backend:
@cd backend && python -m pytest
test-frontend:
@cd frontend && npm test -- --run
# ---- Build ----
build:
@cd frontend && npm run build
# ---- Cleanup ----
clean:
@$(MAKE) -C backend clean
@rm -rf frontend/.next frontend/node_modules/.cache
@echo "Cleaned build artifacts and logs."