-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 761 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 761 Bytes
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
SHELL := /bin/bash
.PHONY: dev test lint types build db-migrate
dev:
@echo "Starting local infra (db + redis)..."
docker compose up -d db redis
@echo "Run API: cd packages/api && uvicorn main:app --reload --port 8000"
@echo "Run Web: cd packages/web && npm run dev"
test:
cd packages/api && pytest
cd packages/cli && pytest
cd packages/web && npm test
lint:
cd packages/api && black --check . && ruff check .
cd packages/cli && black --check . && ruff check .
cd packages/web && npm run lint
types:
cd packages/api && mypy .
cd packages/cli && mypy .
cd packages/web && npm run type-check
build:
cd packages/web && npm run build
db-migrate:
psql postgresql://postgres:postgres@localhost:54322/postgres -f supabase/migrations/0001_init.sql