mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Root Makefile for Turash Development
|
|
|
|
.PHONY: help dev dev-backend dev-frontend dev-full build-frontend build-backend
|
|
|
|
# Default target
|
|
help: ## Show this help message
|
|
@echo "Turash Development Commands:"
|
|
@echo ""
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
# Development commands
|
|
dev: ## Start both backend and frontend development servers
|
|
@echo "🚀 Starting full development environment (backend + frontend)"
|
|
@echo "Note: Make sure backend infrastructure is running (cd backend && make infra)"
|
|
@echo ""
|
|
@make -j2 dev-backend dev-frontend
|
|
|
|
dev-backend: ## Start backend development server
|
|
@echo "🔧 Starting backend server..."
|
|
@cd backend && go run ./cmd/cli server
|
|
|
|
dev-frontend: ## Start frontend development server
|
|
@echo "🌐 Starting frontend development server..."
|
|
@cd frontend && yarn dev
|
|
|
|
# Build commands
|
|
build-backend: ## Build backend
|
|
@cd backend && make build
|
|
|
|
build-frontend: ## Build frontend
|
|
@cd frontend && yarn build
|
|
|
|
# Infrastructure
|
|
infra: ## Start backend infrastructure
|
|
@cd backend && make infra
|
|
|
|
infra-down: ## Stop backend infrastructure
|
|
@cd backend && make infra-down
|
|
|
|
# Cleanup
|
|
clean: ## Clean all build artifacts
|
|
@cd backend && make clean
|
|
@cd frontend && rm -rf dist/ node_modules/.vite
|