Add composer scripts and box file

This commit is contained in:
Florian Brinker 2021-05-09 23:23:28 +02:00
parent 8d452cf62b
commit cece9d0d02
2 changed files with 19 additions and 0 deletions

5
box.json Normal file
View File

@ -0,0 +1,5 @@
{
"base-path": null,
"output": "build/extension-check.phar",
"chmod": "0700"
}

View File

@ -43,5 +43,19 @@
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"scripts": {
"check": [
"./vendor/bin/phpcbf",
"./vendor/bin/phpcs",
"./vendor/bin/phpstan analyse"
],
"test" : [
"./vendor/bin/phpunit tests"
]
},
"scripts-descriptions": {
"check": "Check the sources for problems and style violations",
"test": "Run all tests"
}
}