A leaven component for running a weasel based clojurescript REPL.
Add [com.palletops/bakery-weasel "0.3.1-SNAPSHOT"]
to your
:dependencies
and cemerick.piggieback/wrap-cljs-repl
to your project middleware.
:dependencies [[com.palletops/bakery-weasel "0.3.1-SNAPSHOT"]]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
The com.palletops.bakery.weasel/weasel
function returns a
leaven component, in both clojure and clojurescript. It
takes a single map as argument with the following keys.
:host
: the hostname to bind or connect to. Defaults to "localhost".
:port
: the port to listen on or connect to. The default port is 9001.
The component does not implement the Startable
and Stoppable
protocols. To start the clojurescript repl you can call the zero
argument function placed on the component's :start-repl!
key.
The Startable
and Stoppable
implementations will start and stop
the client connection.
Copyright © 2014 Hugo Duncan
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.