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 = gulp
Or the following which will automatically add the tasks...
var gulp = var $ = $
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.