lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 74 forks source link

****note to self**** #203

Closed lukeed closed 7 years ago

lukeed commented 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

Includes

jorgebucaran commented 7 years ago

Interesting.

hzlmn commented 7 years ago

Drop 0.12 support, require 4.x Rewrite with supported ES2015 features

:+1: Sounds good