gulp-blueprint-babel

0.0.8 • Public • Published

gulp-blueprint-babel

npm Travis Code Climate Code Climate npm npm

David David

Installation

$ npm install --save-dev gulp-blueprint-babel

Description

This package can be used to setup a Gulp task to compile, annotate and minify ES6 to ES5 using Browserify and Babel.

Using:

Usage

gulpfile.js

var babel = require('gulp-blueprint-babel');
 
babel(); // gulp task registered with default options

Options

You can pass an options object.

  • gulp (object, default: require('gulp')): Provide a custom gulp instance
  • task (string, default: 'js'): The gulp task name
  • dependencies (string|array, default: ['clean']): The gulp task dependencies
  • basedir (string, default: 'app/client'): Base directory of the input file
  • input (string|array, default: 'app.js'): JS input file
  • browserify (object, default: { debug: true, baseDir: 'app/client' }): Options for browserify
  • output (string, default: 'app.min.js'): Output file name
  • dest (string, default: 'public'): Destination of the compiled, annotated and minified JavaScript bundle

You should at least specify: basedir, input, output and dest if you do not want to rely on default options.

Test

$ npm install -g mocha  
$ mocha

Author

marc1404

License

MIT

Package Sidebar

Install

npm i gulp-blueprint-babel

Weekly Downloads

1

Version

0.0.8

License

MIT

Last publish

Collaborators

  • marc1404