-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (40 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
52 lines (40 loc) · 1.12 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
.PHONY: dev build test lint typecheck migrate docker-up docker-down clean install infra infra-down
# Install all dependencies
install:
npm install
# Start local development (Postgres + Redis via Docker, apps via tsx)
dev:
set -a && . ./.env && set +a && docker compose -f docker-compose.dev.yml up -d
set -a && . ./.env && set +a && npx turbo run dev --env-mode=loose
# Build all packages
build:
npx turbo run build
# Run tests
test:
npx turbo run test
# Run linter
lint:
npx turbo run lint
# Typecheck all packages
typecheck:
npx turbo run typecheck
# Generate and run database migrations
migrate:
npm run db:generate
npm run db:migrate
# Start all services via Docker Compose (production-like)
docker-up:
set -a && . ./.env && set +a && docker compose up --build -d
# Stop Docker Compose services
docker-down:
docker compose down
# Clean build artifacts
clean:
npx turbo run clean
rm -rf node_modules
# Start only infrastructure (Postgres + Redis)
infra:
set -a && . ./.env && set +a && docker compose -f docker-compose.dev.yml up -d
# Stop infrastructure
infra-down:
docker compose -f docker-compose.dev.yml down