Skip to content

Commit

Permalink
add composer script helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iLexN committed Jan 17, 2018
1 parent 8687fdb commit 25f9c1c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,25 @@
"psr-4": {
"Ilex\\ChangeLog\\": "src/ChangeLog"
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.10",
"squizlabs/php_codesniffer": "^3.2"
},
"config": {
"sort-packages": true
},
"scripts": {
"ci": [
"@phpcs",
"@test"
],
"cs-fix": "php-cs-fixer fix src --rules=@PSR2",
"phpcs": "phpcs --standard=PSR2 src",
"test": "phpunit"
},
"scripts-descriptions": {
"phpcs": "Checks that the application code conforms to coding standard",
"test": "Launches the preconfigured PHPUnit"
}
}

0 comments on commit 25f9c1c

Please sign in to comment.