@@ -4,10 +4,10 @@ SHELL = sh
4
4
# # —— 🎶 The MicroSymfony Makefile 🎶 ——————————————————————————————————————————
5
5
help : # # Outputs this help screen
6
6
@grep -E ' (^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e ' s/\[32m##/[33m/'
7
- .PHONY : help start stop go-prod go-dev purge test coverage cov-report stan fix-php lint-php lint-container lint-twig lint-yaml cs lint ci deploy
7
+ .PHONY : help start stop go-prod go-dev purge test coverage cov-report stan fix-php lint-php lint-container lint-twig lint-yaml fix lint ci deploy
8
8
.PHONY : version-php version-composer version-symfony version-phpunit version-phpstan version-php-cs-fixer check-requirements
9
9
10
- # You can modify the coverage threshold here
10
+ # You can modify the code coverage threshold here
11
11
COVERAGE_THRESHOLD = 100
12
12
13
13
# # —— Symfony binary 💻 ————————————————————————————————————————————————————————
@@ -51,14 +51,14 @@ cov-report: var/coverage/index.html ## Open the PHPUnit code coverage report (va
51
51
52
52
53
53
# # —— Coding standards/lints ✨ ————————————————————————————————————————————————
54
- stan : var/cache/dev/App_KernelDevDebugContainer.xml # # Run PHPStan
54
+ stan : var/cache/dev/App_KernelDevDebugContainer.xml # # Run the PHPStan static analysis
55
55
@vendor/bin/phpstan analyse -c phpstan.neon --memory-limit 1G -vv
56
56
57
57
# PHPStan needs the dev/debug cache
58
58
var/cache/dev/App_KernelDevDebugContainer.xml :
59
59
APP_DEBUG=1 APP_ENV=dev bin/console cache:warmup
60
60
61
- fix-php : # # Fix PHP files with php-cs-fixer (ignore PHP 8.2 warning)
61
+ fix-php : # # Fix PHP files with php-cs-fixer (ignore PHP version warning)
62
62
@PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix $(PHP_CS_FIXER_ARGS )
63
63
64
64
lint-php : # # Lint PHP files with php-cs-fixer (report only)
@@ -74,14 +74,14 @@ lint-twig: ## Lint Twig files
74
74
lint-yaml : # # Lint YAML files
75
75
@bin/console lint:yaml --parse-tags config/
76
76
77
- cs : # # Run all CS checks
78
- cs : fix-php stan
77
+ fix : # # Run all fixers
78
+ fix : fix-php
79
79
80
- lint : # # Run all lints
81
- lint : lint-php lint-container lint-twig lint-yaml
80
+ lint : # # Run all linters
81
+ lint : stan lint-php lint-container lint-twig lint-yaml
82
82
83
83
ci : # # Run CI locally
84
- ci : coverage warmup cs lint
84
+ ci : coverage warmup lint
85
85
86
86
87
87
# # —— Other tools and helpers 🔨 ———————————————————————————————————————————————
@@ -103,15 +103,15 @@ version-phpstan:
103
103
@vendor/bin/phpstan --version
104
104
version-php-cs-fixer :
105
105
@echo ' \n—— php-cs-fixer ———————————————————————————————————————————————————'
106
- @vendor/bin/php-cs-fixer --version
106
+ @PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer --version
107
107
@echo
108
108
109
109
check-requirements : # # Checks requirements for running Symfony
110
110
@vendor/bin/requirements-checker
111
111
112
112
113
113
# # —— Deploy & Prod 🚀 —————————————————————————————————————————————————————————
114
- deploy : # # Simple manual deploy on VPS (this is to update the demo site https://microsymfony.ovh/)
114
+ deploy : # # Simple manual deploy on a VPS (this is to update the demo site https://microsymfony.ovh/)
115
115
@git pull
116
116
@composer install
117
117
@chown -R www-data: var/*
0 commit comments