How to use the merge-stream.pipe function in merge-stream

To help you get started, we’ve selected a few merge-stream examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github StartPolymer / polymer-starter-kit-old / gulp / tasks / copy.js View on Github external
module.exports = function (gulp, plugins, config) { return function () {
  // Root dir '.tmp' is for any template engine, 'app' is for disabled it
  var rootDir = 'app';

  return require('merge-stream')(
    gulp.src([
        'app/*',
        '!app/test',
        '!app/*.jade'
      ], {
        dot: true
      }).pipe(gulp.dest('dist')),

    gulp.src([
      'bower_components/**/*.{css,html,js}',
      '!bower_components/**/{demo,index,metadata}.html'
      ])
      .pipe(gulp.dest('dist/bower_components')),

    gulp.src([
      rootDir + '/elements/**/*.{html,js}',
github nyaxt / otaru / webui / gulp / tasks / copy.js View on Github external
module.exports = function (gulp, plugins, config) { return function () {
  // Root dir '.tmp' is for any template engine, 'app' is for disabled it
  var rootDir = 'app';

  return require('merge-stream')(
    gulp.src([
        'app/*',
        '!app/test',
        '!app/*.jade'
      ], {
        dot: true
      }).pipe(gulp.dest('dist')),

    gulp.src([
      'bower_components/**/*.{css,html,js}',
      '!bower_components/**/{demo,index,metadata}.html'
      ])
      .pipe(gulp.dest('dist/bower_components')),

    gulp.src([
      rootDir + '/elements/**/*.{html,js}',
github nyaxt / otaru / webui / gulp / tasks / babel.js View on Github external
module.exports = function (gulp, plugins, config) { return function () {
  return require('merge-stream')(
    gulp.src('app/scripts/**/*.js')
      .pipe(plugins.babel())
      .pipe(gulp.dest('dist/scripts'))
  ).pipe(plugins.size({title: 'babel'}));
};};

merge-stream

Create a stream that emits events from multiple other streams

MIT
Latest version published 5 years ago

Package Health Score

71 / 100
Full package analysis

Similar packages