-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (40 loc) · 1.31 KB
/
Makefile
File metadata and controls
59 lines (40 loc) · 1.31 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
.PHONY: help install dev build test docker-build docker-up docker-down migrate seed clean
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install dependencies
npm install
dev: ## Start development server
npm run dev
build: ## Build for production
npm run build
test: ## Run tests
npm test
test-coverage: ## Run tests with coverage
npm run test:coverage
db-generate: ## Generate Prisma client
npm run db:generate
db-migrate: ## Run database migrations
npm run db:migrate
db-migrate-deploy: ## Deploy migrations (production)
npm run db:migrate:deploy
db-seed: ## Seed database
npm run db:seed
db-studio: ## Open Prisma Studio
npm run db:studio
db-reset: ## Reset database (WARNING: deletes all data)
npm run db:reset
docker-build: ## Build Docker image
docker build -t stockflow-inventory:latest .
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
clean: ## Clean build artifacts
rm -rf dist node_modules/.vite
setup: install db-generate ## Initial setup
@echo "✅ Setup complete! Add your DATABASE_URL to .env.local"