SBoudrias/gulp-exclude-gitignore


Gulp plugin to exclude file contained in .gitignore from the stream

License: ISC

Language: JavaScript


gulp-exclude-gitignore NPM version Build Status Dependency Status Coverage percentage

Ever find yourself in a situation where you want to run a gulp plugin against every JavaScript file in your project? You do so, but then it start throwing at all your node_modules?

The usual fix is to add negative glob patterns to your gulp.src() call. Doesn't this feel verbose and tedious? There is a better way! You already have this list inside your .gitignore file, let's just use it.

Install

$ npm install --save-dev gulp-exclude-gitignore

Usage

var excludeGitignore = require('gulp-exclude-gitignore');

gulp.src('**/*.js')
  .pipe(excludeGitignore())
  .pipe(jshint());

License

ISC © Simon Boudrias

Project Statistics

Sourcerank 13
Repository Size 15.6 KB
Stars 25
Forks 3
Watchers 6
Open issues 2
Dependencies 11
Contributors 3
Tags 4
Created
Last updated
Last pushed

Top Contributors See all

Simon Boudrias Jamie Shen Steven Soloff

Packages Referencing this Repo

gulp-exclude-gitignore
Gulp plugin to exclude file contained in .gitignore from the stream
Latest release 1.2.0 - Updated - 25 stars

Recent Tags See all

v1.2.0 February 13, 2017
v1.1.1 November 23, 2016
v1.1.0 November 20, 2016
v1.0.0 July 14, 2015

Something wrong with this page? Make a suggestion

Last synced: 2017-09-02 12:48:21 UTC

Login to resync this repository