gulp-natron
v0.2.0-beta.3
Published
Use Natron in your Gulpfile
Downloads
2
Readme
Use Natron in your Gulpfile
This module is part of Natron and contains several utilities for using Natron
in your Gulpfile
.
Documentation
See the documentation for gulp-natron.
Usage
import gulp from "gulp";
import {gulpTask, defer} from "gulp-natron";
function greet(name) {
let d = defer();
console.log(`Hello ${name}.`);
setTimeout(() => {
d.resolve("Thanks for waiting. Goodbye.");
}, 1000);
return d.promise;
}
function message(msg) {
console.log(msg);
}
let greetTask = gulpTask([greet, message], {
options: {pipe: true},
});
gulp.task("greet", () => {
return greetTask("World");
});