diff --git a/README.md b/README.md index de95b17..963da73 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,16 @@ 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 diff --git a/project.clj b/project.clj index 75d0700..1c298a8 100644 --- a/project.clj +++ b/project.clj @@ -6,13 +6,14 @@ :plugins [[lein-cljsbuild "1.1.2"] [lein-npm "0.6.1"]] :source-paths ["src"] - :npm { :dependencies [[ws "0.4.30"] ]} + :npm { :dependencies [[ws "0.4.30"]]} :cljsbuild { :builds [{:source-paths ["src"] :compiler { :target :nodejs :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"]] :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl] :init (do