Make-style declarative task dependencies
npm install saito
var task = require('saito')(function () {
return {
'%.upper': this.dep('%.lower', (str) => str.toUpperCase()),
'hello.lower': () => 'hello'
}
}))
task('hello.upper').apply(x => {
console.log(x); //⇒ HELLO
});
%
wildcard dependencies are filled in with concrete values using file stems.
MIT. © 2015 Matt Brennan