-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathcomposer.json
More file actions
51 lines (51 loc) · 2.54 KB
/
composer.json
File metadata and controls
51 lines (51 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"require": {
"php": ">=8.2",
"ext-json": "*",
"ext-pdo": "*",
"rubix/ml": "2.x",
"amphp/parallel": "1.4.x",
"wamania/php-stemmer": "4.0 as 3.0"
},
"autoload": {
"psr-4": {
"OCA\\Recognize\\": "lib/"
}
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff",
"cs:fix": "vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix",
"psalm": "vendor-bin/psalm/vendor/bin/psalm",
"psalm:update-baseline": "vendor-bin/psalm/vendor/bin/psalm --threads=1 --update-baseline",
"psalm:update-baseline:force": "vendor-bin/psalm/vendor/bin/psalm --threads=1 --update-baseline --set-baseline=psalm-baseline.xml",
"test:unit": "vendor-bin/phpunit/vendor/bin/phpunit --config tests/phpunit.xml",
"post-install-cmd": [
"composer install --working-dir=vendor-bin/php-cs-fixer --ansi --no-interaction",
"composer install --working-dir=vendor-bin/php-scoper --ansi --no-interaction",
"composer install --working-dir=vendor-bin/phpunit --ansi --no-interaction",
"composer install --working-dir=vendor-bin/psalm --ansi --no-interaction",
"grep -r 'OCA\\\\Recognize\\\\Vendor\\\\Rubix' ./vendor/rubix/ml/ || (vendor-bin/php-scoper/vendor/bin/php-scoper add-prefix --prefix='OCA\\Recognize\\Vendor' --output-dir=\"/tmp/scoped-vendor\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\" && cp -rf /tmp/scoped-vendor/* ./vendor/ && rm -rf /tmp/scoped-vendor)",
"composer dump-autoload"
],
"post-update-cmd": [
"composer install --working-dir=vendor-bin/php-cs-fixer --ansi --no-interaction",
"composer install --working-dir=vendor-bin/php-scoper --ansi --no-interaction",
"composer install --working-dir=vendor-bin/phpunit --ansi --no-interaction",
"composer install --working-dir=vendor-bin/psalm --ansi --no-interaction",
"grep -r 'OCA\\\\Recognize\\\\Vendor\\\\Rubix' ./vendor/rubix/ml/ || (vendor-bin/php-scoper/vendor/bin/php-scoper add-prefix --prefix='OCA\\Recognize\\Vendor' --output-dir=\"/tmp/scoped-vendor\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\" && cp -rf /tmp/scoped-vendor/* ./vendor/ && rm -rf /tmp/scoped-vendor)",
"composer dump-autoload"
]
},
"config": {
"platform": {
"php": "8.2.0"
},
"allow-plugins": {
"composer/package-versions-deprecated": true
},
"autoloader-suffix": "Recognize",
"optimize-autoloader": true,
"sort-packages": true
}
}