Add php-cs-fixer to make

old-stable24
Varun Patil 2022-10-20 14:04:15 -07:00
parent c0f52ed0c6
commit 6b60bebbf0
1 changed files with 9 additions and 2 deletions

View File

@ -1,11 +1,18 @@
all: dev-setup lint build-js-production test
# Dev env management
dev-setup: clean clean-dev npm-init get-exiftool
dev-setup: clean clean-dev npm-init exiftool php-cs-fixer
get-exiftool:
exiftool:
sh scripts/get-exiftool.sh
php-cs-fixer:
mkdir --parents tools/php-cs-fixer
composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
php-lint:
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix lib
npm-init:
npm ci