Skip to content

Commit c1ed992

Browse files
committed
Add Composer Commands
1 parent b8500bb commit c1ed992

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

composer.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
"minimum-stability": "dev",
3939
"prefer-stable": true,
4040
"scripts": {
41-
"create-docs": "phpDocumentor --directory=src --target=docs --template='vendor/saggre/phpdocumentor-markdown/themes/markdown'"
41+
"create-docs": "phpDocumentor --directory=src --target=docs --template='vendor/saggre/phpdocumentor-markdown/themes/markdown'",
42+
"phpcs": "vendor/bin/phpcs ./ -s -v",
43+
"phpcbf": "vendor/bin/phpcbf ./ -s -v",
44+
"phpcs-tests": "vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -s -v",
45+
"phpcbf-tests": "vendor/bin/phpcbf ./tests --standard=phpcs.tests.xml -s -v",
46+
"phpstan": "vendor/bin/phpstan analyse --memory-limit=1250M",
47+
"php-coding-standards": "vendor/bin/phpcs ./ -s -v",
48+
"fix-php-coding-standards": "vendor/bin/phpcbf ./ -s -v",
49+
"php-coding-standards-on-tests": "vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -s -v",
50+
"fix-php-coding-standards-on-tests": "vendor/bin/phpcbf ./tests --standard=phpcs.tests.xml -s -v",
51+
"php-static-analysis": "vendor/bin/phpstan analyse --memory-limit=1250M",
52+
"test": "vendor/bin/phpunit --verbose --stop-on-failure @additional_args"
4253
}
4354
}

0 commit comments

Comments
 (0)