making the 'cake loc' task reflect the lines of code in the compiler only.

This commit is contained in:
Jeremy Ashkenas 2010-07-21 07:26:44 -07:00
parent 5678bf10fd
commit 7e225688cb
1 changed files with 3 additions and 2 deletions

View File

@ -86,8 +86,9 @@ task 'doc:underscore', 'rebuild the Underscore.coffee documentation page', ->
throw err if err
task 'loc', 'count the lines of source code in CoffeeScript', ->
exec "cat src/*.coffee | grep -v '^\\( *#\\|\\s*$\\)' | wc -l | tr -s ' '", (err, stdout) ->
task 'loc', 'count the lines of source code in the CoffeeScript compiler', ->
sources: ['src/coffee-script.coffee', 'src/grammar.coffee', 'src/helpers.coffee', 'src/lexer.coffee', 'src/nodes.coffee', 'src/rewriter.coffee', 'src/scope.coffee']
exec "cat ${ sources.join(' ') } | grep -v '^\\( *#\\|\\s*$\\)' | wc -l | tr -s ' '", (err, stdout) ->
print stdout