-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 1.03 KB
/
Makefile
File metadata and controls
36 lines (25 loc) · 1.03 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
.PHONY: dev build test lint typecheck migrate sandbox-images docker-up docker-down clean help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
dev: ## Start all services in dev mode (postgres + redis via Docker, apps via turbo)
docker compose up -d postgres redis
set -a && . ./.env && set +a && npx turbo run dev --parallel
build: ## Build all apps and packages
npx turbo run build
test: ## Run all tests
npx turbo run test
lint: ## Lint all packages
npx turbo run lint
typecheck: ## Typecheck all packages
npx turbo run typecheck
migrate: ## Run database migrations
npx tsx scripts/migrate.ts
sandbox-images: ## Build all sandbox Docker images
bash scripts/build-sandbox-images.sh
docker-up: ## Start full stack via Docker Compose
docker compose up --build
docker-down: ## Stop all Docker Compose containers
docker compose down
clean: ## Remove build artifacts and node_modules
npx turbo run clean
rm -rf node_modules