gulp-natron

0.2.0-beta.3 • Public • Published

Natron

Use Natron in your Gulpfile

Version Downloads Readme

Gitter Chat

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");
});

/gulp-natron/

    Package Sidebar

    Install

    npm i gulp-natron

    Weekly Downloads

    0

    Version

    0.2.0-beta.3

    License

    MIT

    Last publish

    Collaborators

    • natron
    • stefanr