From f169812ec7d050c0fc6137dfc53b2e17c5c0f6dd Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 7 Feb 2015 22:12:05 +0100 Subject: [PATCH] Exclude test scripts from node_modules --- gulpfile.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.coffee b/gulpfile.coffee index bc3c85e..f39ea0c 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -59,7 +59,8 @@ gulp.task('node_modules', -> dependencies = (name for name of pkg.dependencies) # Note! When installing or updating node modules, make sure that the following # glob does not include too much or too little! - gulp.src("node_modules/+(#{ dependencies.join('|') })/**/{*.js,LICENSE}") + gulp.src("node_modules/+(#{ dependencies.join('|') })/\ + {LICENSE,{,**/!(test)/}*.js}") .pipe(gulp.dest("#{ DEST }/node_modules")) ) -- 2.39.3