September 20, 2014
Using ClojureScript REPL from Light Table
I recently discovered that Light Table REPL works with ClojureScript without the need for any specific setup in your project. All you need is the lein-cljsbuild plugin to run the incremental compiler and follow the steps below:
- start the ClojureScript compiler using
lein cljsbuild auto - start the server using
lein ring server - open the Light Table browser connection to the server
- navigate to a ClojureScript namespace in your project and start evaluating expressions
I tried other ClojureScript REPL setups before and I always found the process extremely fiddly, with Light Table everything just worked out of the box. I definitely recommend giving it a shot if you haven't yet, especially if you're working with ClojureScript.