Skip to content

Commit

Permalink
Add makefile for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbeaujean committed May 31, 2024
1 parent caff067 commit 8c9a72b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!make
.PHONY: help

help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

composer-install: ## composer install
docker run --rm -it -w="/srv/app" --volume $$(pwd):/srv/app prooph/composer:8.1 install

phpunit: ## phpunit
docker run --rm -it -w="/srv/app" --volume $$(pwd):/srv/app --entrypoint="" prooph/composer:8.1 vendor/bin/phpunit

psalm: ## psalm
docker run --rm -it -w="/srv/app" --volume $$(pwd):/srv/app --entrypoint="" prooph/composer:8.1 vendor/bin/psalm
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
},
"require-dev": {
"symfony/phpunit-bridge": "^6.0",
"symfony/validator": "^6.4 || ^7.0"
"symfony/validator": "^6.4 || ^7.0",
"phpunit/phpunit": "^10.3",
"vimeo/psalm": "^5.24"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 8c9a72b

Please sign in to comment.