Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 10 lines (9 sloc) 0.35 kb
ef49944 @jashkenas Initial semi-functional version of backbone.
jashkenas authored
1 require 'rubygems'
2 require 'closure-compiler'
3
4 desc "rebuild the backbone-min.js files for distribution"
5 task :build do
6 files = Dir['lib/*.js']
7 source = files.map {|f| File.read f }.join "\n\n"
8 File.open('backbone.js', 'w+') {|f| f.write source }
9 File.open('backbone-min.js', 'w+') {|f| f.write Closure::Compiler.new.compress(source) }
10 end
Something went wrong with that request. Please try again.