47 строки
1.6 KiB
JSON
47 строки
1.6 KiB
JSON
{
|
|
"autoload": {
|
|
"psr-4": {
|
|
"OCA\\SharePoint\\": "lib/"
|
|
}
|
|
},
|
|
"config": {
|
|
"autoloader-suffix": "SharePoint",
|
|
"platform": {
|
|
"php": "8.0.2"
|
|
},
|
|
"allow-plugins": {
|
|
"bamarni/composer-bin-plugin": true
|
|
}
|
|
},
|
|
"require": {
|
|
"vgrem/php-spo": "3.*",
|
|
"bamarni/composer-bin-plugin": "^1.8"
|
|
},
|
|
"scripts": {
|
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
|
"cs:fix": "php-cs-fixer fix",
|
|
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
|
|
"test:unit": "phpunit -c phpunit.xml --fail-on-warning --fail-on-risky --color",
|
|
"post-install-cmd": [
|
|
"@composer bin all install --ignore-platform-reqs # unfortunately the flag is required for 8.0",
|
|
"vendor/bin/php-scoper add-prefix --force # Scope our dependencies",
|
|
"rm -Rf lib/Vendor && mv build lib/Vendor",
|
|
"find lib/Vendor/ -maxdepth 1 -mindepth 1 -type d | cut -d '/' -f3 | xargs -I {} rm -Rf vendor/{} # Remove origins",
|
|
"@php lib-vendor-organizer.php lib/Vendor/ OCA\\\\SharePoint\\\\Vendor",
|
|
"composer dump-autoload -o"
|
|
],
|
|
"post-update-cmd": [
|
|
"@composer bin all install --ignore-platform-reqs",
|
|
"vendor/bin/php-scoper add-prefix --force # Scope our dependencies",
|
|
"rm -Rf lib/Vendor && mv build lib/Vendor",
|
|
"find lib/Vendor/ -maxdepth 1 -mindepth 1 -type d | cut -d '/' -f3 | xargs -I {} rm -Rf vendor/{} # Remove origins",
|
|
"@php lib-vendor-organizer.php lib/Vendor/ OCA\\\\SharePoint\\\\Vendor",
|
|
"composer dump-autoload -o"
|
|
]
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "^9.5",
|
|
"nextcloud/coding-standard": "^1.0"
|
|
}
|
|
}
|