4.0.2 • Published 2 years ago

livery v4.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

livery ⟳

NPM version Downloads

Minimal development server to watch and dispense static files.

Install

Install the LiveReload browser extensions.

$ npm install --global livery

Usage

Usage: livery [<options>] [--] [<dir>]
       lr [<options>] [--] [<dir>]

Options:
  -d, --delay    Debounce delay for reloads. (default: 250)
  -h, --help     Output usage information.
  -l, --live     LiveReload server port. (default: 35729)
  -p, --port     HTTP server port. (default: 3000)
  -s, --spa      Single-page app. If string, path to html. (default: false)
  -w, --watch    Glob or globs of files to watch. (default: '**/*.*')

Examples:
  $ lr
  $ lr -p 8080 public
  $ livery --watch 'src/**/*.*' --watch 'test/**/*.js' dist
  $ livery --spa -- static
  $ livery --spa app.html

API

livery([dir, [options]]): Object

  • dir {String} Directory of static files. (default: .)
  • options {Object}
    • delay {Number} Debounce delay for reloads. (default: 250)
    • httpPort {Number} HTTP server port. (default: 3000)
    • livePort {Number} LiveReload server port. (default: 35729)
    • spa {Boolean|String} Single-page app. If string, path to html. (default: false).
    • watch {String|Array} Glob or globs of files to watch. (default: **/*.*)

Starts an HTTP server, LiveReload server, and file watcher.

const livery = require('livery');
const { httpServer, liveServer, fileWatcher } = livery({
    delay: 250,
    httpPort: 3000,
    livePort: 35729,
    spa: false,
    watch: '**/*.*',
});

MIT © Shannon Moeller

4.0.1

3 years ago

4.0.2

2 years ago

4.0.0

4 years ago

3.3.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.1.0-1

4 years ago

3.1.0-0

4 years ago

3.0.0

4 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

1.3.0

6 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago