launching nodejs repl update
This commit is contained in:
parent
c9a5a279f5
commit
b4f9196d6e
11
README.md
11
README.md
@ -2,9 +2,16 @@
|
|||||||
|
|
||||||
A Clojure library designed to ... well, that part is up to you.
|
A Clojure library designed to ... well, that part is up to you.
|
||||||
|
|
||||||
## Usage
|
## REPL
|
||||||
|
|
||||||
FIXME
|
### serverside with vim-fireplace and Piggieback
|
||||||
|
|
||||||
|
* `lein repl`
|
||||||
|
* In the repl, `(start)` to launch a cljs repl.
|
||||||
|
* In vim, `:Connect`, then `:Piggieback (weasel.repl.websocket/repl-env :port 45192)`
|
||||||
|
* In the cljs repl, `(require 'picture-processor.repl)`
|
||||||
|
* ...and then `(picture-processor.repl/start 45192)`
|
||||||
|
* Evaluate away!
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
:compiler {
|
:compiler {
|
||||||
:target :nodejs
|
:target :nodejs
|
||||||
:optimizations :simple}}]}
|
:optimizations :simple}}]}
|
||||||
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]
|
:profiles {:dev {:source-paths ["dev-src"]
|
||||||
|
:dependencies [[com.cemerick/piggieback "0.2.1"]
|
||||||
[org.clojure/tools.nrepl "0.2.10"]]
|
[org.clojure/tools.nrepl "0.2.10"]]
|
||||||
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
|
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
|
||||||
:init (do
|
:init (do
|
||||||
|
Loading…
Reference in New Issue
Block a user