You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of my projects I implemented an option to pass an array of excluded "root directories" (such as node_modules) to globule. then I use the difference between what fs.readdirSync() returns and and the excluded directories to build up the list of directories that should be "scanned". Then globule only expans file paths in the non-excluded directories. It's super fast (comparatively).
I wonder if it would be possible to do this, but faster: ['sth/**/*.js', '!sth/**/*.spec.js]
It would be far better if the first glob could not catch the .spec.js files at once, instead of expanding both expressions in order to make the difference afterwards…
Hey @cowboy, would it be possible to have something like this in the new version? :
This might be useful for Grunt. No worries if too complex to add.
The text was updated successfully, but these errors were encountered: