Skip to content

Commit

Permalink
fixes #95
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Apr 16, 2012
1 parent 9f278c4 commit c5d93bc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/tower/server/generator/generators/tower/app/templates/watch
Expand Up @@ -15,7 +15,15 @@ require("design.io-stylesheets") /(app\/client|lib\/stylesheets|vendor\/styleshe
require("design.io-javascripts")
compress: false
debug: false
ignore: /(public|node_modules|server|app\/views)/
ignore: /(public|node_modules|server|app\/views|config)/
outputPath: (path) ->
"public/javascripts/#{path}".replace(/\.(js|coffee)/, ".js")

# client config
require("design.io-javascripts") /(config\/locales\/.*|config\/routes|app\/client\/config\/.*)\.(js|coffee)$/
compress: false
debug: false
ignore: /(public|node_modules)/
outputPath: (path) ->
"public/javascripts/#{path}".replace(/\.(js|coffee)/, ".js")

Expand All @@ -37,7 +45,7 @@ watch /app\/views.*\.coffee$/

for file in files
continue unless file.match(/\.coffee$/)
result.push [file.replace(/\.coffee$/, ""), File.read(file)]
result.push [file.replace(/\.coffee$/, ""), File.read(file) + "\n\n"]

template = "Tower.View.cache =\n"

Expand Down

0 comments on commit c5d93bc

Please sign in to comment.