Skip to content

Ember fastboot-app-server notifier which restarts server on watched file changes.

Notifications You must be signed in to change notification settings

pwfisher/fastboot-watch-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fastboot-watch-notifier

fastboot-watch-notifier is an Ember fastboot-app-server notifier which restarts the server on watched file changes. It supports polling.

This package uses sane and exposes its options in order to support polling. Why? Because 1) Vagrant volumes need to use NFS for performance and 2) NFS does not support change events.

Usage

const FastBootAppServer = require('fastboot-app-server');
const FastBootWatchNotifier = require('fastboot-watch-notifier');

const distPath = '/app/dist';
const debounceDelay = 250;

const notifier = new FastBootWatchNotifier({
  debounceDelay,
  distPath,
  saneOptions: {
    poll: true,
  },
});

const server = new FastBootAppServer({
  distPath,
  notifier,
});

server.start();

See sane for available saneOptions. Inspired by fastboot-fs-notifier.

Don't feel like adding this dependency? Do it yourself like this gist.

About

Ember fastboot-app-server notifier which restarts server on watched file changes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published