rhiokim / grunt-sloc

Source line of codes plugin for Grunt.js
MIT License
23 stars 12 forks source link

Cannot benefit from grunt negate matches #14

Closed DomDerrien closed 8 years ago

DomDerrien commented 10 years ago

I would like to be able to exclude files from the directories to be parsed. For example, I would like to specify:

css: {
   'src/client': [ '**/**.styl', '!**/libs/**' ]
}

You could support them with the following lines added before the call to sloc(source, ext):

if (grunt.file.match(srcFilters, [f]).length === 0) {
   return;
}

Thanks, Dom

krzysztof-o commented 9 years ago

+1

arnabk commented 9 years ago

+1

rhiokim commented 8 years ago

Now It could be able to available. Thanks for waiting.

brownknows commented 8 years ago

It would be really nice to add this to the documentation. I spent an entire day wrestling with this until I found the commit referenced above.