simpler 'cake loc' task.
This commit is contained in:
parent
7987d4e5ce
commit
59e41f195b
2
Cakefile
2
Cakefile
|
@ -75,7 +75,7 @@ task 'doc:underscore', 'rebuild the Underscore.coffee documentation page', ->
|
||||||
|
|
||||||
task 'loc', 'count the lines of source code in CoffeeScript', ->
|
task 'loc', 'count the lines of source code in CoffeeScript', ->
|
||||||
exec "cat src/*.coffee | grep -v '^\\( *#\\|\\s*$\\)' | wc -l | tr -s ' '", (err, stdout) ->
|
exec "cat src/*.coffee | grep -v '^\\( *#\\|\\s*$\\)' | wc -l | tr -s ' '", (err, stdout) ->
|
||||||
print "lines of code in src/*.coffee:$stdout"
|
print stdout
|
||||||
|
|
||||||
|
|
||||||
task 'test', 'run the CoffeeScript language test suite', ->
|
task 'test', 'run the CoffeeScript language test suite', ->
|
||||||
|
|
Loading…
Reference in New Issue