承接 iqomp/watcher 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iqomp/watcher

最新稳定版本:1.1.3

Composer 安装命令:

composer require iqomp/watcher

包简介

A composer plugin to run cli script when it detect some file changes

README 文档

README

A composer plugin to run cli script when it detect some file changes on working directory. This plugin really help on developing some application with self server like swoole where you need to restart the server on every file update.

Installation

composer require iqomp/watcher --dev

Usage

This module add new composer command named watch that will watch for file changes on current directory recursively, and run the provided argument as a script.

composer watch "php index.php start" --ignore="runtime" --ignore="cache"

Above script will run php index.php start on the first run, and watch for file changes in current directory while ignoring directory runtime and cache relative to current directory. When file changes found, the previous script process get killed and new process is executed.

统计信息

  • 总下载量: 3.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-14