From da79d1b45bc474cb3fd574efdd17784098a823ba Mon Sep 17 00:00:00 2001 From: Deeka Wong <8337659+huangdijia@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:43:02 +0800 Subject: [PATCH] Adds `composer run dev` support --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index 50847dc3..c3c6fb90 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "friendsofphp/php-cs-fixer": "^3.0", "hyperf/devtool": "~3.1.0", "hyperf/testing": "~3.1.0", + "hyperf/watcher": "~3.1.0", "mockery/mockery": "^1.0", "phpstan/phpstan": "^1.0", "swoole/ide-helper": "^5.0" @@ -72,6 +73,10 @@ "test": "co-phpunit --prepend test/bootstrap.php --colors=always", "cs-fix": "php-cs-fixer fix $1", "analyse": "phpstan analyse --memory-limit 300M", + "dev": [ + "Composer\\Config::disableProcessTimeout", + "php ./bin/hyperf.php server:watch" + ], "start": [ "Composer\\Config::disableProcessTimeout", "php ./bin/hyperf.php start"