Files
hdk-skeleton/composer.json
2023-05-12 08:02:41 +00:00

113 lines
3.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.1-swoole composer ci"
]
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Installer\\": "installer/"
}
},
"autoload-dev": {
"psr-4": {
"Test\\": "test/"
}
},
"require": {
"php": "^8.1",
"composer/composer": ">=2.5.5",
"hyperf/constants": "^3.0.18",
"hyperf/database": "^3.0.18",
"hyperf/db-connection": "^3.0.18",
"hyperf/di": "^3.0.18",
"hyperf/paginator": "^3.0.18",
"hyperf/session": "^3.0.18",
"hyperf/translation": "^3.0.18",
"hyperf/validation": "^3.0.18",
"singularity/hdk-core": "^0.2.17",
"symfony/polyfill-php81": "^1.27.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8.5",
"friendsofphp/php-cs-fixer": "^v3.16.0",
"hyperf/devtool": "^3.0.18",
"hyperf/testing": "^3.0.18",
"pestphp/pest": "^1.23",
"phpstan/phpstan": "^1.10.15",
"swoole/ide-helper": "^4.8.13"
},
"prefer-stable": true,
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"secure-http": false,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"scripts": {
"pre-install-cmd": "Installer\\Script::install",
"pre-update-cmd": "Installer\\Script::install",
"post-install-cmd": "cghooks add --ignore-lock",
"post-update-cmd": "cghooks update",
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-autoload-dump": [
"rm -rf runtime/container"
],
"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 $1",
"ci": [
"@analyse app/ test/",
"@cs-fix",
"@test",
"echo CI Success"
],
"start": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"php ./bin/hyperf.php start"
]
},
"repositories": {
"lux-map": {
"type": "composer",
"url": "https://satis.luxcreo.cn/"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.cloud.tencent.com/composer/"
}
},
"version": "0.2.5"
}