From 5db05c377904cdee70206eb2bd4aae667a00e91e Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 15 Apr 2021 03:06:27 +0100 Subject: [PATCH] build: add composer script commands --- composer.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f817e43..ebe8fbc 100644 --- a/composer.json +++ b/composer.json @@ -6,10 +6,14 @@ "release": "./_tools/release.sh", "release:commit": "composer run release -- -c", "build": "./_tools/build.sh", + "lint": "composer run lint:php && npm run lint", + "lint:fix": "composer run lint:php:fix && npm run lint:fix", "lint:php": "./vendor/bin/phpcs --standard='WordPress' --colors --encoding=utf-8 -n -p --ignore=*/vendor/* ./*.php ./*/*.php ./*/*/*.php", "lint:php:fix": "./vendor/bin/phpcbf --standard='WordPress' --encoding=utf-8 -p --ignore=*/vendor/* ./*.php ./*/*.php ./*/*/*.php", - "lint:css": "echo TODO", - "lint:js": "echo TODO", + "lint:css": "npm run lint:css", + "lint:css:fix": "npm run lint:css:fix", + "lint:js": "npm run lint:js", + "lint:js:fix": "npm run lint:js:fix", "docs": "./vendor/bin/phpdoc -d . -t ./docs --ignore vendor/", "commit": "./vendor/bin/php-commitizen commit -- ./.php-commitizen.php", "post-install-cmd": "./_tools/setup.sh"