Created
April 14, 2018 03:16
-
-
Save jmingtan/3886fd0ad6da53100f6c59be651c755d to your computer and use it in GitHub Desktop.
Clojure CLI setup with rebel-readline and cider middleware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:aliases | |
{:dev {:extra-deps {com.bhauman/rebel-readline {:mvn/version "0.1.2"} | |
org.clojure/tools.nrepl {:mvn/version "0.2.12"} | |
cider/cider-nrepl {:mvn/version "0.17.0-SNAPSHOT"}} | |
:main-opts ["-m" "repl"]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns repl | |
(:require [clojure.tools.nrepl.server :as nrepl-server] | |
[cider.nrepl :refer [cider-nrepl-handler]] | |
[rebel-readline.main :as rebel])) | |
(defn -main [] | |
(println "nrepl server at port 7888") | |
(nrepl-server/start-server :port 7888 :handler cider-nrepl-handler) | |
(rebel/-main) | |
(System/exit 0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment