# fastboot-watch-notifier

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

Latest version **3.0.0** (published 2016-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastboot-watch-notifier
pnpm add fastboot-watch-notifier
yarn add fastboot-watch-notifier
bun add fastboot-watch-notifier
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2016-10-19 |
| First published | 2016-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Patrick Fisher |
| Maintainers | pwfisher |
| Keywords | ember, fastboot, server, notifier, watch |

## Links

- npm: https://www.npmjs.com/package/fastboot-watch-notifier
- Repository: https://github.com/pwfisher/fastboot-watch-notifier
- Homepage: https://github.com/pwfisher/fastboot-watch-notifier#readme
- Issues: https://github.com/pwfisher/fastboot-watch-notifier/issues
- npm.io page: https://npm.io/package/fastboot-watch-notifier

## Dependencies (3)

- [rsvp](https://npm.io/package/rsvp.md) ^3.0.16
- [sane](https://npm.io/package/sane.md) 1.4.0
- [debounce](https://npm.io/package/debounce.md) 1.0.0

## Recent versions

- 3.0.0 (latest) — 2016-10-19
- 2.1.0 — 2016-08-05
- 2.0.0 — 2016-08-03
- 1.0.0 — 2016-07-06

## README

# fastboot-watch-notifier
__fastboot-watch-notifier__ is an Ember [fastboot-app-server](https://github.com/ember-fastboot/fastboot-app-server) notifier which restarts the server on watched file changes. It supports polling.

This package uses [sane](https://github.com/amasad/sane) and exposes its options in order to support polling. Why? Because [1](https://stefanwrobel.com/how-to-make-vagrant-performance-not-suck)) Vagrant volumes need to use NFS for performance and [2](http://stackoverflow.com/questions/4231243/inotify-with-nfs)) NFS does not support change events.

# Usage
```javascript
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](https://github.com/amasad/sane) for available `saneOptions`.
Inspired by [fastboot-fs-notifier](https://github.com/iheanyi/fastboot-fs-notifier).

Don't feel like adding this dependency? Do it yourself like [this gist](https://gist.github.com/pwfisher/6a6a0e0de62649e06141e37749f23fcf).

---
_Source: https://npm.io/package/fastboot-watch-notifier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
