node package manager

sigh-livereload

sigh plugin for livereload.

sigh-livereload

build status

Livereload server.

Example

npm install --save sigh-livereload then add something like this to your sigh.js:

var livereload, glob, write, sass
 
module.exports = function(pipelines) {
  pipelines['build:source'] = [
    var globOpts = { basePath: 'src' }
 
    merge(
      [ glob(globOpts, '**/*.js'), babel() ]
      [ glob(globOpts, '**/*.scss') sass() ]
    )
    write('build/assets'),
    livereload(),
  ]
}

Now whenever the write operation passes on written files, if they are css files the livereload server will update your page, if they are .js files the page will reload.

TODO

  • Write tests.
  • Options for altering file paths, e.g. stripping/adding directories from/to path.