jackfranklin / gulp-load-plugins

Automatically load in gulp plugins
https://github.com/jackfranklin/gulp-load-plugins
MIT License
757 stars 55 forks source link

Problem after update to 0.11.14, npm 2.0.0 and refreshing all modules #39

Closed iliakan closed 10 years ago

iliakan commented 10 years ago

It just doesn't work.

The problem is that it can't find anything by multimatch(names, pattern).forEach(function(name) {. Please let me know if it works for you after update, if yes, I will supply more details.

phuvo commented 10 years ago

Issue confirmed. Upgrading multimatch to 1.0 fixed the issue.

jackfranklin commented 10 years ago

Thanks both. @phuvo, if I'm reading you correctly, you're saying that if we bump multimatch to 1.0 that should fix?

jackfranklin commented 10 years ago

@phuvo @iliakan I might need some more info please, because I cannot replicate this:

> nisd gulp-load-plugins                                                                                               
npm WARN package.json fowa-example@1.0.0 No description
npm WARN package.json fowa-example@1.0.0 No repository field.
npm WARN package.json fowa-example@1.0.0 No README data
gulp-load-plugins@0.6.0 node_modules/gulp-load-plugins
├── multimatch@0.3.0 (array-differ@0.1.0, array-union@0.1.0, minimatch@0.3.0)
└── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1)
[jackfranklin] ‹2.0.0-p247› ‹v0.11.14› ~/Desktop/fowa-example
> node -v                                                                                                               
v0.11.14
[jackfranklin] ‹2.0.0-p247› ‹v0.11.14› ~/Desktop/fowa-example
> npm -v                                                                                                                
2.0.0
[jackfranklin] ‹2.0.0-p247› ‹v0.11.14› ~/Desktop/fowa-example
> gulp min                                                                                                              
[08:27:16] Using gulpfile ~/Desktop/fowa-example/gulpfile.js
[08:27:16] Starting 'min'...
[08:27:16] Finished 'min' after 40 ms
[jackfranklin] ‹2.0.0-p247› ‹v0.11.14› ~/Desktop/fowa-example
> cat out.js                                                                                                 
console.log("foo"),console.log("bar");%             
iliakan commented 10 years ago

The author of array-uniq fixed his module to work with the latest node, so those who are using the latest multimatch/array-uniq/array-union are fine.

jackfranklin commented 10 years ago

@iliakan. OK, well if I bump multimatch to 1.0.0 and then release 0.7, that should solve all the problems.