-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (51 loc) · 1.92 KB
/
Copy pathMakefile
File metadata and controls
75 lines (51 loc) · 1.92 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
.PHONY: help install dev build start migrate migrate-dev db-push db-studio test lint clean docker-up docker-down docker-logs
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
npm install
dev: ## Run development server
npm run dev
build: ## Build TypeScript
npm run build
start: ## Start production server
npm start
migrate: ## Run migrations (production)
npm run migrate
migrate-dev: ## Run migrations (development)
npm run migrate:dev
db-push: ## Push schema changes without migration
npm run db:push
db-studio: ## Open Prisma Studio
npm run db:studio
generate: ## Generate Prisma client
npm run generate
test: ## Run tests
npm test
lint: ## Run linter
npm run lint
lint-fix: ## Fix linting issues
npm run lint:fix
clean: ## Clean build artifacts
rm -rf dist node_modules/.cache
docker-up: ## Start Docker containers
docker-compose up -d
docker-down: ## Stop Docker containers
docker-compose down
docker-logs: ## Show Docker logs
docker-compose logs -f
docker-build: ## Build Docker images for current platform
docker-compose build
docker-build-multi: ## Build multi-platform images (amd64 + arm64)
docker buildx build --platform linux/amd64,linux/arm64 --tag raidbot:latest --load .
docker-build-arm64: ## Build ARM64 image only
docker buildx build --platform linux/arm64 --tag raidbot:arm64 --load .
docker-build-amd64: ## Build AMD64 image only
docker buildx build --platform linux/amd64 --tag raidbot:amd64 --load .
buildx-setup: ## Setup buildx builder for multi-platform builds
docker buildx create --name multiplatform-builder --use || docker buildx use multiplatform-builder
docker buildx inspect --bootstrap
docker-build: ## Build Docker image
docker-compose build
docker-restart: ## Restart Docker containers
docker-compose restart