Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-08-19 11:48:44 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-08-19 13:25:55 +0300
commite3541da93e6999ccd1b18a9d58e160125fa73bb7 (patch)
treeb9b74e5a2acf03038aadc3174da0bb33865bbbd6 /composer.json
parent3dc7fd27f177993e4032c71789fac55e0af01880 (diff)
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.json71
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"
+ }
}