-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (36 loc) · 2.11 KB
/
Copy pathMakefile
File metadata and controls
51 lines (36 loc) · 2.11 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
.PHONY: test lint typecheck build health security test\:coverage test\:api test\:web test\:coverage\:web
# ─── Test ─────────────────────────────────────────────────────────────
test: test\:api test\:web
test\:api:
cd apps/api && python -m pytest tests/ -v --tb=short
test\:web:
cd apps/web && npm run test
test\:coverage:
cd apps/api && python -m pytest tests/ --cov=. --cov-report=term-missing --cov-report=html:../../reports/latest/htmlcov -q
test\:coverage\:web:
cd apps/web && npm run test:coverage
# ─── Lint ─────────────────────────────────────────────────────────────
lint: lint\:api lint\:web
lint\:api:
cd apps/api && python -m compileall -q .
lint\:web:
cd apps/web && npm run lint
# ─── Typecheck ────────────────────────────────────────────────────────
typecheck:
cd apps/web && npx tsc --noEmit
# ─── Build ────────────────────────────────────────────────────────────
build: build\:web build\:mcp
build\:web:
cd apps/web && npm run build
build\:mcp:
cd packages/teamgraph-mcp && npm run build
# ─── Security ─────────────────────────────────────────────────────────
security:
cd apps/web && npm audit --omit=dev || true
cd packages/teamgraph-mcp && npm audit --omit=dev || true
cd apps/api && python -m pip check || true
# ─── Health Report ────────────────────────────────────────────────────
health:
python scripts/project_health.py
health\:ci:
python scripts/project_health.py --ci