dropped jsmin now that couch has no view size limit
This commit is contained in:
parent
f71ab9a545
commit
f54f19eb77
|
@ -64,7 +64,6 @@ puts "Running #{command} into #{prefix} on #{dbname} from directory #{dirname}."
|
|||
# __END__
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__)) + '/../couchrest'
|
||||
require File.expand_path(File.dirname(__FILE__)) + '/../vendor/jsmin/lib/jsmin'
|
||||
require 'fileutils'
|
||||
|
||||
module Enumerable
|
||||
|
@ -80,12 +79,6 @@ end
|
|||
cr = CouchRest.new("http://localhost:5984")
|
||||
db = cr.database(dbname)
|
||||
|
||||
def readjs(file, libs=nil)
|
||||
st = open(file).read
|
||||
st.sub!(/\/\/include-lib/,libs) if libs
|
||||
JSMin.minify(st)
|
||||
end
|
||||
|
||||
def readfile(file, libs=nil)
|
||||
st = open(file).read
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue