Repl task

108 views
Skip to first unread message

Meikel Brandmeyer

unread,
Oct 1, 2013, 6:56:54 PM10/1/13
to cloju...@googlegroups.com
The latest 1.6.0-SNAPSHOT now has a repl task. It will block the
console. This is fine for me. If anyone wants to start it in the
background (beware of non-availability of output and
harder-to-killability of the process) please speak up.

Currently supported options:
- port, default: 7888
- handler, default: null, fully-qualified symbol

You'll have to add the required nrepl dependency yourself. The
development configuration is a suitable place.

Example usage for a custom handler:

src/dev/clojure/your/dev.clj
(ns your.dev
(:require
[clojure.tools.nrepl.server :as repl-server]
[cemerick.piggieback :as cljs-repl]))

(defn handler
[]
(repl-server/default-handler #'cljs-repl/wrap-cljs-repl))

build.gradle
sourceSets {
dev
}

dependencies {
development "org.clojure:tools.nrepl:0.2.3"
development "com.cemerick:austin:0.1.1"
}

clojureRepl {
handler = "your.dev/handler"
}

Meikel

--
Meikel Brandmeyer
Clojure Trainings
Kastellstraße 3
63526 Erlensee
http://kotka.de
USt.-Id: DE 285 667 417

signature.asc
Reply all
Reply to author
Forward
0 new messages