-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
34 lines (23 loc) · 809 Bytes
/
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
27
28
29
30
31
32
COMPOSER = composer
YARN = yarn
PHP_CS_FIXER = ./vendor/bin/php-cs-fixer
PSALM = ./vendor/bin/psalm
PHPSTAN = ./vendor/bin/phpstan
PHPUNIT = ./vendor/bin/simple-phpunit
help: ## Outputs this help screen
@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/'
fix-php: ## Fix files with php-cs-fixer
$(PHP_CS_FIXER) fix
fix-js: ## Fix files with eslint
$(YARN) lint-fix
fix-all: fix-php fix-js ## Fix all files
analyse: ## Run php analyser
$(PSALM)
$(PHPSTAN)
test: ## Run php unit
$(PHPUNIT)
check: fix-all analyse test
doc: ## Serve docsify
yarn docsify serve docs
doc-update-config: ## Update config-ref of documentation
bin/update-doc-config