gulp-recipe-js
v0.1.4
Published
Recipe handling hooks for js processing in development
Downloads
12
Maintainers
Readme
gulp-recipe-js
Js transforming hook provider.
Provides hook for js processing and watcher firing only on changed files in development environment. Includes source maps as data urls into compiled files. Works well with recipes like gulp-recipe-traceur.
Tasks
js
Runs all hooked actions on all js files and saves them to configured temp directory.
watch:js
Starts Watching all js files and runs hooked actions only on changed files.
Configuration
Sources
sources.js
mandatory
Raw js files to be compiled by all js transformers.
example config:
sources.js = ['app/components/**/*.js', 'app/*.js'];
Paths
paths.tmp
default: 'tmp/'
Compiled js output directory.
Tasks
tasks.js
default: 'js'
js task name.
tasks.watchjs
default: 'watch:js'
watch:js task name.
Api
Provided Hooks
pipes.devProcessjs*
type: sequential
Sequential tasks for js processing.
Used Hooks
watch
Exports watch:js task to watch combiner.