Skip to content

Commit

Permalink
chore: move tools to a separate directory to avoid dependency conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcharytoniuk committed Feb 7, 2024
1 parent 57e1811 commit 3bad47f
Show file tree
Hide file tree
Showing 12 changed files with 6,983 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
test.model
/site
/vendor
composer.lock
.phpunit.result.cache
.php-cs-fixer.cache
Thumbs.db
Expand Down
44 changes: 27 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
"wamania/php-stemmer": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"phpbench/phpbench": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.0"
},
"suggest": {
Expand All @@ -73,28 +68,43 @@
}
},
"scripts": {
"phpbench-install": "@composer install --working-dir ./tools/phpbench",
"phpbench": [
"@phpbench-install",
"@php ./tools/phpbench/vendor/bin/phpbench run --report=aggregate"
],
"php-cs-fixer-install": "@composer install --working-dir ./tools/php-cs-fixer",
"php-cs-fixer-check": [
"@php-cs-fixer-install",
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"@php ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --using-cache=no"
],
"php-cs-fixer-fix": [
"@php-cs-fixer-install",
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"@php ./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php"
],
"phpstan-install": "@composer install --working-dir ./tools/phpstan",
"phpstan": [
"@phpstan-install",
"@php ./tools/phpstan/vendor/bin/phpstan analyse -c phpstan.neon"
],

"analyze": "@phpstan",
"build": [
"@composer install",
"@analyze",
"@test",
"@check"
],
"analyze": "phpstan analyse -c phpstan.neon",
"benchmark": "phpbench run --report=aggregate",
"check": [
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --using-cache=no"
],
"fix": "php-cs-fixer fix --config=.php-cs-fixer.dist.php",
"benchmark": "@phpbench",
"check": "@php-cs-fixer-check",
"fix": "@php-cs-fixer-fix",
"test": "phpunit"
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"process-timeout": 3000,
"allow-plugins": {
"phpstan/extension-installer": true
}
"sort-packages": true
},
"funding": [
{
Expand Down
Loading

0 comments on commit 3bad47f

Please sign in to comment.