build(composer): 更新配置

This commit is contained in:
李东云
2021-11-30 13:20:54 +08:00
parent 30de62841b
commit 48e5b852b3
13 changed files with 57 additions and 19 deletions

0
Dockerfile Normal file
View File

24
composer.json Normal file → Executable file
View File

@@ -14,9 +14,31 @@
}
},
"require": {
"php": "^8.0"
"php": "^8.0",
"composer/composer": "~2.0.14"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"extra": [],
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"test": "vendor/bin/phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always",
"cs-fix": "php-cs-fixer fix $1",
"analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config"
},
"repositories": {
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer"
}
}
}

0
composer.lock generated Normal file → Executable file
View File

0
scripts/container/git-config.sh Normal file → Executable file
View File

0
scripts/container/list_dir.sh Normal file → Executable file
View File

0
scripts/container/ssh-key-permission.sh Normal file → Executable file
View File

0
scripts/unix/build-image.sh Normal file → Executable file
View File

0
scripts/unix/docker-env.sh Normal file → Executable file
View File

0
scripts/win/build-images.bat Normal file → Executable file
View File

0
scripts/win/docker-env.bat Normal file → Executable file
View File

0
scripts/win/prettier.bat Normal file → Executable file
View File

0
scripts/win/readme.md Normal file → Executable file
View File

16
tests/bootstrap.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
error_reporting(E_ALL);
date_default_timezone_set('Asia/Shanghai');