Wondering what’s next for npm?Check out our public roadmap! »

    gulp-merge

    0.1.1 • Public • Published

    gulp-merge v0.1.0 Build Status

    Merge multiple streams into one stream in order.

    Install

    Install with npm

    npm install --save-dev gulp-sequence
    

    Usage

    var gulp = require('gulp'),
      gulpMerge = require('gulp-merge'),
      concat = require('gulp-concat'),
      minifyHtml = require('gulp-minify-html'),
      ngtemplate = require('gulp-ngtemplate');
     
    gulp.task('app-js', function () {
      return gulpMerge(
          gulp.src('static/src/tpl/*.html')
            .pipe(minifyHtml({empty: true}))
            .pipe(ngtemplate({
              module: 'genTemplates',
              standalone: true
            })
          ), gulp.src([
            'static/src/js/app.js',
            'static/src/js/locale_zh-cn.js',
            'static/src/js/router.js',
            'static/src/js/tools.js',
            'static/src/js/services.js',
            'static/src/js/filters.js',
            'static/src/js/directives.js',
            'static/src/js/controllers.js'
          ])
        )
        .pipe(concat('app.js'))
        .pipe(gulp.dest('static/dist/js/'));
    });

    API

    var gulpMerge = require('gulp-merge');

    gulpMerge(stream1, stream2)

    return a duplex stream (outStream).

    outStream.add(stream1, stream2)

    return outStream(duplex stream).

    License

    MIT © Teambition

    Install

    npm i gulp-merge

    DownloadsWeekly Downloads

    3,805

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • avatar