50 строки
1.5 KiB
JSON
50 строки
1.5 KiB
JSON
{
|
|
"autoload": {
|
|
"psr-4": {
|
|
"OCA\\Notifications\\": "lib/"
|
|
}
|
|
},
|
|
"name": "nextcloud/notifications",
|
|
"description": "notifications",
|
|
"license": "AGPL",
|
|
"require-dev": {
|
|
"bamarni/composer-bin-plugin": "^1.8",
|
|
"nextcloud/coding-standard": "^1.2",
|
|
"nextcloud/ocp": "dev-master",
|
|
"phpunit/phpunit": "^9.6",
|
|
"vimeo/psalm": "^5.14"
|
|
},
|
|
"config": {
|
|
"optimize-autoloader": true,
|
|
"classmap-authoritative": true,
|
|
"platform": {
|
|
"php": "8.0.2"
|
|
},
|
|
"sort-packages": true,
|
|
"allow-plugins": {
|
|
"bamarni/composer-bin-plugin": true
|
|
}
|
|
},
|
|
"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"
|
|
],
|
|
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
|
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
|
"cs:fix": "php-cs-fixer fix",
|
|
"openapi": "generate-spec",
|
|
"psalm": "psalm --threads=1",
|
|
"psalm:dev": "psalm --no-cache --threads=$(nproc)",
|
|
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
|
|
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
|
|
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
|
|
"test:unit": "vendor/bin/phpunit --color -c tests/Unit/phpunit.xml",
|
|
"test:integration": "cd tests/Integration && ./run.sh"
|
|
}
|
|
}
|