forked from tracefinity/tracefinity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 644 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (19 loc) · 644 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
.PHONY: dev test-e2e test-e2e-ui lint lint-backend lint-frontend lint-fix
dev:
@trap 'kill 0' EXIT; \
(cd backend && . venv/bin/activate && uvicorn app.main:app --reload --port 8000) & \
(cd frontend && pnpm run dev) & \
wait
test-e2e:
cd frontend && E2E_TEST_MODE=1 GOOGLE_API_KEY=mock pnpm exec playwright test
test-e2e-ui:
cd frontend && E2E_TEST_MODE=1 GOOGLE_API_KEY=mock pnpm exec playwright test --ui
lint: lint-backend lint-frontend
lint-backend:
ruff check backend/
lint-frontend:
cd frontend && pnpm run lint
cd frontend && pnpm exec tsc --noEmit
lint-fix:
ruff check backend/ --fix
cd frontend && pnpm run lint:fix