Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active August 29, 2015 14:19
Show Gist options
  • Save mfikes/94a41fa209c5df7faa17 to your computer and use it in GitHub Desktop.
Save mfikes/94a41fa209c5df7faa17 to your computer and use it in GitHub Desktop.
Simple CLJS REPL

Make a project.clj file in a directory, specifying the version of ClojureScript you'd like to run:

(defproject cljs-repl "0.1.0"
  :dependencies [[org.clojure/clojurescript "0.0-3196"]])

Then start up a Node REPL by

lein run -m cljs.repl.node

If you don't have node installed on your computer, can alternatively start up a Nashorn REPL via

lein run -m cljs.repl.nashorn

You can make things a little easier by prefixing either of these commands with rlwrap as in

rlwrap lein run -m cljs.repl.node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment