saito

task dependency specifier

Saito

Declarative task dependencies

npm install saito
var env = require('saito')(() => ({
    '%.upper': this.dep('%.lower', (str) => str.toUpperCase()),
    'hello.lower': () => 'hello'
}))
 
env.task('hello.upper') //⇒ HELLO 

Saito builds a DAG of task dependencies, toposorts them and runs tasks in order. % wildcard dependencies are filled in with concrete values using file stems.

MIT. © 2014 Matt Brennan