0.0.6 • Published 9 years ago

gulp-babel-tasks v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

gulp-babel-tasks

A collection of default convention-based common tasks for modules using Babel.

NPM Version Linux Build Test Coverage

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.

License

MIT