mirror of
https://github.com/nextcloud/recognize.git
synced 2025-07-20 18:19:28 +00:00
52 lines
1.9 KiB
JSON
52 lines
1.9 KiB
JSON
{
|
|
"require": {
|
|
"php": ">=8.1",
|
|
"ext-json": "*",
|
|
"ext-pdo": "*",
|
|
"rubix/ml": "2.x",
|
|
"amphp\/parallel": "1.4.x",
|
|
"bamarni/composer-bin-plugin": "^1.8"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"OCA\\Recognize\\": "lib/"
|
|
}
|
|
},
|
|
"require-dev": {
|
|
"nextcloud/ocp": "dev-master",
|
|
"symfony/console": "^6.4",
|
|
"symfony/process": "^6.4"
|
|
},
|
|
"scripts": {
|
|
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
|
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
|
"cs:fix": "php-cs-fixer fix",
|
|
"psalm": "psalm.phar",
|
|
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
|
|
"psalm:update-baseline:force": "psalm.phar --threads=1 --update-baseline --set-baseline=psalm-baseline.xml",
|
|
"test:unit": "phpunit --config tests/phpunit.xml",
|
|
"post-install-cmd": [
|
|
"@composer bin all install --ansi",
|
|
"grep -r 'OCA\\\\Recognize\\\\Vendor\\\\Rubix' ./vendor/rubix/ml/ || vendor/bin/php-scoper add-prefix --prefix='OCA\\Recognize\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"",
|
|
"composer dump-autoload"
|
|
],
|
|
"post-update-cmd": [
|
|
"@composer bin all update --ansi",
|
|
"grep -r 'OCA\\\\Recognize\\\\Vendor\\\\Rubix' ./vendor/rubix/ml/ || vendor/bin/php-scoper add-prefix --prefix='OCA\\Recognize\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"",
|
|
"composer dump-autoload"
|
|
]
|
|
},
|
|
"config": {
|
|
"platform": {
|
|
"php": "8.1.0"
|
|
},
|
|
"allow-plugins": {
|
|
"bamarni/composer-bin-plugin": true,
|
|
"composer/package-versions-deprecated": true
|
|
},
|
|
"autoloader-suffix": "Recognize",
|
|
"optimize-autoloader": true,
|
|
"sort-packages": true
|
|
}
|
|
}
|