@jamen/reload-server

2.0.0 • Public • Published

reload-server

Dev server that reloads from streamed events.

example

Install

$ npm i -D @jamen/reload-server

Usage

reload-server [entry]

Start a static server at entry (defaults to cwd).

$ reloader | reload-server [entry]

The reloader is any command which streams newline-delimited events. Like @jamen/watch-exec:

$ watch-exec --watch "src/*.*" "make" | reload-server srv

The server can be configured through the environment variables:

  • RELOAD_ADDRESS
  • RELOAD_PORT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    12
    • latest

Version History

Package Sidebar

Install

npm i @jamen/reload-server

Weekly Downloads

17

Version

2.0.0

License

MIT

Last publish

Collaborators

  • jamen