-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (45 loc) · 1.68 KB
/
Makefile
File metadata and controls
65 lines (45 loc) · 1.68 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
.PHONY: help setup install build dev test clean docker-dev docker-prod migrate seed
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
setup: ## Run initial setup
@bash scripts/setup.sh
install: ## Install dependencies
@pnpm install
build: ## Build all packages
@pnpm run build
build-shared: ## Build shared package only
@pnpm run build:shared
dev: ## Start development servers
@pnpm dev
dev-backend: ## Start backend only
@pnpm dev:backend
dev-frontend: ## Start frontend only
@pnpm dev:frontend
dev-worker: ## Start worker only
@pnpm --filter '@logtide/backend' dev:worker
test: ## Run tests
@pnpm test
typecheck: ## Run TypeScript type checking
@pnpm typecheck
clean: ## Clean build artifacts
@pnpm clean
@rm -rf node_modules packages/*/node_modules
docker-dev: ## Start development databases (PostgreSQL + Redis)
@docker-compose -f docker/docker-compose.dev.yml up -d
docker-dev-stop: ## Stop development databases
@docker-compose -f docker/docker-compose.dev.yml down
docker-prod: ## Start full production stack
@docker-compose -f docker/docker-compose.yml up -d --build
docker-prod-stop: ## Stop production stack
@docker-compose -f docker/docker-compose.yml down
docker-logs: ## View Docker logs
@docker-compose -f docker/docker-compose.yml logs -f
migrate: ## Run database migrations
@pnpm --filter '@logtide/backend' migrate
migrate-down: ## Rollback last migration
@pnpm --filter '@logtide/backend' migrate:down
seed: ## Seed database with sample data
@bash scripts/seed-data.sh