Skip to content

Commit

Permalink
feat(php): Migrate development tools to vendor-bin
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Sep 23, 2024
1 parent a944a1a commit 57b75e7
Show file tree
Hide file tree
Showing 12 changed files with 6,533 additions and 3,625 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

require_once './vendor/autoload.php';
require_once './vendor-bin/cs-fixer/vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

Expand Down
23 changes: 18 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"platform": {
"php": "8.0.2"
},
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"require": {
"php": ">=8.0.2",
Expand All @@ -17,12 +20,10 @@
},
"require-dev": {
"ext-dom": "*",
"behat/behat": "^3.14",
"bamarni/composer-bin-plugin": "^1.8",
"guzzlehttp/guzzle": "^7.8",
"nextcloud/coding-standard": "^1.2.1",
"nextcloud/ocp": "dev-stable27",
"phpunit/phpunit": "^9.6",
"psalm/phar": "^5.25",
"rector/rector": "^1.2.0"
},
"scripts": {
Expand All @@ -31,6 +32,18 @@
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
"test:unit": "phpunit -c tests/phpunit.xml"
"test:unit": "phpunit -c tests/phpunit.xml",
"post-install-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install --ansi"
],
"post-update-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi"
]
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
}
}
Loading

0 comments on commit 57b75e7

Please sign in to comment.