1.1.0 • Published 8 years ago

lingon-livereload v1.1.0

Weekly downloads
3
License
-
Repository
github
Last release
8 years ago

Lingon Livereload

Build Status Dependency Status npm

This enables livereload for lingon. Based on node-livereload.

Installation

Install with npm

$ npm install lingon-livereload --save-dev

Usage

Just include the module from your lingon.js file and pass the lingon object to it. A basic setup could look like this:

// lingon.js

#!/usr/bin/env node

var lingon = require('lingon'),
    livereload = require('lingon-livereload');

livereload(lingon);

The <script> tag that communicates with the livereload server will be automatically injected before the closing </body> tag in your index.html file.

Configuration

A config object can be passed as a second parameter, taking the same options as node-livereload does. Like so:

livereload(lingon, {
  exts: ['scss', 'coffee']
});

Development

Gulp for building, linting and testing etc.

(optionally) Use autoversion gem to update semver version number.

$ autoversion patch # 1.0.0 -> 1.0.1
$ autoversion minor # 1.0.0 -> 1.1.0
$ autoversion major # 1.0.0 -> 2.0.0

Roadmap

  • Automatically inject the livereload browser script in index.html
  • Automatically add available file extensions from the source folder for livereload to watch for changes.
  • Enable css to be injected live. The current integration doesn't support it.

License

Licensed under the MIT license.

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.3.10

9 years ago

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.4

9 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago