spreed/composer.json
Joas Schilling 3ddfa913d2
fix(dependencies): Migrate to PHP scoper
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-10-29 23:57:31 +01:00

55 lines
2.1 KiB
JSON

{
"autoload": {
"psr-4": {
"OCA\\Talk\\": "lib/"
}
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
},
"autoloader-suffix": "Talk",
"optimize-autoloader": true,
"platform": {
"php": "8.1"
},
"sort-packages": true
},
"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 './vendor-bin/*' -not -path './lib/Vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l",
"openapi": "generate-spec --verbose && (npm run typescript:generate || echo 'Please manually regenerate the typescript OpenAPI models')",
"rector:check": "rector --dry-run",
"rector:fix": "rector",
"psalm": "psalm --threads=1",
"psalm:dev": "psalm --no-cache --threads=$(nproc)",
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"post-install-cmd": [
"@composer bin all install --ansi",
"vendor/bin/php-scoper add-prefix --force # Scope our dependencies",
"@php lib-vendor-organizer.php lib/Vendor/ OCA\\\\Talk\\\\Vendor",
"composer dump-autoload -o"
],
"post-update-cmd": [
"@composer bin all update --ansi",
"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\\\\Talk\\\\Vendor",
"composer dump-autoload -o"
],
"test:unit": "vendor/bin/phpunit -c tests/php/phpunit.xml --colors=always --fail-on-warning --fail-on-risky"
},
"require-dev": {
"nextcloud/ocp": "dev-master",
"roave/security-advisories": "dev-latest"
},
"require": {
"bamarni/composer-bin-plugin": "^1.8",
"cuyz/valinor": "^1.8",
"firebase/php-jwt": "^6.10"
}
}