Skip to content

Instantly share code, notes, and snippets.

@dimovich
Forked from mfikes/README.md
Last active March 8, 2019 12:05
Show Gist options
  • Save dimovich/7bd42c51743e56b0929931b689bd7fc9 to your computer and use it in GitHub Desktop.
Save dimovich/7bd42c51743e56b0929931b689bd7fc9 to your computer and use it in GitHub Desktop.
cljs.main rebel-readline

Start cljs.main with rebel-readline:

clojure -Sdeps '{:deps {github-mfikes/cljs-main-rebel-readline {:git/url "https://gist.github.com/dimovich/7bd42c51743e56b0929931b689bd7fc9" :sha "801a149bbf257eeda1bce2b77fc4fee10c6d632b"}}}' -i @setup.clj -m cljs.main
{:paths ["."]
:deps {org.clojure/clojurescript {:mvn/version "1.10.520"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}}
(require 'rebel-readline.cljs.repl)
(let [cljs-repl cljs.repl/repl*]
(alter-var-root #'cljs.repl/repl*
(fn [x]
(fn [env opts]
(with-redefs [cljs.repl/repl* cljs-repl]
(rebel-readline.cljs.repl/repl* env opts)))))
nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment