Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lingon-livereload

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lingon-livereload

Livereload plugin for Lingon

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by1400%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 27 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc