mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
86 lines
3.6 KiB
JSON
86 lines
3.6 KiB
JSON
{
|
|
"name": "rector/rector",
|
|
"description": "Upgrade your application with CLI without any deprecations knowledge.",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{ "name": "Tomas Votruba", "email": "tomas.vot@gmail.com", "homepage": "https://tomasvotruba.com" },
|
|
{ "name": "Gabriel Caruso", "email": "carusogabriel34@gmail.com", "homepage": "https://github.com/carusogabriel" },
|
|
{ "name": "Rector Contributors", "homepage": "https://github.com/rectorphp/rector/graphs/contributors" }
|
|
],
|
|
"require": {
|
|
"php": "^7.1",
|
|
"jean85/pretty-package-versions": "^1.1",
|
|
"nette/robot-loader": "^3.0",
|
|
"nette/utils": "^2.5",
|
|
"nikic/php-parser": "^4.0",
|
|
"sebastian/diff": "^3.0",
|
|
"symfony/console": "^4.0",
|
|
"symfony/dependency-injection": "^4.0",
|
|
"symfony/finder": "^4.0",
|
|
"roave/better-reflection": "^3.0",
|
|
"symplify/better-phpdoc-parser": "^4.2"
|
|
},
|
|
"require-dev": {
|
|
"phpstan/phpstan-shim": "^0.9",
|
|
"phpunit/phpunit": "^7.1",
|
|
"slam/php-cs-fixer-extensions": "^1.15",
|
|
"symplify/easy-coding-standard": "^4.2",
|
|
"tracy/tracy": "^2.4"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Rector\\": "src",
|
|
"Rector\\BetterReflection\\": "packages/BetterReflection/src",
|
|
"Rector\\ConsoleDiffer\\": "packages/ConsoleDiffer/src",
|
|
"Rector\\BetterPhpDocParser\\": "packages/BetterPhpDocParser/src",
|
|
"Rector\\NodeTypeResolver\\": "packages/NodeTypeResolver/src",
|
|
"Rector\\NodeTraverserQueue\\": "packages/NodeTraverserQueue/src"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Rector\\Tests\\": "tests",
|
|
"Rector\\BetterReflection\\Tests\\": "packages/BetterReflection/tests",
|
|
"Rector\\BetterPhpDocParser\\Tests\\": "packages/BetterPhpDocParser/tests",
|
|
"Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests",
|
|
"Rector\\NodeTraverserQueue\\Tests\\": "packages/NodeTraverserQueue/tests"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"complete-check": [
|
|
"@check-cs",
|
|
"phpunit",
|
|
"@phpstan",
|
|
"@update-docs"
|
|
],
|
|
"check-cs": "vendor/bin/ecs check bin packages src tests",
|
|
"fix-cs": [
|
|
"vendor/bin/ecs check bin packages src tests --fix",
|
|
"bin/clean_levels.sh"
|
|
],
|
|
"phpstan": "vendor/bin/phpstan.phar analyse packages src tests --level max --configuration phpstan.neon",
|
|
"update-docs": "bin/rector describe --level all --format md > docs/AllRectorsOverview.md",
|
|
"prefix-rector": [
|
|
"rm -rf build/",
|
|
"php php-scoper.phar add-prefix --no-interaction --prefix='RectorPrefixed'",
|
|
"find build/ -type f -name '*.yml' | xargs perl -pi -e 's/((?:\\\\{1,2}\\w+|\\w+\\\\{1,2})(?:\\w+\\\\{0,2})+)/RectorPrefixed\\\\\\1/g'",
|
|
"find build/ -type f | xargs sed -i 's/RectorPrefixed\\\\Rector/Rector/g'",
|
|
"find build/ -type f | xargs sed -i 's/RectorPrefixed\\\\\\\\Rector/Rector/g'",
|
|
"find build/ -type f | xargs sed -i 's/use Symfony/use RectorPrefixed\\\\\\\\Symfony/g'",
|
|
"rm -rf build/vendor/composer",
|
|
"rm build/vendor/composer/autoload",
|
|
"cp composer.json build/composer.json",
|
|
"composer dump-autoload -d build",
|
|
"chmod +x build/bin/rector",
|
|
"cd build && php bin/rector"
|
|
]
|
|
},
|
|
"bin": [
|
|
"bin/rector",
|
|
"bin/rector_bootstrap.php"
|
|
],
|
|
"config": {
|
|
"sort-packages": true
|
|
}
|
|
}
|