gulp-exclude-gitignore

1.2.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    17,246
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    17,246
  • 1.1.1
    17
  • 1.1.0
    1
  • 1.0.0
    12

Package Sidebar

Install

npm i gulp-exclude-gitignore

Weekly Downloads

17,276

Version

1.2.0

License

ISC

Last publish

Collaborators

  • sboudrias
  • silvenon
  • arthurvr
  • sindresorhus
  • addyosmani