sigh-process

0.0.1 • Public • Published

sigh-process

build status

This plugin runs a process the first time it receives an event, on subsequent events it kills the running process and starts another. It delays the forwarding of events until the process has output at least one line to standard output.

Example

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

var process

module.exports = function(pipelines) {
  pipelines.run = [ process('node server.js') ]
}

This would run the process whenever a source file is compiled:

var glob, babel, write, process

module.exports = function(pipelines) {
  pipelines.build = [
    glob({ basePath: 'src' }, '**/*.js'),
    babel(),
    write('lib'),
    process('node lib/server.js'),
  ]
}

/sigh-process/

    Package Sidebar

    Install

    npm i sigh-process

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • jpike