node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

gulp-reduce

gulp-reduce NPM version

Build Status Coverage Status Dependency Status devDependency Status

WIP!

Heavily inspired by grunt-reduce. Thanks a lot to @Munter, as most of the code here is just basically based on his code.

concatinates,

Usage

First, install gulp-reduce as a development dependency:

npm install --save-dev gulp-reduce

Then, add it to your gulpfile.js:

var gulp = require('gulp');
var reduce = require('gulp-reduce');
 
gulp.task('build', function () {
    gulp.src([
        'src/*.html',
        'src/*.htaccess',
        'src/*.txt',
        'src/*.ico'
    ])
        .pipe(reduce({
            root: 'src',
            outRoot: 'dist'
        }));
});

Options reduce(options)

options.root

Type: String Default: app

Root path of your app.

options.outRoot

Type: String Default: app

Destination path (where all files will be put).

License

MIT License © Martin Broder