as-stats-gui/Makefile
Nicolas Debrigode c4e397cff5 save
2024-01-20 15:40:16 +01:00

55 lines
1.6 KiB
Makefile

.PHONY: help install uninstall outdated proxy start stop log code-check phpstan analysis
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
# CODE #################################################################################################################
code-check: ## Vérification du code PHP
make phpstan
make analysis
make rector
make twig
analysis: ## Analyse de la qualité du code PHP
./vendor/bin/phpinsights analyse src -c phpinsights.php
phpstan: ## Analyse statique du code PHP
./vendor/bin/phpstan analyse -c phpstan.neon
rector: ## Analyse refactoring du code PHP
./vendor/bin/rector process --dry-run --config=rector.php
twig: ## Analyse TwigCS
./vendor/bin/twigcs --config .twig_cs.dist.php
# SERVEUR SYMFONY ######################################################################################################
proxy: ## Démarre le proxy du serveur Symfony
symfony proxy:start
start: proxy ## Server start
symfony server:start -d
stop: ## Server stop
symfony server:stop
log: ## Affichage des messages de log du serveur Symfony
symfony server:log