2024-01-12 17:48:54 +01:00
|
|
|
.PHONY: help install uninstall outdated proxy start stop log code-check phpstan analysis
|
2024-01-10 13:20:25 +01:00
|
|
|
|
|
|
|
default: help
|
|
|
|
|
|
|
|
help:
|
|
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
|
|
|
|
# GESTION DES PAQUETS ##################################################################################################
|
|
|
|
|
|
|
|
install: ## Installation des dépendances PHP
|
|
|
|
composer install
|
|
|
|
|
|
|
|
uninstall: ## Désinstallation des dépendances PHP
|
|
|
|
rm -rf vendor/*
|
|
|
|
|
|
|
|
upgrade: ## Mise à jour des dépendances PHP
|
|
|
|
composer update
|
|
|
|
|
|
|
|
outdated: ## Vérifier que les dépendances sont à jour
|
|
|
|
composer outdated --direct
|
|
|
|
|
2024-01-12 17:48:54 +01:00
|
|
|
# CODE #################################################################################################################
|
|
|
|
|
|
|
|
code-check: ## Vérification du code PHP
|
|
|
|
make phpstan
|
|
|
|
make analysis
|
2024-01-19 11:31:52 +01:00
|
|
|
make rector
|
2024-01-20 15:40:16 +01:00
|
|
|
make twig
|
2024-01-12 17:48:54 +01:00
|
|
|
|
|
|
|
analysis: ## Analyse de la qualité du code PHP
|
2024-01-19 11:31:52 +01:00
|
|
|
./vendor/bin/phpinsights analyse src -c phpinsights.php
|
2024-01-12 17:48:54 +01:00
|
|
|
|
|
|
|
phpstan: ## Analyse statique du code PHP
|
2024-01-19 11:31:52 +01:00
|
|
|
./vendor/bin/phpstan analyse -c phpstan.neon
|
|
|
|
|
|
|
|
rector: ## Analyse refactoring du code PHP
|
|
|
|
./vendor/bin/rector process --dry-run --config=rector.php
|
2024-01-12 17:48:54 +01:00
|
|
|
|
2024-01-20 15:40:16 +01:00
|
|
|
twig: ## Analyse TwigCS
|
|
|
|
./vendor/bin/twigcs --config .twig_cs.dist.php
|
|
|
|
|
2024-01-10 13:20:25 +01:00
|
|
|
# SERVEUR SYMFONY ######################################################################################################
|
|
|
|
|
|
|
|
proxy: ## Démarre le proxy du serveur Symfony
|
|
|
|
symfony proxy:start
|
|
|
|
|
2024-01-18 11:16:29 +01:00
|
|
|
start: proxy ## Server start
|
2024-01-10 13:20:25 +01:00
|
|
|
symfony server:start -d
|
|
|
|
|
|
|
|
stop: ## Server stop
|
|
|
|
symfony server:stop
|
|
|
|
|
|
|
|
log: ## Affichage des messages de log du serveur Symfony
|
|
|
|
symfony server:log
|