Skip to content

Instantly share code, notes, and snippets.

@joekiller
Created July 6, 2017 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joekiller/9020562cf9b98b379fbf05aae67c2f99 to your computer and use it in GitHub Desktop.
Save joekiller/9020562cf9b98b379fbf05aae67c2f99 to your computer and use it in GitHub Desktop.
nREPL ClojureScript Cursive IDE

Most Cursive IDE nREPL solutions point to the Figwheel approach which good but is a little cumbersome.

You can also use piggieback (which Figwheel also uses).

Update your project.clj as such:

(defproject blah "0.0.1"
  :profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.2"]]}
                   :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}})

Then simply create a Clojure REPL Run/Debug configuration using the "Run nREPL with Leiningen` option.

@joekiller
Copy link
Author

Note if you want an async handler, you will need to use Figwheel instead and hook into a more featured Javascript engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment