Files
hdk-skeleton/composer.json
2023-10-13 08:25:49 +00:00

122 lines
3.1 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.2-swoole composer ci"
]
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Installer\\": "installer/"
}
},
"autoload-dev": {
"psr-4": {
"Test\\": "tests/"
}
},
"require": {
"php": "^8.2",
"composer/composer": ">=2.6.4",
"hyperf/constants": "~3.0.37",
"hyperf/db-connection": "~3.0.37",
"hyperf/di": "~3.0.37",
"hyperf/paginator": "~3.0.37",
"hyperf/session": "~3.0.37",
"hyperf/translation": "~3.0.37",
"hyperf/validation": "~3.0.37",
"singularity/hdk-core": "^1.0.0",
"symfony/polyfill-php81": "^1.28.0",
"symfony/polyfill-php82": "^1.28.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8.5",
"cooper/hyperf-pest": "^1.1.0",
"daodao97/hyperf-watch": "dev-master",
"friendsofphp/php-cs-fixer": "^3.35.1",
"hyperf/devtool": "~3.0.37",
"hyperf/testing": "~3.0.38",
"mockery/mockery": "^1.6.6",
"phpstan/phpstan": "^1.10.37",
"roave/security-advisories": "dev-latest",
"swoole/ide-helper": "^5.0.3"
},
"prefer-stable": true,
"minimum-stability": "dev",
"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",
"APP_STATUS=false 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 app/ config/ tests/",
"@cs-fix",
"@test",
"echo CI Success"
],
"start": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"php ./bin/hyperf.php start"
],
"watch": [
"rm -fr runtime/*",
"Composer\\Config::disableProcessTimeout",
"./vendor/bin/watch"
]
},
"repositories": {
"lux-map": {
"type": "composer",
"url": "https://satis.luxcreo.cn/"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer/"
}
},
"version": "1.0.0-alpha.2"
}