Permalink
Browse files

add a LOC task.

  • Loading branch information...
1 parent 94cdb76 commit 47f1678e03e862ded8eadff70c901096a4db73f5 @jashkenas committed Mar 18, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 Cakefile
View
@@ -31,3 +31,8 @@ task 'doc', 'rebuild the Docco documentation', (options) ->
].join(' && '), (err) ->
throw err if err
)
+
+task 'loc', 'count the lines of code in Docco', ->
+ code = fs.readFileSync('docco.litcoffee').toString()
+ lines = code.split('\n').filter (line) -> /^ /.test line
+ console.log "Docco LOC: #{lines.length}"

0 comments on commit 47f1678

Please sign in to comment.