Files
hdk-boilerplate/composer.json
2023-10-23 12:23:31 +00:00

98 lines
2.4 KiB
JSON
Executable File

{
"name": "singularity/hdk-boilerplate",
"license": "MIT",
"type": "library",
"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)",
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.1-swoole composer ci"
]
}
},
"autoload": {
"psr-4": {
"Singularity\\HDK\\Boilerplate\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"require": {
"php": "^8.1",
"composer/composer": ">=2.0",
"singularity/hdk-core": "^1.0.0",
"symfony/polyfill-php81": "^1.27",
"symfony/polyfill-php82": "^1.27"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8",
"cooper/hyperf-pest": "^1.1",
"friendsofphp/php-cs-fixer": "^3.0",
"hyperf/devtool": "~3.0.37",
"hyperf/testing": "~3.0.38",
"phpstan/phpstan": "^1.10.6",
"swoole/ide-helper": "^4.8.12"
},
"suggest": {
"singularity/hdk-auth": "用户、鉴权相关逻辑必需",
"singularity/hyperf-saml": "接入单点登录必需",
"singularity/hdk-pay": "接入支付平台必需"
},
"prefer-stable": true,
"minimum-stability": "alpha",
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"test": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"co-pest --prepend tests/bootstrap.php -c phpunit.xml --colors=always $1"
],
"cs-fix": "php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
"analyse": "phpstan analyse $1",
"ci": [
"@analyse publish/ src/ tests/",
"@cs-fix",
"@test",
"echo CI Success"
]
},
"repositories": {
"nest": {
"type": "composer",
"url": "https://nest.doylee.cn/api/packages/HDK/composer"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer/"
}
},
"version": "1.0.0-alpha.2"
}