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
|
||||||
|
|
||||||
|
@ -6,13 +6,14 @@
|
|||||||
:plugins [[lein-cljsbuild "1.1.2"]
|
:plugins [[lein-cljsbuild "1.1.2"]
|
||||||
[lein-npm "0.6.1"]]
|
[lein-npm "0.6.1"]]
|
||||||
:source-paths ["src"]
|
:source-paths ["src"]
|
||||||
:npm { :dependencies [[ws "0.4.30"] ]}
|
:npm { :dependencies [[ws "0.4.30"]]}
|
||||||
:cljsbuild {
|
:cljsbuild {
|
||||||
:builds [{:source-paths ["src"]
|
:builds [{:source-paths ["src"]
|
||||||
: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