Skip to content

Commit

Permalink
Add Makefile to run common commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jdecool committed Oct 24, 2023
1 parent 857d3c6 commit cee3632
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[Makefile]
indent_style = tab
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
install: composer.install tools.install

composer.install:
composer install

clean:
rm -rf composer.lock vendor/
rm -rf tools/composer.lock tools/vendor/

tools.install:
composer -d tools install

cs:
tools/vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

cs.fix:
tools/vendor/bin/php-cs-fixer fix --verbose --diff

phpstan:
tools/vendor/bin/phpstan

phpunit:
vendor/bin/phpunit

0 comments on commit cee3632

Please sign in to comment.