pull-task
v0.0.0
Published
A task system for pull-streams
Downloads
2
Readme
pull-task
A task system for pull-streams
Installation
$ npm install --save pull-task
Usage
task(name, [deps], [stream])
Create a task that runs the stream after running any tasks it depends on.
name
(String
): Name of the task.deps
(Array
): Tasks to execute before.stream
(Array
): A pull-stream chain associated with the task.
// Normal task:
task('foo', [
vinyl.read('./**/*.js'),
// ...
vinyl.write('out')
])
// Task with dependencies:
task('bar', ['foo'], [
// ...
])
// A wrapping task:
task('qux', ['foo', 'bar'])
task.run(name, [done])
Run a task and any dependency tasks it has.
name
(String
): A name (or array of names) of the task to run.done
(Function
): A completion callback. Receives(err, task || tasks)
License
MIT © Jamen Marz