Skip to content

Commit dea539c

Browse files
committed
Update the ClojureScript usage instructions
1 parent b6595c6 commit dea539c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

doc/up_and_running.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,24 @@ helpful for identifying each host.
8282
ClojureScript support relies on the [piggieback][] nREPL middleware being
8383
present in your REPL session.
8484

85-
Add the following dependencies to your project (`project.clj` in Leiningen based project
86-
or `build.boot` in Boot project):
85+
Add the following dependencies to your project (`project.clj` in
86+
Leiningen based project or `build.boot` in Boot project):
8787

8888
```clojure
89-
[cider/piggieback "0.3.0"]
89+
[cider/piggieback "0.3.1"]
9090
[org.clojure/clojure "1.7.0"]
9191
```
9292

9393
as well as `piggieback` nREPL middleware:
9494

9595
in `project.clj`:
96+
9697
```clojure
9798
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
9899
```
99100

100101
or in `build.boot`:
102+
101103
```clojure
102104
(task-options!
103105
repl {:middleware '[cider.piggieback/wrap-cljs-repl]})
@@ -150,7 +152,7 @@ documentation lookup, the namespace browser, and macroexpansion).
150152
[adzerk/boot-cljs-repl "X.Y.Z" :scope "test"]
151153
[pandeiro/boot-http "X.Y.Z" :scope "test"]
152154
[weasel "0.7.0" :scope "test"]
153-
[cider/piggieback "0.3.0" :scope "test"]
155+
[cider/piggieback "0.3.1" :scope "test"]
154156
```
155157

156158
and this at the end of `build.boot`:
@@ -187,10 +189,14 @@ You can also use [Figwheel](https://github.com/bhauman/lein-figwheel) with CIDER
187189
2. Add these to your dev `:dependencies`:
188190

189191
```clojure
190-
[cider/piggieback "0.3.0"]
191-
[figwheel-sidecar "0.5.0-2"]
192+
[cider/piggieback "0.3.1"]
193+
[figwheel-sidecar "0.5.16"] ; use here whatever the current version of figwheel is
192194
```
193195

196+
Keep in mind that figwheel 0.5.16 is the first to support piggieback
197+
0.3. If you're using an older figwheel you should stick to piggieback
198+
0.2.2 (which uses the old `com.cemerick/piggieback` package coordinates).
199+
194200
3. Add this to your dev `:repl-options`:
195201

196202
```clojure

0 commit comments

Comments
 (0)