gulp-babelator
v0.0.7
Published
A collection of default convention-based common tasks for modules using Babel.
Downloads
4
Readme
gulp-babel-tasks
A collection of default convention-based common tasks for modules using Babel.
Install
npm i -D gulp-babel-tasks gulp
Usage
Add the following to your gulpfile.js
:
var gulp = require('gulp')
require('gulp-babel-tasks')(gulp)
Or the following which will automatically add the tasks...
var gulp = require('gulp')
var $ = require('gulp-load-plugins')()
$.babelTasks(gulp)
Tasks
gulp build
- Cleans dist, then compiles src
-> dist
. Suitable as npm prepublish
script in package.json
.
gulp watch
- Watches for changes. Compiles src
-> dist
on file change. Only compiles changed files. Cleans on first run.
gulp test
- Runs tests.
gulp test-transpiled
- Runs transpiled tests. Faster.
gulp test-watch
- Watches for changes, and compiles + runs transpiled tests.
gulp bootstrap
- Boostraps a module. Modifies package.json, etc. Prompts for any file being overwritten.