-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
36 lines (26 loc) · 882 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
33
34
35
36
.PHONY : help phpstan test coverage phpcs psalm
.DEFAULT_GOAL:=help
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
phpstan: ## Execute phpstan
composer phpstan
psalm: ## execute psalm
vendor/bin/psalm
test: ## Execute phpunit
composer test
coverage: ## Execute the coverage test
composer test
phpcs: ## execute phpcs
composer cs
phpfix: ## Fix some warnings from phpcs
vendor/bin/phpcbf --standard=PSR12 app
git commit -m "Auto Fix PSR12 Style" .
allcheck: phpcs phpstan test ## it performs all check (phpcs, phpstan, tests)
push: allcheck ## It performs all check and then git push on the current branch
git push origin HEAD
install: ## executes composer install, key:generate and npm install
cp .env.example .env
composer install
php artisan key:generate
npm i
npm run production