A flexible task management library supporting TypeScript, allowing for task buffering, scheduling, and execution with dependency management.
Go to file
2016-05-04 05:11:08 +02:00
dist update structure and deps 2016-05-04 04:28:50 +02:00
test update structure and deps 2016-05-04 04:28:50 +02:00
ts update README on how buffered Tasks work. 2016-05-04 05:11:08 +02:00
.gitignore update to current status 2016-05-04 02:49:43 +02:00
.npmignore update structure and deps 2016-05-04 04:28:50 +02:00
.travis.yml add travis 2016-02-18 22:26:18 +01:00
LICENSE Initial commit 2016-02-07 22:11:30 +01:00
npmts.json add travis 2016-02-18 22:26:18 +01:00
package.json 0.0.4 2016-05-04 04:29:35 +02:00
README.md update README on how buffered Tasks work. 2016-05-04 05:11:08 +02:00

taskbuffer

Flexible task organization for gulp.

Status

Coverage Status

Install

npm install taskbuffer --save

Concepts

Task

  • A Task in its most simple form is a function that is executed when the task runs.
  • A Task can have a preTask and an afterTask (those are run before or after the main function whenever the task is called)
  • A Task can be buffered. That means it can be called multiple times in a very short time. However execution happens in line: meaning execution of the task's main function is on halt until the previous task call has finished. You can set bufferMax number, which is the max number of buffered task calls. Any additional calls will then be truncated
  • Task.trigger() and Task.triggerBuffered() always return a Promise;
  • Task.triggered() is an ObservableStram that emits events every time a task is promised.
  • Task is compatible to gulp streams.

Taskchain

  • Multiple Tasks can be combined in a bigger task using a Taskchain. Taskchain extends Task.