This is an integration of gulp, browserify and watchify.
var browchify = require("gulp-browchify")
var gulp = require("gulp")
var reactify = require("reactify")
gulp.task("watch_multiple_js", function () {
return browchify.watch({
entries: "./js/*.js",
outDir: "./build/",
transform: reactify
})
})
gulp.task("watch_single_js", function () {
return browchify.watch({
entries: "./js/dummy.js",
outDir: "./build/single/",
transform: [reactify]
})
})
Glob to read
Build destination
List of all transform for browserify
Determine whether debug messages should be printed to console or not. Default value is true.
This function does not receive any parameters and will be called when a stream ends.