react-command-bus/Makefile

18 lines
513 B
Makefile
Raw Normal View History

.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Available Targets:"; grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[32m%-20s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
.PHONY: phpstan
phpstan: ## Run static analysis
@phpstan --no-progress
.PHONY: phpunit
phpunit: ## Run unit tests
@phpunit --testdox --no-progress --display-warnings
.PHONY: coverage
coverage: ## Code coverage
@XDEBUG_MODE=coverage phpunit --coverage-text --no-progress