launching nodejs repl update

This commit is contained in:
John Bintz 2016-01-06 19:01:23 -05:00
parent c9a5a279f5
commit b4f9196d6e
2 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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