asunder.js
A transform to build javascript files in the browser extending all dependencies in other file.
Inspired on browserify but with all style of Gulp.
const gulp = require("gulp")
const asunder = require("asunder.js").asunder
gulp.task("script", () =>
gulp.src("src/scripts/**/*.js")
.pipe(asunder({
modules: [
"react",
"react-render",
"debug",
"lodash",
"jquery"
],
}))
.pipe(gulp.dest("www"))
)
// Output files
// www/app.js
// www/app.requeriments.js