diff --git a/Makefile b/Makefile index 3a77020..0298109 100644 --- a/Makefile +++ b/Makefile @@ -3,15 +3,20 @@ include .env.infra-example clone: git clone ${MY_APP_GIT_URL} app -compose-up: +start: docker-compose up -d -compose-down: +stop: docker-compose down --remove-orphans -v +restart: stop start + status: docker-compose ps +bash: + docker-compose exec php-fpm bash + tinker: docker-compose exec php-fpm ./artisan tinker @@ -42,8 +47,8 @@ seed-db: fix-permissions: docker-compose exec php-fpm chown -R www-data:www-data storage -lint-code-style: - docker-compose exec php-fpm composer php-cs-fixer fix +fix-code-style: + docker-compose exec php-fpm vendor/bin/pint artisan: docker-compose exec php-fpm ./artisan $(ARGS) @@ -63,4 +68,22 @@ make-storage-link: node-frontend-deps: docker-compose exec php-fpm npm i --legacy-peer-deps -init: clone copy-infra-env compose-down compose-up setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps build-frontend-prod fix-permissions make-storage-link +test: + docker-compose exec php-fpm vendor/bin/phpunit + +fix-insights: + docker-compose exec php-fpm ./artisan insights --fix + +insights: + docker-compose exec php-fpm vendor/bin/phpinsights --config-path=./config/insights.php --no-interaction --min-quality=80 --min-complexity=90 --min-architecture=75 --min-style=95 + +rector: + docker-compose exec php-fpm vendor/bin/rector process --dry-run + +static-analysis: + docker-compose exec php-fpm composer static-analysis + +ci: test rector insights static-analysis + +init: clone copy-infra-env restart setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps build-frontend-prod fix-permissions make-storage-link + diff --git a/README.md b/README.md index 60034d1..d1c0102 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Run in Linux, MacOS or Windows WSL terminal the docker development server and bu ``` After all stop the project ``` -# make compose-down +# make stop ``` ## Address @@ -27,11 +27,11 @@ Clone Eatvio: ``` Project up: ``` -# make compose-up +# make start ``` Project down: ``` -# make compose-down +# make stop ``` Generate key Laravel: ``` @@ -44,4 +44,4 @@ Permissions: Run migration: ``` # make run-migrations -``` \ No newline at end of file +```