diff --git a/apptemplate_advanced/coffee/Cakefile b/apptemplate_advanced/coffee/Cakefile index ac532614c8..dd9a642d2f 100644 --- a/apptemplate_advanced/coffee/Cakefile +++ b/apptemplate_advanced/coffee/Cakefile @@ -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)