|
1 | 1 | { |
2 | 2 | "require-dev": { |
3 | | - "nextcloud/coding-standard": "^v1.1.1", |
4 | | - "psalm/phar": "^5.15.0", |
5 | | - "bantu/ini-get-wrapper": "v1.0.1", |
6 | | - "phpunit/phpunit": "^9.5", |
| 3 | + "bamarni/composer-bin-plugin": "^1.8", |
| 4 | + "bantu/ini-get-wrapper": "1.0.1", |
7 | 5 | "nextcloud/ocp": "dev-master" |
8 | 6 | }, |
9 | | - "scripts": { |
10 | | - "cs:check": "php-cs-fixer fix --dry-run --diff", |
11 | | - "cs:fix": "php-cs-fixer fix", |
12 | | - "psalm": "psalm.phar --threads=1", |
13 | | - "psalm:update-baseline": "psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml", |
14 | | - "psalm:clear": "psalm.phar --clear-cache && psalm --clear-global-cache", |
15 | | - "psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType", |
16 | | - "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", |
17 | | - "test:unit": "phpunit -c tests/phpunit.xml --fail-on-warning" |
18 | | - }, |
19 | 7 | "config": { |
20 | 8 | "allow-plugins": { |
| 9 | + "bamarni/composer-bin-plugin": true, |
21 | 10 | "composer/package-versions-deprecated": true |
22 | 11 | }, |
23 | 12 | "platform": { |
24 | 13 | "php": "8.1" |
| 14 | + }, |
| 15 | + "sort-packages": true |
| 16 | + }, |
| 17 | + "extra": { |
| 18 | + "bamarni-bin": { |
| 19 | + "bin-links": false, |
| 20 | + "forward-command": true, |
| 21 | + "target-directory": "vendor-bin" |
25 | 22 | } |
| 23 | + }, |
| 24 | + "scripts": { |
| 25 | + "cs:check": "vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff", |
| 26 | + "cs:fix": "vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix", |
| 27 | + "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", |
| 28 | + "psalm": "vendor-bin/psalm/vendor/bin/psalm --threads=1", |
| 29 | + "psalm:clear": "vendor-bin/psalm/vendor/bin/psalm --clear-cache && vendor-bin/psalm/vendor/bin/psalm --clear-cache --clear-global-cache", |
| 30 | + "psalm:update-baseline": "vendor-bin/psalm/vendor/bin/psalm --update-baseline --set-baseline=tests/psalm-baseline.xml", |
| 31 | + "test:unit": "vendor-bin/phpunit/vendor/bin/phpunit -c tests/phpunit.xml --fail-on-warning" |
26 | 32 | } |
27 | 33 | } |
0 commit comments