-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (57 loc) · 1.82 KB
/
Makefile
File metadata and controls
76 lines (57 loc) · 1.82 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
64
65
66
67
68
69
70
71
72
73
74
75
76
.PHONY: help dev install supabase-start supabase-stop redis-start redis-stop db-reset db-studio test test-watch test-coverage lint typecheck format build clean sim-webhook
help:
@echo "MergeShip — common tasks"
@echo ""
@echo " make dev Run the full local stack (supabase + next dev)"
@echo " make install npm install"
@echo " make supabase-start Start local Supabase (Postgres, Auth, Studio in Docker)"
@echo " make supabase-stop Stop local Supabase"
@echo " make redis-start Start local Redis (Docker)"
@echo " make redis-stop Stop local Redis"
@echo " make db-reset Drop, migrate, re-seed local DB"
@echo " make db-studio Open Drizzle Studio (DB GUI)"
@echo " make test Run all tests once"
@echo " make test-watch Run tests in watch mode (TDD)"
@echo " make test-coverage Run tests + coverage gate"
@echo " make lint ESLint"
@echo " make typecheck TypeScript no-emit"
@echo " make format Prettier write"
@echo " make build next build"
@echo " make sim-webhook Fire a mock GitHub webhook (interactive)"
@echo " make clean Remove .next + node_modules + supabase volume"
install:
npm install
supabase-start:
npx supabase start
supabase-stop:
npx supabase stop
redis-start:
docker compose up -d redis
redis-stop:
docker compose stop redis
dev: supabase-start
@echo "✅ Supabase running. Starting Next.js dev server..."
npm run dev
db-reset:
npx supabase db reset
db-studio:
npm run db:studio
test:
npm test
test-watch:
npm run test:watch
test-coverage:
npm run test:coverage
lint:
npm run lint
typecheck:
npm run typecheck
format:
npm run format
build:
npm run build
sim-webhook:
npm run sim:webhook
clean:
rm -rf .next node_modules
npx supabase stop --no-backup || true