From 3c5b77dda68973e2fac9ce4c32a8cf8803129d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Fri, 7 Apr 2023 16:15:33 +0800 Subject: [PATCH] =?UTF-8?q?build(composer):=20=E9=99=90=E5=88=B6=20flysyst?= =?UTF-8?q?em-oss=20=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 68c36c0..11e6d55 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "hyperf/snowflake": "~2.2.0", "hyperf/validation": "~2.2.0", "nette/php-generator": "^3.4", - "xxtime/flysystem-aliyun-oss": "^1.5", + "xxtime/flysystem-aliyun-oss": "~1.5", "yadakhov/insert-on-duplicate-key": "^1.2", "zoujingli/ip2region": "^1.0" }, @@ -104,5 +104,27 @@ "prefer-stable": true, "config": { "sort-packages": true + }, + "scripts": { + "post-root-package-install": [], + "test": "vendor/bin/pest $1", + "cs-fix": "vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes", + "analyse": "vendor/bin/phpstan analyse $1", + "ci": [ + "@analyse publish/ src/ tests/", + "@cs-fix", + "@test --ci", + "echo CI Success" + ] + }, + "repositories": { + "lux-map": { + "type": "composer", + "url": "https://satis.luxcreo.cn/" + }, + "packagist": { + "type": "composer", + "url": "https://mirrors.cloud.tencent.com/composer/" + } } }