Permalink
Browse files

Slakefile enhacement

  • Loading branch information...
1 parent 1f65e06 commit ae53767d0e7d5c5da98bcd7d25c175160c358107 @lessandro committed Nov 28, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 Slakefile
View
@@ -8,14 +8,18 @@ run = (cmd, silent = true) ->
console.log stdout if stdout
build = ->
- run 'lsc -bco tmp src/*.ls', false
- run 'cat src/*.ls | lsc -sbc > dave.js'
+ run 'lsc -bdco tmp src/*.ls', false
+ run 'cat src/*.ls | lsc -sdbc > dave.js'
task \build \build build
task \watch \watch ->
+ build!
+ console.log 'watching'
watchr.watch {
path: \src
listener: (e, file) ->
- build if /\.ls$/.test file
+ if /\.ls$/.test file
+ console.log file
+ build!
}

0 comments on commit ae53767

Please sign in to comment.