Skip to content

Commit f4e1fe3

Browse files
authored
Merge pull request #266 from oliverklee/docs/composer-scripts
Add descriptions for all Composer scripts
2 parents 5287023 + 11f20af commit f4e1fe3

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

composer.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
"name": "sabberworm/php-css-parser",
33
"type": "library",
44
"description": "Parser for CSS Files written in PHP",
5-
"keywords": ["parser", "css", "stylesheet"],
5+
"keywords": [
6+
"parser",
7+
"css",
8+
"stylesheet"
9+
],
610
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
711
"license": "MIT",
812
"authors": [
9-
{"name": "Raphael Schweikert"}
13+
{
14+
"name": "Raphael Schweikert"
15+
}
1016
],
1117
"require": {
1218
"php": ">=5.6.20"
@@ -16,10 +22,14 @@
1622
"codacy/coverage": "^1.4"
1723
},
1824
"autoload": {
19-
"psr-4": { "Sabberworm\\CSS\\": "src/" }
25+
"psr-4": {
26+
"Sabberworm\\CSS\\": "src/"
27+
}
2028
},
2129
"autoload-dev": {
22-
"psr-4": { "Sabberworm\\CSS\\Tests\\": "tests/" }
30+
"psr-4": {
31+
"Sabberworm\\CSS\\Tests\\": "tests/"
32+
}
2333
},
2434
"scripts": {
2535
"ci": [
@@ -36,5 +46,14 @@
3646
],
3747
"fix:php:sniff": "@php ./.phive/phpcbf.phar bin src tests",
3848
"phpstan:baseline": "@php ./.phive/phpstan.phar --generate-baseline"
49+
},
50+
"scripts-descriptions": {
51+
"ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).",
52+
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer.",
53+
"ci:php:stan": "Checks the types with PHPStan.",
54+
"ci:static": "Runs all static code analysis checks for the code.",
55+
"fix:php": "Autofixes all autofixable issues in the PHP code.",
56+
"fix:php:sniff": "Fixes autofixable issues found by PHP_CodeSniffer.",
57+
"phpstand:baseline": "Updates the PHPStan baseline file to match the code."
3958
}
4059
}

0 commit comments

Comments
 (0)