gulp-run-promise

0.0.1 • Public • Published

gulp-run-promise

Very much a WIP. Run a gulp task programatically with oh-so-lovely promises 🍭

Why ?

Cause gulp.start is undocumented and there is no easy alternative to start tasks and do something else after its done. Works with gulp 3 and will be updated when gulp 4 is released.

Usage

const gulp = require('gulp')
const runTask = require('gulp-run-promise')(gulp)
 
runTask('some-random-task').then(() => {
  // Do something else
}).catch(() => {
  console.error('Error');
})

Note

If you just wanna run your gulp tasks sequentially or just control the order of execution you should not use this and check out the excellent run-sequence instead.

/gulp-run-promise/

    Package Sidebar

    Install

    npm i gulp-run-promise

    Weekly Downloads

    3

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • harrisjose