sigh-livereload

0.0.2 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i sigh-livereload

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jpike