Skip to content

Commit

Permalink
[ ! ] Fixed Client Side JS Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pnegri committed Feb 24, 2012
1 parent 7527aed commit 18e98c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions lib/arcabouco_modules/objectpool.coffee
Expand Up @@ -75,7 +75,9 @@ class ArcaboucoObjectPool
if file_stats if file_stats
file_mtime = file_stats.mtime.getTime() file_mtime = file_stats.mtime.getTime()


baseFilename = Common.Path.basename( pieceFilename, '.coffee' ) + '-' + file_mtime baseFilename = Common.Path.basename( pieceFilename ) + '-' + file_mtime
baseFilename = baseFilename.replace(".coffee","")
baseFilename = baseFilename.replace(".js","")
target_filename = "#{outputDir}/#{pieceFilenamePrefix}#{baseFilename}.js" target_filename = "#{outputDir}/#{pieceFilenamePrefix}#{baseFilename}.js"


file_exists = false file_exists = false
Expand All @@ -87,7 +89,10 @@ class ArcaboucoObjectPool
file_exists = false file_exists = false


unless file_exists unless file_exists
exec "coffee --compile -p #{pieceFilename} > #{target_filename}.js", [], buildReady if pieceFilename.indexOf(".js")
exec "cp #{pieceFilename} #{target_filename}"
else if pieceFilename.indexOf(".coffee")
exec "coffee --compile -p #{pieceFilename} > #{target_filename}.js", [], buildReady
c = c+1 c = c+1


application.Content.putContentFor 'head', application.Content.putContentFor 'head',
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{ {
"name" : "arcabouco-js", "name" : "arcabouco-js",
"description" : "scalable microframework in node.js", "description" : "scalable microframework in node.js",
"version" : "0.8.5", "version" : "0.8.6",
"author" : "Patrick Negri <patrick@iugu.com.br>", "author" : "Patrick Negri <patrick@iugu.com.br>",
"homepage": "http://github.com/pnegri/arcabouco-js", "homepage": "http://github.com/pnegri/arcabouco-js",
"contributors" : [], "contributors" : [],
Expand Down

0 comments on commit 18e98c3

Please sign in to comment.