Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-global-exclude with all npm packages installed. Try it out:

var gulpGlobalExclude = require("gulp-global-exclude")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-global-exclude v1.0.1

Add exclude patterns to gulp that will be used for any .src or .watch call.

#Gulp Global Exclude

Add exclude patterns to gulp that will be used in every .src and .watch call.

Usage:

var gulp = require('gulp');
var globalExclude = require('gulp-global-exclude');

globalExclude(gulp, ['!node_modules/**', '!build/**']);

Now '!node_modules/' and '!build/' will automatically be appended to the patterns array in any .src or .watch call.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free