How to Set Up Shadow CLJS
Kelvin Mai
Posted on July 6, 2020
This is a simple walkthrough of how to set up a shadow cljs project
Included in video
- Configuring a shadow-cljs edn file
- Adding clojurescript support in the chrome console
- Adding CLJS/JS dependencies and interoping with existing Javascript libraries
The completed shadow-cljs.edn file will look like this
{:source-paths ["src/cljs"]
:nrepl {:port 9000}
:dependencies [[cider/cider-nrepl "0.21.0"]
[binaryage/devtools "1.0.2"]
[lilactown/helix "0.0.13"]]
:builds {:app {:target :browser
:output-dir "resources/public/js"
:modules {:main {:init-fn app.core/init}}
:devtools {:preloads [devtools.preload]
:http-root "resources/public"
:http-port 3000}}}}
Resource Links
Shadow CLJS
Shadow CLJS Docs
Lokeh/helix
Follow and support me
💖 💪 🙅 🚩
Kelvin Mai
Posted on July 6, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.