Skip to content

Commit

Permalink
chore: move tools to vendor bin plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Sep 20, 2024
1 parent 5dce70d commit 4332419
Show file tree
Hide file tree
Showing 7 changed files with 2,350 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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
15 changes: 12 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
}
},
"scripts": {
"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"
],
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './node_modules/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -19,15 +25,18 @@
"optimize-autoloader": true,
"classmap-authoritative": true,
"platform": {
"php": "8.0.2"
"php": "8.1"
},
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"require-dev": {
"nextcloud/coding-standard": "^1.0.0",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^5.6",
"doctrine/dbal": "^3",
"deepdiver/zipstreamer": "^2.0",
"nextcloud/ocp": "dev-master"
"nextcloud/ocp": "dev-master",
"bamarni/composer-bin-plugin": "^1.8"
}
}
59 changes: 58 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"require-dev": {
"nextcloud/coding-standard": "^1.3"
},
"config": {
"platform": {
"php": "8.1"
}
}
}
159 changes: 159 additions & 0 deletions vendor-bin/cs-fixer/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vendor-bin/psalm/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"require-dev": {
"vimeo/psalm": "^5.26"
},
"config": {
"platform": {
"php": "8.1"
}
}
}
Loading

0 comments on commit 4332419

Please sign in to comment.