diff --git a/deps.edn b/deps.edn index 2fac48c8..aa9ceaa9 100644 --- a/deps.edn +++ b/deps.edn @@ -7,7 +7,14 @@ org.clojure/tools.logging {:mvn/version "0.5.0"} org.clojure/data.json {:mvn/version "0.2.7"} org.clojure/data.xml {:mvn/version "0.2.0-alpha6"} - com.cognitect/http-client {:mvn/version "0.1.101"}} + com.cognitect/http-client {:mvn/version "0.1.101"} + + + ;; CLJS support + com.andrewmcveigh/cljs-time {:mvn/version "0.5.2"} + + + } :aliases {:update-versions {:extra-paths ["build/src"] :main-opts ["-m" "cognitect.aws.version-updater"]} :dev {:extra-paths ["dev/src" "dev/resources" "test/src" "test/resources"] @@ -18,6 +25,10 @@ :test {:extra-deps {com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git" :sha "cb96e80f6f3d3b307c59cbeb49bb0dcb3a2a780b"}} :main-opts ["-m" "cognitect.test-runner"]} + + :cljs-build + {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.520"}} + :main-opts ["-m" "cljs.main" "-co" "min.js.edn" "-c"]} :examples {:extra-paths ["examples" "examples/resources" "dev/resources"] :extra-deps {org.clojure/test.check {:mvn/version "0.10.0"} org.slf4j/slf4j-log4j12 {:mvn/version "1.7.28"} diff --git a/min.js.edn b/min.js.edn new file mode 100644 index 00000000..1a2e0f1b --- /dev/null +++ b/min.js.edn @@ -0,0 +1,66 @@ +;; borrowed from axel-f with lots of with gratitute +;; https://github.com/xapix-io/axel-f/blob/9bb72e13699b9559142392c4fa19041b1d072244/axel_f.min.js.edn +{:output-to "out/min/sci.min.js" + :output-dir "out/min" + :optimizations :advanced + :main "sci.impl.js" + :aot-cache true + :compiler-stats true + :pretty-print false + :elide-asserts true + :parallel-build true + :checked-arrays :warn + :static-fns true + :fn-invoke-direct true + :warnings {:fn-deprecated false} + :optimize-constants true + :output-wrapper "/** + * Small Clojure Compiler v0.0.9-alpha + * + * Copyright 2019 Michiel Borkent + * + * Licensed under Eclipse Public License; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * https://github.com/borkdude/sci/blob/master/LICENSE + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an \"AS IS\" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +(function (definition) { + // This file will function properly as a