Permalink
Browse files

doing some global mods, preparing to add executables

  • Loading branch information...
1 parent 626418f commit 8305504f45d7a6d6eefd4710f936e5d2a2fbb8b2 @pnegri committed Nov 25, 2011
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/arcabouco.coffee
View
@@ -24,14 +24,19 @@ class PublicExposer
outputDir = application.config.baseDirectory + '/cdn/js'
+ c = 0
for pieceDetails in piecesByPriority
pieceFilename = pieceDetails.filename
- exec "coffee --compile -o #{outputDir} #{pieceFilename}"
+
+ baseFilename = Common.Path.basename( pieceFilename, '.coffee' ) + '-' + c
+
+ exec "coffee --compile -p #{pieceFilename} > #{outputDir}/#{baseFilename}.js"
- baseFilename = Common.Path.basename( pieceFilename, '.coffee' )
application.ContentGenerator.addContentFor 'head',
"<script src=\"/cdn/js/#{baseFilename}.js\"></script>", { priority: pieceDetails.priority }
+ c = c+1
+
class ContentGenerator
contentArray : []
@@ -204,6 +209,8 @@ class Arcabouco
valid = true
if file.match /src\//gi
valid = false
+ if file.match /\.swp/gi
+ valid = false
if valid
@work require file

0 comments on commit 8305504

Please sign in to comment.