Permalink
Browse files

Added stat business using CLOC (http://cloc.sourceforge.net/)

  • Loading branch information...
airhorns committed Jul 5, 2011
1 parent fe1799d commit 4630bd399151c9e140824820a99d74bea48a3d31
Showing with 8,403 additions and 10 deletions.
  1. +3 −2 Cakefile
  2. +7,640 −0 deps/cloc.pl
  3. +553 −0 deps/cloc_lang_def.txt
  4. +116 −4 lib/muffin.js
  5. +1 −1 package.json
  6. +90 −3 src/muffin.coffee
View
@@ -1,4 +1,5 @@
muffin = require './lib/muffin'
+glob = require 'glob'
option '-w', '--watch', 'continue to watch the files and rebuild them when they change'
option '-c', '--commit', 'operate on the git index instead of the working tree'
@@ -11,5 +12,5 @@ task 'build', 'compile muffin', (options) ->
'src/muffin.coffee' : (matches) -> muffin.compileScript(matches[0], 'lib/muffin.js', options)
console.log "Watching src..." if options.watch
-task 'test', 'test', (options) ->
- muffin.writeFile('test.js', '123', {})
+task 'stat', 'print source code stats', (options) ->
+ muffin.statFiles(glob.globSync('./src/**/*').concat(glob.globSync('./lib/**/*')))
Oops, something went wrong.

0 comments on commit 4630bd3

Please sign in to comment.