@@ -670,39 +670,38 @@ section of your Leiningen project's configuration.
670
670
671
671
ClojureScript support relies on the
672
672
[ 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.
676
675
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:
679
677
680
678
- At the Clojure REPL:
681
679
682
680
``` 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 ))
685
684
```
686
685
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`):
689
688
690
689
- At the Clojure REPL:
691
690
692
691
```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 ))
697
696
```
698
697
699
698
- and in your ClojureScript:
700
699
701
700
```clojure
702
701
(ns my.cljs.core
703
- (:require [weasel.repl :as ws- repl]))
702
+ (:require [weasel.repl :as repl]))
704
703
705
- (ws- repl/connect " ws://localhost:9001" )
704
+ (repl/connect " ws://localhost:9001" )
706
705
```
707
706
708
707
The [clojure-quick-repls](https://github.com/symfrog/clojure-quick-repls )
@@ -923,7 +922,6 @@ Currently, the following features are not supported for ClojureScript
923
922
development:
924
923
925
924
* Grimoire lookup
926
- * The inspector
927
925
* Reloading
928
926
* Running tests
929
927
* Tracing
0 commit comments