this is a very basic shadow-cljs project. The linked Readme/Documentation is plentyful to help you get going.
This is how I do it with Node 22.8.0 and Clojure installed in VS Code:
- from the command palette (Shift+CMD+P)
Start a REPL and Connect (aka Jack-In)
- choose
shadow-cljs
- check ":frontend" + ":test" when prompted
- ☕️ wait for the REPL to start
- Select which build to connect to, choose
:frontend
- visit localhost:8080
- develop with the REPL
After this, open the test file, hit CMD+S
or CTRL+S
to save the file and the tests will run automatically. The result will be printed to your REPL.
$ clojure -Sdeps '{:deps {cljfmt {:mvn/version "0.9.0"}}}' \
-M -m cljfmt.main check
$ clojure -Sdeps '{:deps {cljfmt {:mvn/version "0.9.0"}}}' \
-M -m cljfmt.main fix
there is a script in bin/
🙃
PRs are welcome!
Please note, I am still very new in the Clojure-verse, so there might be something very very weird to look at.
At the time being there is no automation, so please, chip in your knowledge here!
And/Or make sure you format your code properly and all the tests pass 🚦