lively-reload

0.0.1 • Public • Published

lively

a livereload server for any folder

lively watches a folder for changes and reloads the browser if it detects any.

Uses livereload, harmon.

features:

  • watches a folder for changes
  • appends a livereload javascript to the head of response generated by the endpoint
  • can watch a folder and reload the endpoint automatically

Install

$ npm install -g lively-reload

Usage:

lively [options]

Options:

-h, --help                 output usage information
-V, --version              output the version number
-p, --port <n>             The port to which the server should listen to. Default: 3000
-w, --watch [folder path]  The folder to watch for changes. Defaults to current directory
-e, --endpoint [url]       The endpoint/server to redirect requests to. Default: http://localhost/endpoint

Example

  • If you are running a php project at http://localhost/php (endpoint) situated at /var/www/php (path) then I can use lively to watch for changes to path:
  •  $ lively -p 8080 -w /var/www/php -e http://localhost/php
  • Now visit http://localhost:8080 to visit the livereload-able version of your php app!

Package Sidebar

Install

npm i lively-reload

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • vijayant123