gulp-unify

1.1.2 • Public • Published

Why?

Bundle files together, sorted by dependencies, excluding node_modules. Browserify is made to bundle codes for browser usage. What if we just want to bundle code for usage in node.js?

Installation

npm install --save-dev gulp-unify

Usage

var gulp = require('gulp'),
    bundler = require('gulp-unify');
 
gulp.task('bundle', function() {
  return gulp.src(['./codes/*.js', './api/*.js'])
    .pipe(bundler('bundle.js'))
    .pipe(gulp.dest('./dist/'));
});

Options

var gulp = require('gulp'),
    bundler = require('gulp-unify');
 
gulp.task('bundle', function() {
  return gulp.src(['./codes/*.js', './api/*.js'])
    .pipe(bundler('bundle.js', {
        ignore: ['ignore.js'] //ignore file with name
    }))
    .pipe(gulp.dest('./dist/'));
});

Todo

  • Add more fine grained options
  • Ignore options should handle glob pattern

Package Sidebar

Install

npm i gulp-unify

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

7.11 kB

Total Files

3

Last publish

Collaborators

  • neel2292