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

lingon-livereload

Package Overview
Dependencies
Maintainers
1
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

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-84.21%
Maintainers
1
Weekly downloads
 
Created
Source

Lingon Livereload

Build Status Dependency Status

This is a livereload plugin for lingon. Based on node-livereload.

Installation

Install with npm

npm install lingon-livereload

Usage

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

#!/usr/bin/env node

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

livereload(lingon);

lingon.sourcePath = 'source';
lingon.buildPath = 'build';

Also put the livereload script into you index.html:

<body>
    ...
    <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js"></' + 'script>')</script>
</body>

This step will soon be automated and not needed to to manually.

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']
});

Roadmap

  • Automatically inject the livereload browser script in index.html
  • Automatically add available file extensions from the source folder for livereload to watch
  • 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 17 Apr 2014

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