https://github.com/cyppan/cljs-template
ClojureScript with tools.deps, shadow-cljs and Reagent
https://github.com/cyppan/cljs-template
clojurescript cursive reagent
Last synced: about 1 month ago
JSON representation
ClojureScript with tools.deps, shadow-cljs and Reagent
- Host: GitHub
- URL: https://github.com/cyppan/cljs-template
- Owner: cyppan
- Created: 2021-06-19T06:27:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-19T07:53:54.000Z (almost 5 years ago)
- Last Synced: 2025-12-28T09:56:49.420Z (5 months ago)
- Topics: clojurescript, cursive, reagent
- Language: Clojure
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Clojure Script Intellij (Cursive) template

What's used in this template:
- tools.deps (the Clojure default package manager)
- shadow-cljs (easy ClojureScript compilation - the browser is targeted in this template)
- Reagent (the popular cljs React wrapper)
- Intellij (IDE): the configuration is versioned so you don't have to setup everything by yourself (including the run configurations)
## Cursive development flow
### Setup project first
In order to use the project with Cursive, you have to first generate the maven deps file and import / reload it into Intellij.
```
npx shadow-cljs pom
```
### Get started
Two run configurations are available:
- watch app (which runs a shadow-cljs watch app): should be started continuously
- REPL (starts a remote REPL connected to your app): should also be started continuously, you can "send forms" from the opened files as usual with the Cursive REPL.
**Note**: once in the Cursive REPL, type `(shadow/repl :app)` to launch the shadow cljs REPL.
## Chrome console setup
You'll probably need to enable custom console formatters to see the Clojure data structures nicely formatted by the devtools, click the settings icon (upper right) and enable it:

