1. gulp-exclude-gitignore
Gulp plugin to exclude file contained in .gitignore from the stream
gulp-exclude-gitignore
Package: gulp-exclude-gitignore
Created by: SBoudrias
Last modified: Wed, 12 Jul 2023 19:15:59 GMT
Version: 1.2.0
License: ISC
Downloads: 71,650
Repository: https://github.com/SBoudrias/gulp-exclude-gitignore

Install

npm install gulp-exclude-gitignore
yarn add gulp-exclude-gitignore

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin