-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-include .env
.DEFAULT_GOAL := help
.PHONY: $(filter-out vendor, $(MAKECMDGOALS))
help: ## Show this help message
@printf "\033[33mUsage:\033[0m\n make [target] [arg=\"val\"...]\n\n\033[33mTargets:\033[0m\n"
@grep -E '^[-a-zA-Z0-9_\.\/]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[32m%-15s\033[0m %s\n", $$1, $$2}'
autoloader: ## Dump the Composer autoloader
@composer dumpautoload
test: ## Run the tests
@vendor/bin/pest --configuration=./phpunit.xml --testsuite=all --color=always
style: vendor ## Format the application code and configuration
@composer normalize --indent-size=4 --indent-style=space
@vendor/bin/php-cs-fixer fix --config=.php_cs --show-progress=dots --ansi -v
lint: vendor ## Lint the codebase for formatting issues
@composer validate
@composer normalize --dry-run --indent-size=4 --indent-style=space --no-update-lock --no-check-lock
@vendor/bin/php-cs-fixer fix --config=.php_cs --show-progress=dots --ansi -v --dry-run
vendor: composer.json composer.lock ## Install Composer vendor dependencies
@composer install --optimize-autoloader --no-suggest --no-interaction
@composer validate