gulp-recipe-babel
v0.1.6
Published
Receipe for babel files compilation and watching
Downloads
11
Readme
gulp-recipe-babel
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.