feat: Setup projet Classeo avec infrastructure Docker et architecture DDD
Configure l'environnement de développement complet avec Docker Compose, structure DDD 4 Bounded Contexts, et pipeline CI/CD GitHub Actions. Corrections compatibilité CI: - Symfony 8 nécessite monolog-bundle ^4.0 (la v3.x ne supporte que jusqu'à Symfony 7) - ESLint v9 nécessite flat config (eslint.config.js) - le format .eslintrc.cjs est obsolète
This commit is contained in:
99
Makefile
Normal file
99
Makefile
Normal file
@@ -0,0 +1,99 @@
|
||||
.PHONY: help up down build logs ps test lint phpstan cs-fix frontend-lint frontend-test e2e clean
|
||||
|
||||
# Default target
|
||||
help:
|
||||
@echo "Classeo - Commandes disponibles"
|
||||
@echo ""
|
||||
@echo "Docker:"
|
||||
@echo " make up - Lancer tous les services"
|
||||
@echo " make down - Arreter tous les services"
|
||||
@echo " make build - Reconstruire les images"
|
||||
@echo " make logs - Voir les logs (Ctrl+C pour quitter)"
|
||||
@echo " make ps - Statut des services"
|
||||
@echo " make clean - Supprimer volumes et images"
|
||||
@echo ""
|
||||
@echo "Backend:"
|
||||
@echo " make phpstan - Analyse statique PHPStan"
|
||||
@echo " make cs-fix - Correction code style PHP"
|
||||
@echo " make test-php - Tests PHPUnit"
|
||||
@echo ""
|
||||
@echo "Frontend:"
|
||||
@echo " make lint - ESLint frontend"
|
||||
@echo " make test-js - Tests Vitest"
|
||||
@echo " make e2e - Tests Playwright"
|
||||
@echo ""
|
||||
@echo "All:"
|
||||
@echo " make test - Tous les tests"
|
||||
@echo " make check - Tous les linters"
|
||||
|
||||
# =============================================================================
|
||||
# Docker
|
||||
# =============================================================================
|
||||
|
||||
up:
|
||||
docker compose up -d
|
||||
|
||||
down:
|
||||
docker compose down
|
||||
|
||||
build:
|
||||
docker compose build --no-cache
|
||||
|
||||
logs:
|
||||
docker compose logs -f
|
||||
|
||||
ps:
|
||||
docker compose ps
|
||||
|
||||
clean:
|
||||
docker compose down -v --rmi local
|
||||
|
||||
# =============================================================================
|
||||
# Backend
|
||||
# =============================================================================
|
||||
|
||||
phpstan:
|
||||
docker compose exec php composer phpstan
|
||||
|
||||
cs-fix:
|
||||
docker compose exec php composer cs-fix
|
||||
|
||||
cs-check:
|
||||
docker compose exec php composer cs-check
|
||||
|
||||
test-php:
|
||||
docker compose exec php composer test
|
||||
|
||||
# =============================================================================
|
||||
# Frontend
|
||||
# =============================================================================
|
||||
|
||||
lint:
|
||||
docker compose exec frontend pnpm run lint
|
||||
|
||||
check-types:
|
||||
docker compose exec frontend pnpm run check
|
||||
|
||||
test-js:
|
||||
docker compose exec frontend pnpm run test
|
||||
|
||||
e2e:
|
||||
docker compose exec frontend pnpm run test:e2e
|
||||
|
||||
# =============================================================================
|
||||
# All
|
||||
# =============================================================================
|
||||
|
||||
test: test-php test-js
|
||||
|
||||
check: phpstan cs-check lint check-types
|
||||
|
||||
# =============================================================================
|
||||
# Scripts
|
||||
# =============================================================================
|
||||
|
||||
check-bc:
|
||||
./scripts/check-bc-isolation.sh
|
||||
|
||||
check-naming:
|
||||
./scripts/check-naming.sh
|
||||
Reference in New Issue
Block a user