grunt-sloc icon indicating copy to clipboard operation
grunt-sloc copied to clipboard

0.7.1 can't seem to get file filters to work using '.'

Open Deklin opened this issue 8 years ago • 3 comments

 sloc: {
                ui: {
                    options: {
                        reportDetail: true,
                    },
                    files: {
                        '.': ['catalogs/src/**/*.*']
                    }
                }
            }

always returns 0 files however if I do

 files: {
'catalogs/src': ['**]
}

this works

what am i missing?

Deklin avatar Jul 06 '16 03:07 Deklin

Did you ever figure this out? I'm having the same issue.

GreenRaccoon23 avatar Dec 16 '16 21:12 GreenRaccoon23

I've narrowed this down to a configuration issue within grunt itself, when it relies on the minimatch package. But I still don't know how to tell minimatch to "match all files except directories." You'd think * or *.* would do this, but it doesn't.

GreenRaccoon23 avatar Dec 16 '16 22:12 GreenRaccoon23

I got an answer here for anyone who comes across this. http://stackoverflow.com/questions/41227726/grunt-files-object-format-all-regular-files-files-immediately-under-top-level-d

GreenRaccoon23 avatar Dec 20 '16 15:12 GreenRaccoon23