army8735 / gulp-jsdc

gulp plugin for es6 to es5

Home Page:https://github.com/army8735/jsdc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-jsdc

compiler es6 to es5 by jsdc

https://github.com/army8735/jsdc

NPM version Build Status Coverage Status Dependency Status

Usage

var gJsdc = require('gulp-jsdc');

gulp.task('jsdc', function() {
  gulp.src('**/*.js')
    .pipe(gJsdc())
    .pipe(gulp.dest('dist'))
});

Options

var gJsdc = require('gulp-jsdc');

gulp.task('jsdc', function() {
  gulp.src('**/*.js')
    .pipe(gJsdc({
      define: true
    }))
    .pipe(gulp.dest('dist'))
});

It will wrap define for CommonJS module when config define: true

About

gulp plugin for es6 to es5

https://github.com/army8735/jsdc


Languages

Language:JavaScript 90.0%Language:Makefile 10.0%