gulp-browchify

1.0.6 • Public • Published

gulp-browchify

This is an integration of gulp, browserify and watchify.

Example

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]
    })
})

Documentation

browchify.watch(opts={})

opts.entries

Type: string

Glob to read

opts.outDir

Type: String

Build destination

opts.transform

Type: String or Array

List of all transform for browserify

opts.debug

Type: boolean

Determine whether debug messages should be printed to console or not. Default value is true.

opts.end

Type: function

This function does not receive any parameters and will be called when a stream ends.

Dependencies (8)

Dev Dependencies (2)

Package Sidebar

Install

npm i gulp-browchify

Weekly Downloads

0

Version

1.0.6

License

Apache2 License 2.0

Last publish

Collaborators

  • code-fury