mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Move tools' dependencies to separate utils directory
This commit is contained in:
parent
854c73f04c
commit
ed01a7e7f3
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -17,7 +17,6 @@ CONTRIBUTING.md export-ignore
|
|||||||
|
|
||||||
# contributor/development files
|
# contributor/development files
|
||||||
tests/ export-ignore
|
tests/ export-ignore
|
||||||
tools/ export-ignore
|
|
||||||
utils/ export-ignore
|
utils/ export-ignore
|
||||||
.php-cs-fixer.dist.php export-ignore
|
.php-cs-fixer.dist.php export-ignore
|
||||||
.php-cs-fixer.no-header.php export-ignore
|
.php-cs-fixer.no-header.php export-ignore
|
||||||
|
@ -17,23 +17,13 @@
|
|||||||
"psr/log": "^3.0"
|
"psr/log": "^3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"codeigniter/coding-standard": "^1.7",
|
|
||||||
"codeigniter/phpstan-codeigniter": "^1.4",
|
|
||||||
"ergebnis/composer-normalize": "^2.28",
|
|
||||||
"fakerphp/faker": "^1.9",
|
"fakerphp/faker": "^1.9",
|
||||||
"friendsofphp/php-cs-fixer": "^3.47.1",
|
|
||||||
"kint-php/kint": "^5.0.4",
|
"kint-php/kint": "^5.0.4",
|
||||||
"mikey179/vfsstream": "^1.6",
|
"mikey179/vfsstream": "^1.6",
|
||||||
"nexusphp/cs-config": "^3.6",
|
|
||||||
"nexusphp/tachycardia": "^2.0",
|
"nexusphp/tachycardia": "^2.0",
|
||||||
"phpstan/extension-installer": "^1.3",
|
|
||||||
"phpstan/phpstan": "^1.11",
|
|
||||||
"phpstan/phpstan-strict-rules": "^1.6",
|
|
||||||
"phpunit/phpcov": "^9.0.2",
|
"phpunit/phpcov": "^9.0.2",
|
||||||
"phpunit/phpunit": "^10.5.16",
|
"phpunit/phpunit": "^10.5.16",
|
||||||
"predis/predis": "^1.1 || ^2.0",
|
"predis/predis": "^1.1 || ^2.0"
|
||||||
"rector/rector": "1.2.1",
|
|
||||||
"vimeo/psalm": "^5.0"
|
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"codeigniter4/framework": "self.version"
|
"codeigniter4/framework": "self.version"
|
||||||
@ -71,15 +61,10 @@
|
|||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"CodeIgniter\\": "tests/system/",
|
"CodeIgniter\\": "tests/system/"
|
||||||
"Utils\\": "utils/"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"allow-plugins": {
|
|
||||||
"ergebnis/composer-normalize": true,
|
|
||||||
"phpstan/extension-installer": true
|
|
||||||
},
|
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
"preferred-install": "dist",
|
"preferred-install": "dist",
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
@ -90,30 +75,32 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"post-autoload-dump": [
|
||||||
|
"@composer update --working-dir=utils"
|
||||||
|
],
|
||||||
"post-update-cmd": [
|
"post-update-cmd": [
|
||||||
"CodeIgniter\\ComposerScripts::postUpdate",
|
"CodeIgniter\\ComposerScripts::postUpdate"
|
||||||
"composer update --working-dir=tools/phpmetrics"
|
|
||||||
],
|
],
|
||||||
"analyze": [
|
"analyze": [
|
||||||
"Composer\\Config::disableProcessTimeout",
|
"Composer\\Config::disableProcessTimeout",
|
||||||
"bash -c \"XDEBUG_MODE=off phpstan analyse\"",
|
"bash -c \"XDEBUG_MODE=off utils/vendor/bin/phpstan analyse\"",
|
||||||
"rector process --dry-run"
|
"utils/vendor/bin/rector process --dry-run"
|
||||||
],
|
],
|
||||||
"cs": [
|
"cs": [
|
||||||
"Composer\\Config::disableProcessTimeout",
|
"Composer\\Config::disableProcessTimeout",
|
||||||
"php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php",
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php",
|
||||||
"php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php",
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php",
|
||||||
"php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.tests.php",
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.tests.php",
|
||||||
"php-cs-fixer fix --ansi --verbose --dry-run --diff"
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff"
|
||||||
],
|
],
|
||||||
"cs-fix": [
|
"cs-fix": [
|
||||||
"Composer\\Config::disableProcessTimeout",
|
"Composer\\Config::disableProcessTimeout",
|
||||||
"php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php",
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php",
|
||||||
"php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.no-header.php",
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.no-header.php",
|
||||||
"php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.tests.php",
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.tests.php",
|
||||||
"php-cs-fixer fix --ansi --verbose --diff"
|
"utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff"
|
||||||
],
|
],
|
||||||
"metrics": "tools/phpmetrics/vendor/bin/phpmetrics --config=phpmetrics.json",
|
"metrics": "utils/vendor/bin/phpmetrics --config=phpmetrics.json",
|
||||||
"sa": "@analyze",
|
"sa": "@analyze",
|
||||||
"style": "@cs-fix",
|
"style": "@cs-fix",
|
||||||
"test": "phpunit"
|
"test": "phpunit"
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"require-dev": {
|
|
||||||
"phpmetrics/phpmetrics": "^3.0rc6"
|
|
||||||
}
|
|
||||||
}
|
|
30
utils/composer.json
Normal file
30
utils/composer.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"require": {
|
||||||
|
"php": "^8.1",
|
||||||
|
"codeigniter/coding-standard": "^1.7",
|
||||||
|
"codeigniter/phpstan-codeigniter": "^1.4",
|
||||||
|
"ergebnis/composer-normalize": "^2.28",
|
||||||
|
"friendsofphp/php-cs-fixer": "^3.47.1",
|
||||||
|
"nexusphp/cs-config": "^3.6",
|
||||||
|
"phpstan/extension-installer": "^1.3",
|
||||||
|
"phpstan/phpstan": "^1.11",
|
||||||
|
"phpmetrics/phpmetrics": "^2.8 || ^3.0rc6",
|
||||||
|
"phpstan/phpstan-strict-rules": "^1.6",
|
||||||
|
"rector/rector": "1.2.1",
|
||||||
|
"vimeo/psalm": "^5.0"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Utils\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"allow-plugins": {
|
||||||
|
"ergebnis/composer-normalize": true,
|
||||||
|
"phpstan/extension-installer": true
|
||||||
|
},
|
||||||
|
"optimize-autoloader": true,
|
||||||
|
"preferred-install": "dist",
|
||||||
|
"sort-packages": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user