~severeoverfl0w/wedge-mise

c86e76906247c1f9165f78ff3f613c7d7b46f0e1 — Dominic Monroe 1 year, 6 months ago 97d2f08
Auto-load rebel-readline-cljs

This improves the experience for ClojureScript users within the rebel
environment.  For example, you will get completion in the REPL started
by Figwheel-main.
1 files changed, 8 insertions(+), 2 deletions(-)

M src/io/dominic/wedge/mise/rebel.clj
M src/io/dominic/wedge/mise/rebel.clj => src/io/dominic/wedge/mise/rebel.clj +8 -2
@@ 8,8 8,14 @@
  (binding [;; Suppress missing S3Transport warning
            *err* (java.io.StringWriter.)]
    (tda.repl/add-libs
      '{com.bhauman/rebel-readline {:mvn/version "0.1.4"}
        mvxcvi/puget {:mvn/version "1.3.1"}}))
      (cond->
        '{com.bhauman/rebel-readline {:mvn/version "0.1.4"}
          mvxcvi/puget {:mvn/version "1.3.1"}}
        (try (require 'cljs.analyzer)
             true
             (catch java.io.FileNotFoundException _
               false))
        (assoc 'com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}))))
  :loaded)

(defn -main