14 lines
374 B
Clojure
14 lines
374 B
Clojure
(ns user
|
|
(:require [shadow.cljs.devtools.api :as shadow]
|
|
[shadow.cljs.devtools.server :as server]))
|
|
|
|
;; copied from https://docs.cider.mx/cider/cljs/shadow-cljs.html
|
|
|
|
(defn cljs-repl
|
|
"Connects to a given build-id. Defaults to `:app`."
|
|
([]
|
|
(cljs-repl :app))
|
|
([build-id]
|
|
(server/start!)
|
|
(shadow/watch build-id)
|
|
(shadow/nrepl-select build-id)))
|