https://github.com/alhimik45/gulp-continuation
Gulp plugin for Continuation.js
https://github.com/alhimik45/gulp-continuation
continuation gulp-plugin javascript transformer
Last synced: 3 months ago
JSON representation
Gulp plugin for Continuation.js
- Host: GitHub
- URL: https://github.com/alhimik45/gulp-continuation
- Owner: alhimik45
- License: mit
- Created: 2016-08-20T08:44:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T12:08:04.000Z (over 6 years ago)
- Last Synced: 2025-02-06T21:05:20.240Z (4 months ago)
- Topics: continuation, gulp-plugin, javascript, transformer
- Language: JavaScript
- Homepage: https://github.com/BYVoid/continuation/
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
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](https://github.com/alhimik45/continuatify) transformer.
It supports [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps), so use it if you want source maps.
```javascript
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](https://github.com/BYVoid/continuation/)
## Errors
`gulp-continuation` emits an 'error' event if there is unparseable code in the passed file. `message` property of 'error' contains description.