Commit 8a111c0c authored by Yehuda Katz's avatar Yehuda Katz

Add Rakefile

parent efd37c87
......@@ -41,4 +41,28 @@ task :test do
end
end
task :default => :test
directory "browser"
file "browser/rsvp.js" => ["browser", "lib/rsvp.js"] do
library = File.read("lib/rsvp.js")
open "browser/rsvp.js", "w" do |file|
file.puts "(function(exports) { #{library} })(window.RSVP = {});"
end
end
file "browser/rsvp.min.js" => "browser/rsvp.js" do
output = `cat browser/rsvp.js | uglifyjs`
open "browser/rsvp.min.js", "w" do |file|
file.puts output
end
end
task :dist => ["browser/rsvp.js", "browser/rsvp.min.js"]
task :push => :dist do
sh "git add browser/rsvp.js browser/rsvp.min.js"
sh "git commit -m 'Updates build artifacts'"
end
task :default => [:browser, :test]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment