Files
hdk-boilerplate/composer.json

99 lines
2.4 KiB
JSON
Raw Normal View History

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)",
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.0-swoole composer ci"
]
}
},
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": {
"php": "^8.0",
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",
"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-13 17:05:20 +08:00
"minimum-stability": "dev",
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
"secure-http": false,
"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",
"@test",
2023-03-15 11:16:30 +08:00
"echo CI Success"
]
2021-11-30 13:20:54 +08:00
},
"repositories": {
2023-03-15 11:16:30 +08:00
"lux-map": {
"type": "composer",
"url": "https://satis.luxcreo.cn/"
},
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-13 09:14:31 +00:00
"version": "1.0.0-alpha.0"
2021-11-29 16:27:54 +08:00
}