Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
executable file 42 lines (36 sloc) 1.575 kb
#!/bin/sh
rm -f core.js
java -server -Xmx2G -Xms2G -Xmn256m -cp 'lib/*:src/clj:src/cljs' clojure.main - <<CLJ
(require :reload '[cljs.compiler :as comp] '[clojure.java.io :as io] '[cljs.core])
(comp/compile-file (io/resource "cljs/core.cljs") "core.js")
CLJ
java -jar closure/compiler/compiler.jar \
--compilation_level=SIMPLE_OPTIMIZATIONS \
--warning_level=VERBOSE \
--formatting=PRETTY_PRINT \
--jscomp_off=missingProperties \
--js closure/library/closure/goog/base.js \
--js closure/library/closure/goog/string/string.js \
--js closure/library/closure/goog/useragent/jscript.js \
--js closure/library/closure/goog/string/stringbuffer.js \
--js closure/library/closure/goog/object/object.js \
--js closure/library/closure/goog/debug/error.js \
--js closure/library/closure/goog/asserts/asserts.js \
--js closure/library/closure/goog/array/array.js \
--js core.js \
> coresimple.js
java -jar closure/compiler/compiler.jar \
--compilation_level=ADVANCED_OPTIMIZATIONS \
--warning_level=VERBOSE \
--formatting=PRETTY_PRINT \
--jscomp_off=missingProperties \
--js closure/library/closure/goog/base.js \
--js closure/library/closure/goog/string/string.js \
--js closure/library/closure/goog/useragent/jscript.js \
--js closure/library/closure/goog/string/stringbuffer.js \
--js closure/library/closure/goog/object/object.js \
--js closure/library/closure/goog/debug/error.js \
--js closure/library/closure/goog/asserts/asserts.js \
--js closure/library/closure/goog/array/array.js \
--js core.js \
> coreadvanced.js
Jump to Line
Something went wrong with that request. Please try again.