From cece9d0d0278dd7b18ada6dbd920c5539131fba3 Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Sun, 9 May 2021 23:23:28 +0200 Subject: [PATCH] Add composer scripts and box file --- box.json | 5 +++++ composer.json | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 box.json diff --git a/box.json b/box.json new file mode 100644 index 0000000..acf6f98 --- /dev/null +++ b/box.json @@ -0,0 +1,5 @@ +{ + "base-path": null, + "output": "build/extension-check.phar", + "chmod": "0700" + } \ No newline at end of file diff --git a/composer.json b/composer.json index 02ab642..ab0a2b3 100644 --- a/composer.json +++ b/composer.json @@ -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" } }