Skip to content

Commit 9ff62a3

Browse files
committed
Update ClojureScript documentation
Fixes #939.
1 parent 934463c commit 9ff62a3

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -670,39 +670,38 @@ section of your Leiningen project's configuration.
670670

671671
ClojureScript support relies on the
672672
[piggieback](https://github.com/cemerick/piggieback) nREPL middleware being
673-
present in your REPL session. This is supported by (and is the recommended
674-
method for using) both the [Austin](https://github.com/cemerick/austin) and
675-
[Weasel](https://github.com/tomjakubowski/weasel) ClojureScript REPLs.
673+
present in your REPL session. Version 0.2.0 or higher is recommended, and the
674+
below examples assume this, but version 0.1.5 is currently also supported.
676675

677-
* Example usage of a non-browser connected Austin REPL (requires
678-
e.g. `[com.cemerick/austin "0.1.5"]` in your project's `:plugins`):
676+
* Example usage of a non-browser connected Node.js REPL:
679677

680678
- At the Clojure REPL:
681679

682680
```clojure
683-
(cemerick.piggieback/cljs-repl
684-
:repl-env (cemerick.austin/exec-env))
681+
(require '[cemerick.piggieback :as piggieback])
682+
(require '[cljs.repl.node :as node])
683+
(piggieback/cljs-repl (node/repl-env))
685684
```
686685

687-
* Example usage of browser-connected Weasel REPL (requires e.g. `[weasel "0.4.2"]` in your project's
688-
`:dependencies`):
686+
* Example usage of browser-connected Weasel REPL (requires
687+
e.g. `[weasel "0.6.0"]` in your project's `:dependencies`):
689688

690689
- At the Clojure REPL:
691690

692691
```clojure
693-
(require 'weasel.repl.websocket)
694-
(cemerick.piggieback/cljs-repl
695-
:repl-env (weasel.repl.websocket/repl-env :ip "127.0.0.1"
696-
:port 9001))
692+
(require '[cemerick.piggieback :as piggieback])
693+
(require '[weasel.repl.websocket :as weasel])
694+
(piggieback/cljs-repl (weasel/repl-env :ip "127.0.0.1"
695+
:port 9001))
697696
```
698697

699698
- and in your ClojureScript:
700699

701700
```clojure
702701
(ns my.cljs.core
703-
(:require [weasel.repl :as ws-repl]))
702+
(:require [weasel.repl :as repl]))
704703

705-
(ws-repl/connect "ws://localhost:9001")
704+
(repl/connect "ws://localhost:9001")
706705
```
707706

708707
The [clojure-quick-repls](https://github.com/symfrog/clojure-quick-repls)
@@ -923,7 +922,6 @@ Currently, the following features are not supported for ClojureScript
923922
development:
924923

925924
* Grimoire lookup
926-
* The inspector
927925
* Reloading
928926
* Running tests
929927
* Tracing

0 commit comments

Comments
 (0)