Skip to content

Commit

Permalink
sped up compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardPosselt committed Dec 27, 2012
1 parent dd2ec52 commit f27ec00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apptemplate_advanced/coffee/Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ compile = (content, toFile) ->

# register a callback on an array of files and remove already bound ones
watchFiles = (files, callback) ->
for file in files
files = {}
getCoffeeFiles(sourceDirectory, files)
for file, exists of files
fs.unwatchFile(file)
fs.watchFile(file, callback)

Expand Down

0 comments on commit f27ec00

Please sign in to comment.