0.0.8 • Published 10 years ago
gulp-blueprint-babel v0.0.8
gulp-blueprint-babel
Installation
$ npm install --save-dev gulp-blueprint-babelDescription
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 optionsOptions
You can pass an options object.
gulp(object, default:require('gulp')): Provide a custom gulp instancetask(string, default:'js'): The gulp task namedependencies(string|array, default:['clean']): The gulp task dependenciesbasedir(string, default:'app/client'): Base directory of the input fileinput(string|array, default:'app.js'): JS input filebrowserify(object, default:{ debug: true, baseDir: 'app/client' }): Options for browserifyoutput(string, default:'app.min.js'): Output file namedest(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