Closed lukeed closed 7 years ago
exports.default = function * () { yield this.watch('src/**/*.js', 'scripts'); } exports.build = function * () { yield this.parallel(['task1', 'task2', 'task3']); yield this.log('this does not exec until parallel seq complete.'); yield this.serial(['task4', 'task5', 'task6']); } exports.lint = function * (src) { yield this.source(src || 'src/js/*.js').lint().target('dist/js'); } exports.scripts = function * (src) { src = src || 'src/js/*.js'; yield this.start('lint', src); // lint before build yield this.source(src).concat('bundle.js').target('dist/js'); }
fly.log // base text logger fly.warn fly.error fly.info fly.emit // base event emitter fly.clear fly.concat fly.filter // remove ? fly.plugin // new; create plugins fly.start // base executor (current 'exec*') fly.watch fly.serial // new; resolve tasks ('start') sequentially fly.parallel // new; resolve all tasks ('start') via Promise.all fly.target fly.source fly.unwrap
0.12
4.x
Interesting.
Drop 0.12 support, require 4.x Rewrite with supported ES2015 features
:+1: Sounds good
Includes
170
177
Maybe
0.12
support, require4.x