gulp-continuation
v1.1.2
Published
Gulp plugin for continuation.js: A compiler for JavaScript asynchronous Continuation-Passing Style transformation
Downloads
3
Maintainers
Readme
gulp-continuation
A compiler for JavaScript asynchronous Continuation-Passing Style transformation
Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-continuation
Usage
For using with browserify there is continuatify transformer.
It supports gulp-sourcemaps, so use it if you want source maps.
var gulp = require('gulp');
var continuation = require('gulp-continuation');
gulp.task('js', function () {
return gulp.src(['js/**/*.js'])
.pipe(continuation())
.pipe(gulp.dest('build'))
});
Options
You can pass all options available for continuation.js
Errors
gulp-continuation
emits an 'error' event if there is unparseable code in the passed file. message
property of 'error' contains description.