How to use gulp-ignore - 10 common examples

To help you get started, we’ve selected a few gulp-ignore 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 gitbrent / PptxGenJS / gulpfile.js View on Github external
gulp.task('min', () => {
	return gulp
		.src(['./src/bld/pptxgen.gulp.js'])
		.pipe(concat('pptxgen.min.js'))
		.pipe(uglify())
		.pipe(insert.prepend('/* PptxGenJS ' + pkg.version + ' @ ' + new Date().toISOString() + ' */\n'))
		.pipe(source.init())
		.pipe(ignore.exclude(['**/*.map']))
		.pipe(source.write('./'))
		.pipe(gulp.dest('./dist/'))
})
github zurb / foundation-apps / parseSettings.js View on Github external
module.exports = function() {
  gulp.src(sassFiles)
    .pipe(parseSettings())
    // .pipe(order(fileOrder))
    .pipe(ignore.exclude(function(file) {
      return file.contents.length === 0;
    }))
    .pipe(concat('_settings.scss'))
    .pipe(map(function(contents, filename) {
      return titleText + '\n\n' + contents.toString();
    }))
    .pipe(gulp.dest('.'));
}
github romannurik / AndroidIconAnimator / gulpfile.js View on Github external
gulp.task('bower', function(cb) {
  return $.bower('.tmp/lib')
      .pipe(exclude('!**/*.{js,css,map}'))
      .pipe(exclude('**/test/**'))
      .pipe(exclude('**/tests/**'))
      .pipe(exclude('**/modules/**'))
      .pipe(exclude('**/demos/**'))
      .pipe(exclude('**/src/**'))
      .pipe(gulp.dest('dist/lib'));
});
github romannurik / SPANRotator / gulpfile.js View on Github external
gulp.task('bower', function() {
  return bower('.tmp/lib')
      .pipe(exclude('**/README.md'))
      .pipe(exclude('**/test/**'))
      .pipe(exclude('**/tests/**'))
      .pipe(exclude('**/demos/**'))
      .pipe(exclude('**/demo.html'))
      .pipe(exclude('**/bower.json'))
      .pipe(exclude('**/.bower.json'))
      .pipe(gulp.dest('dist/lib'));
});
github Mohammed9531 / angular-checkbox-tree-grid / gulpfile.js View on Github external
gulp.task('prettify', function() {
  gulp.src(patterns)
    .pipe(gulpIgnore.exclude(IgnoreSass))
    .pipe(prettify({
      indent_size: 2
    }))
    .pipe(gulp.dest(function(file) {
      return file.base;
    }));
});
github MarcScheib / aurelia-notify / build / tasks / build.js View on Github external
paths.ignore.forEach(function(filename) {
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }
github aurelia / binding / build / tasks / build.js View on Github external
paths.ignore.forEach(function(filename){
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }
github aurelia / loader-default / build / tasks / build.js View on Github external
paths.ignore.forEach(function(filename){
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }
github aurelia / validatejs / build / tasks / build.js View on Github external
paths.ignore.forEach(function(filename){
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }
github aurelia / templating-binding / build / tasks / build.js View on Github external
paths.ignore.forEach(function(filename){
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }

gulp-ignore

Include or exclude gulp files from the stream based on a condition

MIT
Latest version published 5 years ago

Package Health Score

50 / 100
Full package analysis

Popular gulp-ignore functions