mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
80 lines
3.0 KiB
JSON
80 lines
3.0 KiB
JSON
{
|
|
"name": "rector/rector",
|
|
"description": "Instant upgrade and refactoring of your PHP code",
|
|
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
|
|
"license": "MIT",
|
|
"require": {
|
|
"php": "^7.1",
|
|
"composer/xdebug-handler": "^1.3",
|
|
"jean85/pretty-package-versions": "^1.2",
|
|
"nette/robot-loader": "^3.1",
|
|
"nette/utils": "^2.5",
|
|
"nikic/php-parser": "^4.1",
|
|
"phpstan/phpstan": "^0.10.6",
|
|
"sebastian/diff": "^3.0",
|
|
"symfony/console": "^3.4|^4.1",
|
|
"symfony/dependency-injection": "^3.4|^4.1",
|
|
"symfony/finder": "^3.4|^4.1",
|
|
"symfony/process": "^3.4|^4.1",
|
|
"symplify/better-phpdoc-parser": "^5.2.15",
|
|
"symplify/package-builder": "^5.2.15",
|
|
"thecodingmachine/safe": "^0.1.6"
|
|
},
|
|
"require-dev": {
|
|
"ocramius/package-versions": "^1.3",
|
|
"phpunit/phpunit": "^7.5",
|
|
"symplify/easy-coding-standard": "^5.2.15",
|
|
"symplify/monorepo-builder": "^5.2.15",
|
|
"symplify/phpstan-extensions": "^5.2.15",
|
|
"thecodingmachine/phpstan-safe-rule": "^0.1.0",
|
|
"thecodingmachine/phpstan-strict-rules": "^0.10.7",
|
|
"tracy/tracy": "^2.5"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Rector\\": "src"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Rector\\Tests\\": "tests"
|
|
},
|
|
"classmap": [
|
|
"examples",
|
|
"packages/Symfony/tests/Rector/FrameworkBundle/AbstractToConstructorInjectionRectorSource",
|
|
"packages/Symfony/tests/Rector/FrameworkBundle/ContainerGetToConstructorInjectionRector/Source",
|
|
"packages/NodeTypeResolver/tests/PerNodeTypeResolver/ParamTypeResolver/Source",
|
|
"packages/NodeTypeResolver/tests/PerNodeTypeResolver/PropertyTypeResolver/Source",
|
|
"tests/Source",
|
|
"tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source",
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source"
|
|
]
|
|
},
|
|
"suggest": {
|
|
"symplify/easy-coding-standard": "Required to enable '--with-style' option. Use in case you don't have PHP_CodeSniffer or PHP-CS-Fixer yet."
|
|
},
|
|
"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_trailing_spaces.sh"
|
|
],
|
|
"phpstan": "vendor/bin/phpstan analyse packages src tests",
|
|
"docs": "bin/rector generate-docs > docs/AllRectorsOverview.md",
|
|
"pre-autoload-dump": "Rector\\Composer\\MonorepoAutoloadEventSubscriber::preAutoloadDump"
|
|
},
|
|
"scripts-descriptions": {
|
|
"update-docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
|
|
},
|
|
"bin": ["bin/rector"],
|
|
"config": {
|
|
"sort-packages": true
|
|
}
|
|
}
|