gulp-sweetjs

Transpile Sweet.js macros

npm install gulp-sweetjs
1 downloads in the last day
3 downloads in the last week
21 downloads in the last month

gulp-sweetjs Build Status

Transpile Sweet.js macros

Issues with the output should be reported on the Sweet.js issue tracker.

Install

Install with npm

npm install --save-dev gulp-sweetjs

Example

var gulp = require('gulp');
var sweetjs = require('gulp-sweetjs');

gulp.task('default', function () {
    gulp.src('src/app.js')
        .pipe(sweetjs({modules: ['module-name']}))
        .pipe(gulp.dest('dist'));
});

API

sweetjs(options)

options

sourceMap

Type: Boolean
Default: false

Enable Source Map.

modules

Type: Array
Default: []

A list of macros you want to use.

Use the same syntax as you would in require():

  • npm module: 'module-name'
  • local file: './file-name'

License

MIT © Sindre Sorhus

npm loves you