Files
hdk-skeleton/composer.json
2023-03-21 16:56:42 +08:00

97 lines
2.3 KiB
JSON
Executable File

{
"name": "singularity/hdk-skeleton",
"license": "MIT",
"type": "project",
"description": "HDK 骨架",
"authors": [
{
"name": "李东云",
"email": "dongyun.li@luxcreo.ai"
}
],
"extra": {
"hyperf": {
"config": "Singularity\\HDK\\Skeleton\\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"
]
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Test\\": "test/"
}
},
"require": {
"php": "^8.1",
"composer/composer": ">=2.5.4",
"hyperf/db-connection": "3.0.*",
"hyperf/session": "3.0.*",
"hyperf/validation": "3.0.*",
"singularity/hdk-auth": "^0.2.2",
"singularity/hdk-core": "^0.2.10",
"singularity/hyperf-saml": "^0.2.3",
"symfony/polyfill-php81": "^1.27"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8",
"friendsofphp/php-cs-fixer": "^3.0",
"hyperf/devtool": "3.0.*",
"hyperf/testing": "3.0.*",
"phpstan/phpstan": "^1.10.6",
"swoole/ide-helper": "^4.8.12"
},
"suggest": {
"singularity/hdk-auth": "用户、鉴权相关逻辑必需",
"singularity/hyperf-saml": "接入单点登录必需"
},
"prefer-stable": true,
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"secure-http": false
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"test": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always"
],
"cs-fix": "vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
"analyse": "vendor/bin/phpstan analyse -l 0 $1",
"ci": [
"@analyse app/ test/",
"@cs-fix",
"@test",
"echo CI Success"
]
},
"repositories": {
"lux-map": {
"type": "composer",
"url": "https://satis.luxcreo.cn/"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.cloud.tencent.com/composer/"
}
},
"version": "0.2.2"
}