diff options
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" + } } |