mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-29 16:50:12 +02:00
Broke apart some make contexts
This commit is contained in:
21
Makefile
21
Makefile
@@ -13,12 +13,23 @@ prod production: # Build application for production
|
||||
update upgrade: # Update application dependencies
|
||||
@$(RUN) composer update && npm update && npm install && npm audit fix
|
||||
|
||||
analyze: # Run coding standards and static analysis checks
|
||||
@$(RUN) app/vendor/bin/php-cs-fixer fix --diff --dry-run && app/vendor/bin/psalm
|
||||
@$(RUN) npx eslint app/resources/js/**/*.{js,vue}
|
||||
php-cs-fixer: # Check PHP coding standards with PHP Coding Standards Fixer
|
||||
@$(RUN) app/vendor/bin/php-cs-fixer fix --diff --dry-run
|
||||
|
||||
test: analyze # Run coding standards/static analysis checks and tests
|
||||
@$(RUN) app/vendor/bin/phpunit --coverage-text
|
||||
eslint: # Check JavaScript coding standards with ESLint
|
||||
@$(RUN) npm run cs
|
||||
|
||||
cs coding-standards: php-cs-fixer eslint # Check coding standards
|
||||
|
||||
static-analysis: # Run static analysis checks
|
||||
@$(RUN) app/vendor/bin/psalm
|
||||
|
||||
analyze: coding-standards static-analysis # Run coding standards and static analysis checks
|
||||
|
||||
test: # Run tests
|
||||
@$(RUN) app/vendor/bin/phpunit
|
||||
|
||||
suite: analyze test # Run coding standards and static analysis checks and tests
|
||||
|
||||
coverage: # Generate an HTML coverage report
|
||||
@docker-compose run --rm -e XDEBUG_MODE=coverage app app/vendor/bin/phpunit --coverage-html .coverage
|
||||
|
Reference in New Issue
Block a user