webtasker
v0.2.3
Published
An integrated webpack task manager by @AngularClass
Downloads
4
Readme
Webtasker
An integrated webpack task manager by @AngularClass
const { task, series, parallel, shell } = require('webtasker');
task('task1', function(cb) {
// do things
cb(); // when everything is done
});
task('task2', function() {
return new Promise(function(resolve, reject){
// do things
resolve(); // when everything is done
});
});
task('build', function() {
// todo Webpack stuff
});
task('clean', function() {
shell.rm('-rf', 'dist');
shell.cp('-R', 'src/', 'dist');
});
task('combined', series('task1', 'task2'));
task('all', parallel('clean', 'combined', 'build'));
Thanks
enjoy — AngularClass
AngularClass
Learn AngularJS, Angular 2, and Modern Web Development from the best. Looking for corporate Angular training, want to host us, or Angular consulting? [email protected]