dropped jsmin now that couch has no view size limit
This commit is contained in:
parent
f71ab9a545
commit
f54f19eb77
1 changed files with 0 additions and 7 deletions
|
@ -64,7 +64,6 @@ puts "Running #{command} into #{prefix} on #{dbname} from directory #{dirname}."
|
||||||
# __END__
|
# __END__
|
||||||
|
|
||||||
require File.expand_path(File.dirname(__FILE__)) + '/../couchrest'
|
require File.expand_path(File.dirname(__FILE__)) + '/../couchrest'
|
||||||
require File.expand_path(File.dirname(__FILE__)) + '/../vendor/jsmin/lib/jsmin'
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
module Enumerable
|
module Enumerable
|
||||||
|
@ -80,12 +79,6 @@ end
|
||||||
cr = CouchRest.new("http://localhost:5984")
|
cr = CouchRest.new("http://localhost:5984")
|
||||||
db = cr.database(dbname)
|
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)
|
def readfile(file, libs=nil)
|
||||||
st = open(file).read
|
st = open(file).read
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue