mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
making the 'cake loc' task reflect the lines of code in the compiler only.
This commit is contained in:
5
Cakefile
5
Cakefile
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user