summaryrefslogtreecommitdiff
path: root/doc/up_and_running.md
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-04-19 07:59:24 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-04-19 07:59:24 +0300
commitdea539cce60697c2302d453ccaaa037af97ed184 (patch)
treedc73151faa076fddb220d50c4ed419ec69e5173c /doc/up_and_running.md
parentb6595c6fc39f597155b4b0fdf193a27a0a9c9f29 (diff)
Update the ClojureScript usage instructions
Diffstat (limited to 'doc/up_and_running.md')
-rw-r--r--doc/up_and_running.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/up_and_running.md b/doc/up_and_running.md
index c05dd207..c35e3818 100644
--- a/doc/up_and_running.md
+++ b/doc/up_and_running.md
@@ -82,22 +82,24 @@ helpful for identifying each host.
ClojureScript support relies on the [piggieback][] nREPL middleware being
present in your REPL session.
-Add the following dependencies to your project (`project.clj` in Leiningen based project
-or `build.boot` in Boot project):
+Add the following dependencies to your project (`project.clj` in
+Leiningen based project or `build.boot` in Boot project):
```clojure
-[cider/piggieback "0.3.0"]
+[cider/piggieback "0.3.1"]
[org.clojure/clojure "1.7.0"]
```
as well as `piggieback` nREPL middleware:
in `project.clj`:
+
```clojure
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
```
or in `build.boot`:
+
```clojure
(task-options!
repl {:middleware '[cider.piggieback/wrap-cljs-repl]})
@@ -150,7 +152,7 @@ documentation lookup, the namespace browser, and macroexpansion).
[adzerk/boot-cljs-repl "X.Y.Z" :scope "test"]
[pandeiro/boot-http "X.Y.Z" :scope "test"]
[weasel "0.7.0" :scope "test"]
-[cider/piggieback "0.3.0" :scope "test"]
+[cider/piggieback "0.3.1" :scope "test"]
```
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
2. Add these to your dev `:dependencies`:
```clojure
-[cider/piggieback "0.3.0"]
-[figwheel-sidecar "0.5.0-2"]
+[cider/piggieback "0.3.1"]
+[figwheel-sidecar "0.5.16"] ; use here whatever the current version of figwheel is
```
+Keep in mind that figwheel 0.5.16 is the first to support piggieback
+0.3. If you're using an older figwheel you should stick to piggieback
+0.2.2 (which uses the old `com.cemerick/piggieback` package coordinates).
+
3. Add this to your dev `:repl-options`:
```clojure