jackrobertscott / solis-151011

Task running utilities for website development
0 stars 0 forks source link

sip._auto() callback called when returned stream ends #1

Closed jackrobertscott closed 9 years ago

jackrobertscott commented 9 years ago

Like gulp, allow streams to be returned so that the it is unnecessary to call the actual callback function.

tree[name] = (this.tasks[name].deps || []).concat([function(cb, res) {
    // TODO check emit 'end' event for cb
    // 'res' contains the callback results from dependent functions
    this.tasks[name].fn(cb, opts, res);
  }.bind(this)]);

To do: