-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (50 loc) · 1.43 KB
/
Makefile
File metadata and controls
63 lines (50 loc) · 1.43 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
.PHONY: help setup dev dev-backend dev-frontend db db-stop lint format check check-fix type-check clean
help:
@echo "Available targets:"
@echo " setup - Install all dependencies"
@echo " dev - Start database, backend, and frontend"
@echo " db - Start database container"
@echo " db-stop - Stop database container"
@echo " lint - Lint all packages"
@echo " format - Format all packages"
@echo " check - Lint + format check all packages"
@echo " check-fix - Lint + format fix all packages"
@echo " type-check - Type check all packages"
@echo " clean - Clean build artifacts"
setup:
@make -C ai setup
@make -C backend setup
@cd frontend && pnpm install
db:
@docker-compose -f docker-compose.yml up -d postgres
db-stop:
@docker-compose -f docker-compose.yml stop postgres
dev: setup db
@make -j2 dev-backend dev-frontend
dev-backend:
@make -C backend dev
dev-frontend:
@cd frontend && pnpm dev
lint:
@make -C ai lint
@make -C backend lint
@cd frontend && pnpm lint
format:
@make -C ai format
@make -C backend format
@cd frontend && pnpm format
check:
@make -C ai check
@make -C backend check
@cd frontend && pnpm check
check-fix:
@make -C ai check-fix
@make -C backend check-fix
@cd frontend && pnpm check:fix
type-check:
@make -C backend type-check
@cd frontend && pnpm type-check
clean:
@make -C ai clean
@make -C backend clean
@cd frontend && pnpm clean