DEV Community

Cover image for How to Set Up Shadow CLJS
Kelvin Mai
Kelvin Mai

Posted on

How to Set Up Shadow CLJS

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

Top comments (0)