Permalink
Browse files

Updating docs to link to downloadable files. Ready for 0.1.0

  • Loading branch information...
KrisJordan committed Feb 28, 2012
1 parent 923605a commit e452b3e7a3382e527b0b284df347bcea61c26f1c
Showing with 70 additions and 12 deletions.
  1. +15 −0 Rakefile
  2. +43 −0 f_underscore-bundle-min.js
  3. +9 −9 f_underscore-min.js
  4. +3 −3 index.html
View
@@ -5,12 +5,27 @@ HEADER = /((^\s*\/\/.*\n)+)/
desc "Use the Closure Compiler to compress f_underscore.js"
task :build do
+ # Min standalone
source = File.read('f_underscore.js')
header = source.match(HEADER)
min = Closure::Compiler.new.compress(source)
File.open('f_underscore-min.js', 'w') do |file|
file.write header[1].squeeze(' ') + min
end
+
+ # Min bundle
+ _source = File.read('test/vendor/underscore.js')
+ f_source = File.read('f_underscore.js')
+ _header = _source.match(HEADER)
+ f_header = f_source.match(HEADER)
+ min = Closure::Compiler.new.compress(_source + f_source)
+ File.open('f_underscore-bundle-min.js', 'w') do |file|
+ file.write _header[1].squeeze(' ') + f_header[1].squeeze(' ') + min
+ end
+end
+
+desc "Bundle underscore.js and f_underscore.js"
+task :buildAll do
end
desc "Build the docco documentation"
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e452b3e

Please sign in to comment.