Skip to content

Commit

Permalink
Updating docs to link to downloadable files. Ready for 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Feb 28, 2012
1 parent 923605a commit e452b3e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 12 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Expand Up @@ -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"
Expand Down
43 changes: 43 additions & 0 deletions f_underscore-bundle-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e452b3e

Please sign in to comment.