diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-08-19 10:48:44 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-08-19 12:25:55 +0200 |
commit | e3541da93e6999ccd1b18a9d58e160125fa73bb7 (patch) | |
tree | b9b74e5a2acf03038aadc3174da0bb33865bbbd6 /composer.json | |
parent | 3dc7fd27f177993e4032c71789fac55e0af01880 (diff) | |
download | nextcloud-server-e3541da93e6999ccd1b18a9d58e160125fa73bb7.tar.gz nextcloud-server-e3541da93e6999ccd1b18a9d58e160125fa73bb7.zip |
Scope composer tools with the bin plugin
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 71 |
1 files changed, 41 insertions, 30 deletions
diff --git a/composer.json b/composer.json index ff94ef05d7f..ab69a0fb376 100644 --- a/composer.json +++ b/composer.json @@ -1,33 +1,44 @@ { - "config" : { - "vendor-dir": "lib/composer", - "optimize-autoloader": true - }, - "autoload" : { - "psr-4": { + "config": { + "vendor-dir": "lib/composer", + "optimize-autoloader": true, + "sort-packages": true, + "platform": { + "php": "7.3" + } + }, + "autoload": { + "psr-4": { "": "lib/private/legacy", - "OC\\": "lib/private", - "OC\\Core\\": "core/", - "OCP\\": "lib/public" - } - }, - "require": { - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-pdo": "*", - "ext-simplexml": "*", - "ext-xmlreader": "*", - "ext-zip": "*" - }, - "require-dev": { - "nextcloud/coding-standard": "^0.5.0", - "vimeo/psalm": "^4.0" - }, - "scripts": { - "cs:fix": "php-cs-fixer fix", - "cs:check": "php-cs-fixer fix --dry-run --diff", - "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l", - "psalm": "psalm" - } + "OC\\": "lib/private", + "OC\\Core\\": "core/", + "OCP\\": "lib/public" + } + }, + "require": { + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-pdo": "*", + "ext-simplexml": "*", + "ext-xmlreader": "*", + "ext-zip": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4" + }, + "scripts": { + "post-install-cmd": [ + "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install", + "composer dump-autoload" + ], + "post-update-cmd": [ + "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi", + "composer dump-autoload" + ], + "cs:fix": "php-cs-fixer fix", + "cs:check": "php-cs-fixer fix --dry-run --diff", + "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l", + "psalm": "psalm" + } } |