pull-task

0.0.0 • Public • Published

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


version travis downloads license support me follow

Readme

Keywords

Package Sidebar

Install

npm i pull-task

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • npm