Closed jbubsk closed 8 years ago
What's your config ? It's not very well explained in the doc, I got it by introspecting the lib but in fact what you will need to understand is the following
files: {
'target': [FILES...]
}
means a weird thing which is : target = base directory and then files means look for files within this "target" directory. So for example I'm using this config :
sloc: {
all: {
files: {
'.': [
['src/**/*.js']
]
}
}
}
so the task will try to do ./src/...... .js
Great work apart that but a little explanation in the doc would be perfect :)
Yea that's not very well explained at all, thanks @YouriT your example worked great for me!
There is problem for me with line counting , I'm using OS X Mavericks 10.9.4, grunt-sloc 0.5.2. And after running task through all files there're just zero's