add composer scripts
This commit is contained in:
parent
5d5362a3fd
commit
46a037ebd0
|
|
@ -34,12 +34,22 @@
|
||||||
"name": "Antoine de Troostembergh"
|
"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": {
|
"require": {
|
||||||
"php": ">=5.3.3",
|
"php": ">=5.3.3",
|
||||||
"ext-xml": "*",
|
"ext-xml": "*",
|
||||||
"zendframework/zend-escaper": "^2.2",
|
"zendframework/zend-escaper": "^2.2",
|
||||||
"zendframework/zend-stdlib": "^2.2 || ^3.0",
|
"zendframework/zend-stdlib": "^2.2 || ^3.0"
|
||||||
"phpoffice/common": "^0.2"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8.36",
|
"phpunit/phpunit": "^4.8.36",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue