diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-04-25 17:39:43 -0300 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-04-25 17:39:43 -0300 |
commit | 489022dbd1c037398b8af1369313f10df092606c (patch) | |
tree | 36217a91c4dcff01efd1e9e42e755a4e01240e11 /doc/up_and_running.md | |
parent | 0c6a1d75c7800ad8c55c9a1392bbf2914a6b8751 (diff) |
Improve instructions for "Browser-connected ClojureScript REPL in Boot project"
Diffstat (limited to 'doc/up_and_running.md')
-rw-r--r-- | doc/up_and_running.md | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/doc/up_and_running.md b/doc/up_and_running.md index bbe39cdc..41c7432a 100644 --- a/doc/up_and_running.md +++ b/doc/up_and_running.md @@ -130,10 +130,24 @@ documentation lookup, the namespace browser, and macroexpansion). 1. Add this to your dependencies in `build.boot`: ```clojure -[adzerk/boot-cljs-repl "0.3.0"] -[com.cemerick/piggieback "0.2.1" :scope "test"] +[adzerk/boot-cljs "1.7.228-1" :scope "test"] +[adzerk/boot-cljs-repl "0.3.0" :scope "test"] +[pandeiro/boot-http "0.7.2" :scope "test"] [weasel "0.7.0" :scope "test"] -[org.clojure/tools.nrepl "0.2.12" :scope "test"] +[com.cemerick/piggieback "0.2.1" :scope "test"] +``` +and this at the end of `build.boot`: +```clojure +(require + '[adzerk.boot-cljs :refer [cljs]] + '[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]] + '[pandeiro.boot-http :refer [serve]]) + +(deftask dev [] + (comp (serve) + (watch) + (cljs-repl) ; order is important!! + (cljs))) ``` 2. Start `boot dev` in a terminal. @@ -142,7 +156,7 @@ documentation lookup, the namespace browser, and macroexpansion). 4. Execute `(start-repl)` at the prompt: `boot.user> (start-repl)`. -5. Connect to the running server with your browser. +5. Connect to the running server with your browser. The address is printed on the terminal, but it's probably `http://localhost:3000`. For more information visit [boot-cljs-repl](https://github.com/adzerk-oss/boot-cljs-repl). |