-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 1.3 KB
/
Makefile
File metadata and controls
47 lines (36 loc) · 1.3 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
.PHONY: help
help: ## Show this help.
@uv run python -c "import re; \
[[print(f'\033[36m{m[0]:<20}\033[0m {m[1]}') for m in re.findall(r'^([a-zA-Z_-]+):.*?## (.*)$$', open(makefile).read(), re.M)] for makefile in ('$(MAKEFILE_LIST)').strip().split()]"
DOCKER_COMPOSE_DEV=docker compose -f docker-compose.yml -f docker-compose.override.yml
.PHONY: dev
dev: ## Start up all containers for development.
${DOCKER_COMPOSE_DEV} up
.PHONY: frontend-dev
frontend-dev: ## Start the frontend dev server.
cd frontend && npm run dev
.PHONY: api-dev
api-dev: ## Start the backend alone using Docker Compose.
${DOCKER_COMPOSE_DEV} up backend
.PHONY: local-api
local-api: ## Run the FastAPI backend directly.
cd backend && make local-api
.PHONY: build-dev
build-dev: ## Build containers for development.
${DOCKER_COMPOSE_DEV} build
.PHONY: format
format: ## Format all code.
@cd frontend && make format
@cd backend && make format
.PHONY: frontend-client
frontend-client: ## Regenerate the OpenAPI client for the frontend.
@cd frontend && make client
.PHONY: frontend
frontend: ## Build the frontend.
@cd frontend && npm run build
.PHONY: test-frontend
test-frontend: ## Run frontend unit tests then end-to-end tests.
@cd frontend && make test
.PHONY: test-backend
test-backend: ## Run backend tests.
@cd backend && make test