egg-watcher-vagrant

1.0.1 • Public • Published

egg-watcher-vagrant

File watcher plugin for egg watcher when in network file systems or other virtualization software

NPM version build status Test coverage David deps Known Vulnerabilities npm download

中文文档

if you use some network file systems or other virtualization software, an use default watcher can't detected file change. you can use this plugin;

Usage

install

npm install --save egg-watcher-vagrant

enable it in config

in ${app_root}/config/plugin.js file, add the following config

module.exports = {
  'watcher-vagrant': {
    enable: true,
    package: 'egg-watcher-vagrant',
  }
};

if you just want use it in local evniroment, you just add this config to ${app_root}/config/plugin.local.js file

Options

This plugin used chokidar and you can pass chokidar options as following, this plugin default open the usePolling and alwaysStat options.

module.exports = {
  'watcher-vagrant': {
    enable: true,
    package: 'egg-watcher-vagrant',
    vagrant: {
      usePolling: true,
      alwaysStat: true,
    },
  },
};

License

MIT

Package Sidebar

Install

npm i egg-watcher-vagrant

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • alphatr