-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (38 loc) · 1.21 KB
/
Makefile
File metadata and controls
56 lines (38 loc) · 1.21 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
.PHONY: help dev build start install db-generate db-migrate db-push db-studio db-seed docker-build docker-up docker-down docker-logs clean test lint format
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
bun install
dev: ## Start development server
bun run dev
build: ## Build for production
bun run build
start: ## Start production server
bun run start
db-generate: ## Generate Drizzle schema
bun run db:generate
db-migrate: ## Run database migrations
bun run db:migrate
db-push: ## Push schema to database
bun run db:push
db-studio: ## Open Drizzle Studio
bun run db:studio
db-seed: ## Seed database
bun run db:seed
docker-build: ## Build Docker image
docker-compose build
docker-up: ## Start Docker containers
docker-compose up -d
docker-down: ## Stop Docker containers
docker-compose down
docker-logs: ## View Docker logs
docker-compose logs -f
test: ## Run tests
bun test
lint: ## Run linter
bun run lint
format: ## Format code
bun run format
clean: ## Clean build artifacts
rm -rf dist node_modules coverage