rhiokim / grunt-sloc

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

Does not appear to be working #9

Closed sanfords closed 8 years ago

sanfords commented 10 years ago
app
|-- Gruntfile.js
|-- notes.txt

sloc@0.0.4 grunt-sloc 0.4.2 grunt-cli v0.1.11 grunt v0.4.2 Mac OS X 10.9.1

'sloc': {
    'files': {
        './' : ['*.txt'],
    }
},

Upon cd app; grunt 'sloc', I only get:

Running "sloc:files" (sloc) task

Done, without errors.

Am I missing something?

sanfords commented 10 years ago

I apparently needed a surrounding object, as in:

'sloc': {
    'my-source-count':
        'files': {
            './' : ['*.txt'],
        }
    }
},

That fixed it up. Although the surrounding object does not appear in the 'Basic compression' on https://npmjs.org/package/grunt-sloc.

rhiokim commented 8 years ago

https://github.com/flosse/sloc#supported-languages