add composer scripts

This commit is contained in:
troosan 2017-12-18 17:02:34 +01:00
parent 5d5362a3fd
commit 46a037ebd0
1 changed files with 12 additions and 2 deletions

View File

@ -34,12 +34,22 @@
"name": "Antoine de Troostembergh"
}
],
"scripts": {
"check": [
"./vendor/bin/php-cs-fixer fix --ansi --dry-run --diff",
"./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=src/PhpWord/Shared/PCLZip --standard=PSR2 -n",
"./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php",
"./vendor/bin/phpunit --color=always"
],
"fix": [
"./vendor/bin/php-cs-fixer fix --ansi"
]
},
"require": {
"php": ">=5.3.3",
"ext-xml": "*",
"zendframework/zend-escaper": "^2.2",
"zendframework/zend-stdlib": "^2.2 || ^3.0",
"phpoffice/common": "^0.2"
"zendframework/zend-stdlib": "^2.2 || ^3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36",