gulp-browser-basedir
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

gulp-browser

browserify and other goodies for gulp

Status

build status Dependency Status bitHound Dependencies bitHound Code codecov.io

Usage

gulp-browser is meant to be easy:

Browserify:

    let gulp = require("gulp");
    let gulpBrowser = require("gulp-browser");
    
    let transforms = [
        {
            transform: "babelify",
            options: {presets: ["es2015"]}
        }
    ];
    
    gulp.task('gulpBrowserTest',function() {
        var stream = gulp.src('./test/*.js')
            .pipe(gulpBrowser.browserify(transforms)) // gulp.browserify() accepts an optional array of tansforms
            .pipe(gulp.dest("./test/browserifiedJS/"));
        return stream;
    });

Note: Be aware of how gulp.src creates values of file.base and file.path since that is important to the require statements.

Dev Information:

devDependency Status bitHound Dev Dependencies

Extending this module

If you have ideas for other great browser related gulp pipe stops, feel free to raise an issue on GitHub.

Contributors

About the maintainer:

Project Phase

PayPal

Readme

Keywords

Package Sidebar

Install

npm i gulp-browser-basedir

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • alex2401