changed name from Apollinare to Zentral
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,10 +1,10 @@
|
||||
# Apollinare - Makefile per sviluppo
|
||||
# Zentral - Makefile per sviluppo
|
||||
# Uso: make <target>
|
||||
|
||||
.PHONY: help install build run dev clean test lint backend frontend backend-run frontend-run backend-build frontend-build all stop
|
||||
|
||||
# Variabili
|
||||
BACKEND_DIR := src/backend/Apollinare.API
|
||||
BACKEND_DIR := src/backend/Zentral.API
|
||||
FRONTEND_DIR := src/frontend
|
||||
BACKEND_PORT := 5000
|
||||
FRONTEND_PORT := 5173
|
||||
@@ -16,7 +16,7 @@ YELLOW := \033[0;33m
|
||||
NC := \033[0m # No Color
|
||||
|
||||
help: ## Mostra questo help
|
||||
@echo "$(CYAN)Apollinare - Comandi disponibili:$(NC)"
|
||||
@echo "$(CYAN)Zentral - Comandi disponibili:$(NC)"
|
||||
@echo ""
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " $(GREEN)%-20s$(NC) %s\n", $$1, $$2}'
|
||||
@echo ""
|
||||
@@ -34,7 +34,7 @@ install: backend-restore frontend-install ## Installa tutte le dipendenze (backe
|
||||
|
||||
backend-restore: ## Ripristina i pacchetti NuGet del backend
|
||||
@echo "$(CYAN)Ripristino pacchetti NuGet...$(NC)"
|
||||
cd src && dotnet restore
|
||||
cd src/backend && dotnet restore
|
||||
|
||||
frontend-install: ## Installa le dipendenze npm del frontend
|
||||
@echo "$(CYAN)Installazione dipendenze npm...$(NC)"
|
||||
@@ -49,7 +49,7 @@ build: backend-build frontend-build ## Compila backend e frontend
|
||||
|
||||
backend-build: ## Compila il backend .NET
|
||||
@echo "$(CYAN)Compilazione backend...$(NC)"
|
||||
cd src && dotnet build --configuration Release
|
||||
cd src/backend && dotnet build --configuration Release
|
||||
|
||||
frontend-build: ## Compila il frontend React
|
||||
@echo "$(CYAN)Compilazione frontend...$(NC)"
|
||||
@@ -87,7 +87,7 @@ test: backend-test ## Esegue tutti i test
|
||||
|
||||
backend-test: ## Esegue i test del backend
|
||||
@echo "$(CYAN)Esecuzione test backend...$(NC)"
|
||||
cd src && dotnet test
|
||||
cd src/backend && dotnet test
|
||||
|
||||
lint: frontend-lint ## Esegue il linting
|
||||
@echo "$(GREEN)Linting completato!$(NC)"
|
||||
@@ -105,7 +105,7 @@ clean: backend-clean frontend-clean ## Pulisce tutti gli artefatti di build
|
||||
|
||||
backend-clean: ## Pulisce gli artefatti di build del backend
|
||||
@echo "$(CYAN)Pulizia backend...$(NC)"
|
||||
cd src && dotnet clean
|
||||
cd src/backend && dotnet clean
|
||||
find src -type d -name "bin" -exec rm -rf {} + 2>/dev/null || true
|
||||
find src -type d -name "obj" -exec rm -rf {} + 2>/dev/null || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user