|
1 | 1 | { |
2 | | - "require": { |
3 | | - "php": ">=8.2", |
4 | | - "ext-json": "*", |
5 | | - "ext-pdo": "*", |
6 | | - "rubix/ml": "2.x", |
7 | | - "amphp\/parallel": "1.4.x", |
8 | | - "wamania/php-stemmer": "4.0 as 3.0", |
9 | | - "bamarni/composer-bin-plugin": "^1.8" |
10 | | - }, |
11 | | - "autoload": { |
12 | | - "psr-4": { |
13 | | - "OCA\\Recognize\\": "lib/" |
14 | | - } |
| 2 | + "require": { |
| 3 | + "php": ">=8.2", |
| 4 | + "ext-json": "*", |
| 5 | + "ext-pdo": "*", |
| 6 | + "rubix/ml": "2.x", |
| 7 | + "amphp/parallel": "1.4.x", |
| 8 | + "wamania/php-stemmer": "4.0 as 3.0" |
| 9 | + }, |
| 10 | + "autoload": { |
| 11 | + "psr-4": { |
| 12 | + "OCA\\Recognize\\": "lib/" |
| 13 | + } |
| 14 | + }, |
| 15 | + "scripts": { |
| 16 | + "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", |
| 17 | + "cs:check": "vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff", |
| 18 | + "cs:fix": "vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix", |
| 19 | + "psalm": "vendor-bin/psalm/vendor/bin/psalm", |
| 20 | + "psalm:update-baseline": "vendor-bin/psalm/vendor/bin/psalm --threads=1 --update-baseline", |
| 21 | + "psalm:update-baseline:force": "vendor-bin/psalm/vendor/bin/psalm --threads=1 --update-baseline --set-baseline=psalm-baseline.xml", |
| 22 | + "test:unit": "vendor-bin/phpunit/vendor/bin/phpunit --config tests/phpunit.xml", |
| 23 | + "post-install-cmd": [ |
| 24 | + "composer install --working-dir=vendor-bin/php-cs-fixer --ansi --no-interaction", |
| 25 | + "composer install --working-dir=vendor-bin/php-scoper --ansi --no-interaction", |
| 26 | + "composer install --working-dir=vendor-bin/phpunit --ansi --no-interaction", |
| 27 | + "composer install --working-dir=vendor-bin/psalm --ansi --no-interaction", |
| 28 | + "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)", |
| 29 | + "composer dump-autoload" |
| 30 | + ], |
| 31 | + "post-update-cmd": [ |
| 32 | + "composer install --working-dir=vendor-bin/php-cs-fixer --ansi --no-interaction", |
| 33 | + "composer install --working-dir=vendor-bin/php-scoper --ansi --no-interaction", |
| 34 | + "composer install --working-dir=vendor-bin/phpunit --ansi --no-interaction", |
| 35 | + "composer install --working-dir=vendor-bin/psalm --ansi --no-interaction", |
| 36 | + "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)", |
| 37 | + "composer dump-autoload" |
| 38 | + ] |
| 39 | + }, |
| 40 | + "config": { |
| 41 | + "platform": { |
| 42 | + "php": "8.2.0" |
15 | 43 | }, |
16 | | - "scripts": { |
17 | | - "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", |
18 | | - "cs:check": "php-cs-fixer fix --dry-run --diff", |
19 | | - "cs:fix": "php-cs-fixer fix", |
20 | | - "psalm": "psalm", |
21 | | - "psalm:update-baseline": "psalm --threads=1 --update-baseline", |
22 | | - "psalm:update-baseline:force": "psalm --threads=1 --update-baseline --set-baseline=psalm-baseline.xml", |
23 | | - "test:unit": "phpunit --config tests/phpunit.xml", |
24 | | - "post-install-cmd": [ |
25 | | - "@composer bin all install --ansi", |
26 | | - "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\"", |
27 | | - "composer dump-autoload" |
28 | | - ], |
29 | | - "post-update-cmd": [ |
30 | | - "@composer bin all update --ansi", |
31 | | - "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\"", |
32 | | - "composer dump-autoload" |
33 | | - ] |
| 44 | + "allow-plugins": { |
| 45 | + "composer/package-versions-deprecated": true |
34 | 46 | }, |
35 | | - "config": { |
36 | | - "platform": { |
37 | | - "php": "8.2.0" |
38 | | - }, |
39 | | - "allow-plugins": { |
40 | | - "bamarni/composer-bin-plugin": true, |
41 | | - "composer/package-versions-deprecated": true |
42 | | - }, |
43 | | - "autoloader-suffix": "Recognize", |
44 | | - "optimize-autoloader": true, |
45 | | - "sort-packages": true |
46 | | - } |
| 47 | + "autoloader-suffix": "Recognize", |
| 48 | + "optimize-autoloader": true, |
| 49 | + "sort-packages": true |
| 50 | + } |
47 | 51 | } |
0 commit comments