gulp-babel-tasks

0.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-babel-tasks

Weekly Downloads

2

Version

0.0.6

License

ISC

Last publish

Collaborators

  • vjpr