Sha256: 034bd36e8e09fa146618ade08c3c1f95aa16cccfa62723f804b05a7f45a8e30b
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
#!/usr/bin/env ruby require 'minjs' require 'minjs/compressor/compressor' argv = ARGV.dup f = [] options = {} argv.each do |x| if x.match(/^--?version/) puts Minjs::VERSION exit(0) elsif x.match(/^--?/) opt = $'.gsub(/-/, '_').to_sym options[opt] = true else f.push(open(x.to_s).read()) end end prog = Minjs::Compressor::Compressor.new(:debug => false) prog.compress(f.join("\n"), options) puts prog.to_js(options)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minjs-0.4.2 | exe/minjs |
minjs-0.4.1 | exe/minjs |
minjs-0.4.0 | exe/minjs |