lingon-livereload
v1.1.0
Published
Livereload plugin for Lingon
Downloads
36
Readme
Lingon Livereload
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.