-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (52 loc) · 1.75 KB
/
Copy pathMakefile
File metadata and controls
69 lines (52 loc) · 1.75 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
# D-CIP developer convenience targets.
# These wrap the most common workflows so contributors don't memorize flags.
COMPOSE := docker compose -f infrastructure/docker/docker-compose.yml
.DEFAULT_GOAL := help
.PHONY: help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-22s\033[0m %s\n", $$1, $$2}'
.PHONY: install
install: ## Install JS and Python dependencies
pnpm install
cd apps/api && uv sync
.PHONY: dev
dev: ## Run web + api + worker locally via turbo
pnpm dev
.PHONY: up
up: ## Start core services in Docker (postgres, redis, api, worker, web — no neo4j/opensearch)
$(COMPOSE) --profile core up --build
.PHONY: up-full
up-full: ## Start the full stack in Docker, including Neo4j and OpenSearch
$(COMPOSE) --profile full up --build
.PHONY: up-prod
up-prod: ## Start the full stack (prod profile) in Docker
$(COMPOSE) --profile prod up --build -d
.PHONY: seed
seed: ## Seed one fictional demo case (safe to re-run; refuses to run in production)
$(COMPOSE) exec api python scripts/seed_demo_data.py
.PHONY: down
down: ## Stop the stack and remove containers
$(COMPOSE) down
.PHONY: down-volumes
down-volumes: ## Stop the stack and delete data volumes (DESTRUCTIVE)
$(COMPOSE) down -v
.PHONY: logs
logs: ## Tail logs for all services
$(COMPOSE) logs -f
.PHONY: lint
lint: ## Lint everything
pnpm lint
.PHONY: typecheck
typecheck: ## Type-check everything
pnpm typecheck
.PHONY: test
test: ## Run all unit/integration tests
pnpm test
.PHONY: format
format: ## Auto-format the whole repo
pnpm format
cd apps/api && uv run black . && uv run isort . && uv run ruff check --fix .
.PHONY: migrate
migrate: ## Apply database migrations
cd apps/api && uv run alembic upgrade head