Gulp.src missing all files

Damian
Coding Snippets
Published in
1 min readNov 29, 2017

In a gulp script that’s been working for years:

gulp.src(["*.js", "!*.spec.js"])

I found that after installation of gulp globally on a new build server that the above line was returning no files. So had the modify it to:

gulp.src(["!(*.spec).js"])

This can probably be traced back to glob or minimatch changing at some point in time.

Hope this helps someone out there!

--

--

Damian
Coding Snippets

I’m a software architect for my day job and work on a lot of side projects around mobile tech in my free time.