Repl task

조회수 108회
읽지 않은 첫 메시지로 건너뛰기

Meikel Brandmeyer

읽지 않음,
2013. 10. 1. 오후 6:56:5413. 10. 1.
받는사람 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
전체답장
작성자에게 답글
전달
새 메시지 0개