From 11f20aff7e63ae7cf834978679ae0ca9343aeed6 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 15 Jun 2021 19:50:16 +0200 Subject: [PATCH] Add descriptions for all Composer scripts Composer will list all commands with their descriptions when run without any arguments. Also autoformat the `composer.json` with PhpStorm. --- composer.json | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 8c78773d..0ab8627a 100644 --- a/composer.json +++ b/composer.json @@ -2,11 +2,17 @@ "name": "sabberworm/php-css-parser", "type": "library", "description": "Parser for CSS Files written in PHP", - "keywords": ["parser", "css", "stylesheet"], + "keywords": [ + "parser", + "css", + "stylesheet" + ], "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", "license": "MIT", "authors": [ - {"name": "Raphael Schweikert"} + { + "name": "Raphael Schweikert" + } ], "require": { "php": ">=5.6.20" @@ -16,10 +22,14 @@ "codacy/coverage": "^1.4" }, "autoload": { - "psr-4": { "Sabberworm\\CSS\\": "src/" } + "psr-4": { + "Sabberworm\\CSS\\": "src/" + } }, "autoload-dev": { - "psr-4": { "Sabberworm\\CSS\\Tests\\": "tests/" } + "psr-4": { + "Sabberworm\\CSS\\Tests\\": "tests/" + } }, "scripts": { "ci": [ @@ -36,5 +46,14 @@ ], "fix:php:sniff": "@php ./.phive/phpcbf.phar bin src tests", "phpstan:baseline": "@php ./.phive/phpstan.phar --generate-baseline" + }, + "scripts-descriptions": { + "ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).", + "ci:php:sniff": "Checks the code style with PHP_CodeSniffer.", + "ci:php:stan": "Checks the types with PHPStan.", + "ci:static": "Runs all static code analysis checks for the code.", + "fix:php": "Autofixes all autofixable issues in the PHP code.", + "fix:php:sniff": "Fixes autofixable issues found by PHP_CodeSniffer.", + "phpstand:baseline": "Updates the PHPStan baseline file to match the code." } }