Skip to content

Instantly share code, notes, and snippets.

@danielyogel
Created September 16, 2014 19:43
Show Gist options
  • Save danielyogel/a9d1756aae24549ebf58 to your computer and use it in GitHub Desktop.
Save danielyogel/a9d1756aae24549ebf58 to your computer and use it in GitHub Desktop.
promise streams
function traceurPromise() {
console.log('STARTING TRACEUR ');
return new Promise(function (resolve, reject) {
gulp.src(es6files)
.pipe(traceur(traceurOpts))
.pipe(gulp.dest(distDirectory))
.on('end', function () {
console.log('ENDED TRACEUR ');
resolve();
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment