mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
normalize composer
This commit is contained in:
@@ -1,38 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "zhamao/framework",
|
"name": "zhamao/framework",
|
||||||
"description": "High performance chat robot and web server development framework",
|
"description": "High performance chat robot and web server development framework",
|
||||||
"minimum-stability": "stable",
|
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"extra": {
|
|
||||||
"zm": {
|
|
||||||
"exclude-annotation-path": [
|
|
||||||
"src/ZM"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"hooks": {
|
|
||||||
"post-merge": "composer install",
|
|
||||||
"pre-commit": [
|
|
||||||
"echo committing as $(git config user.name)",
|
|
||||||
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src"
|
|
||||||
],
|
|
||||||
"pre-push": [
|
|
||||||
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src",
|
|
||||||
"composer analyse"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "jerry",
|
"name": "jerry",
|
||||||
"email": "admin@zhamao.me"
|
"email": "admin@zhamao.me"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"prefer-stable": true,
|
|
||||||
"bin": [
|
|
||||||
"bin/start",
|
|
||||||
"bin/phpunit-swoole",
|
|
||||||
"bin/gendoc"
|
|
||||||
],
|
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1",
|
"php": "^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
@@ -52,6 +27,14 @@
|
|||||||
"zhamao/console": "^1.0",
|
"zhamao/console": "^1.0",
|
||||||
"zhamao/request": "^1.1"
|
"zhamao/request": "^1.1"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"brainmaestro/composer-git-hooks": "^2.8",
|
||||||
|
"friendsofphp/php-cs-fixer": "^3.2 != 3.7.0",
|
||||||
|
"phpstan/phpstan": "^1.1",
|
||||||
|
"phpunit/phpunit": "^8.5 || ^9.0",
|
||||||
|
"roave/security-advisories": "dev-latest",
|
||||||
|
"swoole/ide-helper": "^4.5"
|
||||||
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-ctype": "Use C/C++ extension instead of polyfill will be more efficient",
|
"ext-ctype": "Use C/C++ extension instead of polyfill will be more efficient",
|
||||||
"ext-mbstring": "Use C/C++ extension instead of polyfill will be more efficient",
|
"ext-mbstring": "Use C/C++ extension instead of polyfill will be more efficient",
|
||||||
@@ -59,6 +42,8 @@
|
|||||||
"ext-redis": "If you use Redis in framework, you will need this extension",
|
"ext-redis": "If you use Redis in framework, you will need this extension",
|
||||||
"league/climate": "Display columns and status in terminal"
|
"league/climate": "Display columns and status in terminal"
|
||||||
},
|
},
|
||||||
|
"minimum-stability": "stable",
|
||||||
|
"prefer-stable": true,
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"ZM\\": "src/ZM"
|
"ZM\\": "src/ZM"
|
||||||
@@ -73,16 +58,32 @@
|
|||||||
"Custom\\": "src/Custom"
|
"Custom\\": "src/Custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"bin": [
|
||||||
|
"bin/gendoc",
|
||||||
|
"bin/phpunit-swoole",
|
||||||
|
"bin/start"
|
||||||
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"extra": {
|
||||||
"brainmaestro/composer-git-hooks": "^2.8",
|
"hooks": {
|
||||||
"friendsofphp/php-cs-fixer": "^3.2 != 3.7.0",
|
"post-merge": "composer install",
|
||||||
"phpstan/phpstan": "^1.1",
|
"pre-commit": [
|
||||||
"phpunit/phpunit": "^8.5 || ^9.0",
|
"echo committing as $(git config user.name)",
|
||||||
"swoole/ide-helper": "^4.5"
|
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src"
|
||||||
|
],
|
||||||
|
"pre-push": [
|
||||||
|
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src",
|
||||||
|
"composer analyse"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"zm": {
|
||||||
|
"exclude-annotation-path": [
|
||||||
|
"src/ZM"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-install-cmd": [
|
"post-install-cmd": [
|
||||||
|
|||||||
Reference in New Issue
Block a user