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"