From b40a0120f1bbebc3e152c6a3f454dbf3b0cc2c0c Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 21 Jan 2021 22:40:43 -0700 Subject: [PATCH] Updated Makefile to run eslint --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a1fb98a..07dfc39 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,12 @@ prod production: # Build application for production update upgrade: # Update application dependencies @composer update && npm update && npm install && npm audit fix -test: # Run coding standards/static analysis checks and tests - @app/vendor/bin/php-cs-fixer fix --diff --dry-run \ - && app/vendor/bin/psalm \ - && app/vendor/bin/phpunit --coverage-text +analyze: # Run coding standards and static analysis checks + @app/vendor/bin/php-cs-fixer fix --diff --dry-run && app/vendor/bin/psalm + @npx eslint app/resources/js/**/*.{js,vue} + +test: analyze # Run coding standards/static analysis checks and tests + @app/vendor/bin/phpunit --coverage-text coverage: # Generate an HTML coverage report @app/vendor/bin/phpunit --coverage-html .coverage