gulp-recipe-babel

0.1.6 • Public • Published

gulp-recipe-babel Dependency Status

NPM

Recipe for babel files compilation and js transforms application.

Task

babel

Compile all babel files into temp folder.

watch:babel

deps: 'babel'

Watch for changes on all babel files and compile them.

Configuration

Recipe specific

config.babel

default: {}

Configure babel task. This object is directly passed into babel as options.

Sources

sources.babel

mandatory

Source files for babel compiler. Accepts *.babel and *.js.

example config:

sources.babel = ['app/components/**/*.js', 'app/*.js'];

Paths

paths.tmp

default: 'tmp/'

Default babel output path in development mode.

Tasks

tasks.babel

default: 'babel'

babel task name.

tasks.watchBabel

default: 'watch:babel'

watch:babel task name.

Api

Provided Hooks

pipes.devProcessJs*

type: sequence

Process js files, the babel compiler output.

Used Hooks

pipes.assetBabel

Provide compiled babel files into build as assets.

Package Sidebar

Install

npm i gulp-recipe-babel

Weekly Downloads

10

Version

0.1.6

License

ISC

Last publish

Collaborators

  • frizi