sigh-process
v0.0.1
Published
sigh plugin for running processes.
Downloads
5
Maintainers
Readme
sigh-process
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'),
]
}