PEZ / calva-clojurescript-usage

How I would like to use Calva, nREPL and figwheel-main together

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started with Calva

  1. Start a Clojure REPL: make repl (a VS Code integrated terminal works great for this.)
  2. Wait for the message `nREPL server started on port ...
  3. Connect the REPL via the "Connect to a Running REPL Server in the Project" command in VS Code.
    • Choose "My local build" as the connection type
    • Press enter at the next prompt which is prefilled with `localhost:
  4. Wait for the app to compile and open in your browser (opens on http://localhost:9010)
    • Close the alert displayed
  5. Wait for the Calva output/repl window to display ; Connected session: cljs
  6. Load src/main/repro/ui/core.cljs (open it and use the command Calva: Load file and dependencies)
  7. Also load dev/tooling/portal.cljs, and confirm that portal opens in a web browser window.
  8. Then evaluate the two forms in the rich comment block at the bottom of the file:
    (comment
      (open-portal)
      (tap> "Tap, tap! Who's there?"))

About

How I would like to use Calva, nREPL and figwheel-main together


Languages

Language:Clojure 44.8%Language:JavaScript 28.3%Language:Makefile 19.8%Language:HTML 7.0%