2021-11-29 16:27:54 +08:00
|
|
|
{
|
2023-03-15 11:16:30 +08:00
|
|
|
"name": "singularity/hdk-boilerplate",
|
2021-11-30 13:20:54 +08:00
|
|
|
"license": "MIT",
|
2022-03-14 16:19:09 +08:00
|
|
|
"type": "library",
|
2023-03-15 11:16:30 +08:00
|
|
|
"description": "HDK 包模板",
|
|
|
|
|
"authors": [
|
|
|
|
|
{
|
|
|
|
|
"name": "李东云",
|
|
|
|
|
"email": "dongyun.li@luxcreo.ai"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"extra": {
|
|
|
|
|
"hyperf": {
|
|
|
|
|
"config": "Singularity\\HDK\\Boilerplate\\ConfigProvider"
|
|
|
|
|
},
|
|
|
|
|
"hooks": {
|
|
|
|
|
"config": {
|
|
|
|
|
"stop-on-failure": [
|
|
|
|
|
"pre-push"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"pre-push": [
|
|
|
|
|
"echo committing as $(git config user.name)",
|
2023-10-23 20:23:13 +08:00
|
|
|
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.1-swoole composer ci"
|
2023-03-15 11:16:30 +08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-11-30 13:20:54 +08:00
|
|
|
"autoload": {
|
|
|
|
|
"psr-4": {
|
2023-03-15 11:16:30 +08:00
|
|
|
"Singularity\\HDK\\Boilerplate\\": "src/"
|
2021-11-29 16:27:54 +08:00
|
|
|
}
|
2021-11-30 13:20:54 +08:00
|
|
|
},
|
|
|
|
|
"autoload-dev": {
|
|
|
|
|
"psr-4": {
|
2023-10-13 17:05:20 +08:00
|
|
|
"Tests\\": "tests/"
|
2021-11-30 13:20:54 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"require": {
|
2023-10-23 20:19:03 +08:00
|
|
|
"php": "^8.1",
|
2023-03-15 11:16:30 +08:00
|
|
|
"composer/composer": ">=2.0",
|
2023-10-13 17:05:20 +08:00
|
|
|
"singularity/hdk-core": "^1.0.0",
|
|
|
|
|
"symfony/polyfill-php81": "^1.27",
|
|
|
|
|
"symfony/polyfill-php82": "^1.27"
|
2021-11-30 13:20:54 +08:00
|
|
|
},
|
|
|
|
|
"require-dev": {
|
2023-03-15 11:16:30 +08:00
|
|
|
"brainmaestro/composer-git-hooks": "^2.8",
|
2023-10-13 17:05:20 +08:00
|
|
|
"cooper/hyperf-pest": "^1.1",
|
2023-03-15 11:16:30 +08:00
|
|
|
"friendsofphp/php-cs-fixer": "^3.0",
|
2023-10-13 17:05:20 +08:00
|
|
|
"hyperf/devtool": "~3.0.37",
|
|
|
|
|
"hyperf/testing": "~3.0.38",
|
2023-03-15 11:16:30 +08:00
|
|
|
"phpstan/phpstan": "^1.10.6",
|
2023-03-15 11:28:30 +08:00
|
|
|
"swoole/ide-helper": "^4.8.12"
|
2023-03-15 11:16:30 +08:00
|
|
|
},
|
|
|
|
|
"suggest": {
|
|
|
|
|
"singularity/hdk-auth": "用户、鉴权相关逻辑必需",
|
2023-10-13 17:05:20 +08:00
|
|
|
"singularity/hyperf-saml": "接入单点登录必需",
|
|
|
|
|
"singularity/hdk-pay": "接入支付平台必需"
|
2021-11-30 13:20:54 +08:00
|
|
|
},
|
|
|
|
|
"prefer-stable": true,
|
2023-10-23 20:19:03 +08:00
|
|
|
"minimum-stability": "alpha",
|
2021-11-30 13:20:54 +08:00
|
|
|
"config": {
|
|
|
|
|
"optimize-autoloader": true,
|
2023-03-15 11:16:30 +08:00
|
|
|
"sort-packages": true,
|
2023-10-13 17:05:20 +08:00
|
|
|
"allow-plugins": {
|
|
|
|
|
"pestphp/pest-plugin": true
|
|
|
|
|
}
|
2021-11-30 13:20:54 +08:00
|
|
|
},
|
|
|
|
|
"scripts": {
|
|
|
|
|
"post-root-package-install": [
|
|
|
|
|
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
|
|
|
|
],
|
2023-03-15 11:16:30 +08:00
|
|
|
"test": [
|
|
|
|
|
"rm -rf runtime",
|
|
|
|
|
"Composer\\Config::disableProcessTimeout",
|
2023-10-13 17:05:20 +08:00
|
|
|
"co-pest --prepend tests/bootstrap.php -c phpunit.xml --colors=always $1"
|
2023-03-15 11:16:30 +08:00
|
|
|
],
|
2023-10-13 17:05:20 +08:00
|
|
|
"cs-fix": "php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
|
|
|
|
|
"analyse": "phpstan analyse $1",
|
2023-03-15 11:16:30 +08:00
|
|
|
"ci": [
|
|
|
|
|
"@analyse publish/ src/ tests/",
|
|
|
|
|
"@cs-fix",
|
2023-03-15 11:28:30 +08:00
|
|
|
"@test",
|
2023-03-15 11:16:30 +08:00
|
|
|
"echo CI Success"
|
|
|
|
|
]
|
2021-11-30 13:20:54 +08:00
|
|
|
},
|
|
|
|
|
"repositories": {
|
2023-10-23 20:19:03 +08:00
|
|
|
"nest": {
|
2023-03-15 11:16:30 +08:00
|
|
|
"type": "composer",
|
2023-10-23 20:19:03 +08:00
|
|
|
"url": "https://nest.doylee.cn/api/packages/HDK/composer"
|
2023-03-15 11:16:30 +08:00
|
|
|
},
|
2021-11-30 13:20:54 +08:00
|
|
|
"packagist": {
|
|
|
|
|
"type": "composer",
|
2023-03-15 11:16:30 +08:00
|
|
|
"url": "https://mirrors.aliyun.com/composer/"
|
2021-11-30 13:20:54 +08:00
|
|
|
}
|
2023-03-15 03:18:16 +00:00
|
|
|
},
|
2023-10-23 12:23:31 +00:00
|
|
|
"version": "1.0.0-alpha.2"
|
2021-11-29 16:27:54 +08:00
|
|
|
}
|