feat : restructuration des dossiers pour implementer plus facilement la suite des WS
This commit is contained in:
20
makefile
20
makefile
@@ -40,11 +40,17 @@ restart: env-init
|
||||
$(DOCKER_COMPOSE) down
|
||||
CURRENT_UID=$(shell id -u) CURRENT_GID=$(shell id -g) $(DOCKER_COMPOSE) up -d
|
||||
|
||||
install: composer-install
|
||||
install: copy-git-hook composer-install
|
||||
|
||||
# Supprime tout est réinstalle tout (Attention ça supprime la bdd aussi)
|
||||
reset: delete_built_dir remove_orphans build-without-cache start wait install
|
||||
|
||||
copy-git-hook:
|
||||
$(EXEC_PHP) cp pre-commit .git/hooks/
|
||||
$(EXEC_PHP) cp commit-msg .git/hooks/
|
||||
$(EXEC_PHP) chmod a+x .git/hooks/pre-commit
|
||||
$(EXEC_PHP) chmod a+x .git/hooks/commit-msg
|
||||
|
||||
composer-install:
|
||||
$(EXEC_PHP) composer install
|
||||
|
||||
@@ -67,5 +73,17 @@ build-without-cache:
|
||||
shell:
|
||||
$(EXEC_PHP_INTERACTIVE) bash
|
||||
|
||||
shell-root:
|
||||
$(EXEC_PHP_INTERACTIVE_ROOT) bash
|
||||
|
||||
# Lance php fixer
|
||||
php-cs-fixer-all:
|
||||
$(EXEC_PHP) php vendor/bin/php-cs-fixer fix
|
||||
|
||||
# Utilisé par le pre-commit pour fix les fichiers modifiés
|
||||
php-cs-fixer-allow-risky:
|
||||
@echo "Fixing files: $(FILES)"
|
||||
$(EXEC_PHP_CS_FIXER) fix --config=.php-cs-fixer.dist.php --allow-risky=yes $(FILES)
|
||||
|
||||
wait:
|
||||
sleep 10
|
||||
Reference in New Issue
Block a user