Permalink
Browse files

add CommonJS support

  • Loading branch information...
maccman committed Sep 28, 2011
1 parent b88f528 commit 35f4b2337ef910e387626ebbd4785b124e8cffec
Showing with 4,333 additions and 4 deletions.
  1. +3 −1 Rakefile
  2. +4,326 −0 client.js
  3. +3 −2 client/vendor/assets/javascripts/juggernaut.js
  4. +1 −1 public/application.js
View
@@ -3,12 +3,14 @@ require "yui/compressor"
require "fileutils"
require "sprockets"
-APP_PATH = File.expand_path("./public/application.js")
+APP_PATH = File.expand_path("./public/application.js")
+CLIENT_PATH = File.expand_path("./client.js")
task :build do
env = Sprockets::Environment.new
env.append_path 'client/vendor/assets/javascripts'
File.open(APP_PATH, 'w') { |f| f << env['juggernaut.js'].to_s }
+ File.open(CLIENT_PATH, 'w') { |f| f << env['juggernaut.js'].to_s }
end
task :compress do
Oops, something went wrong.

0 comments on commit 35f4b23

Please sign in to comment.