-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
29 lines (27 loc) · 865 Bytes
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
:min-bb-version "1.12.196"
:paths ["src"]
:deps {
;; https://github.com/http-kit/http-kit
;; https://github.com/askonomm/ruuter
;; org.clojars.askonomm/ruuter {:mvn/version "1.3.4"}
}
:tasks {
dev
{:extra-paths ["dev"]
:requires ([babashka.fs :as fs]
[babashka.nrepl.server :as srv])
:task
(let [nrepl-port (with-open [sock (java.net.ServerSocket. 0)]
(.getLocalPort sock))]
(srv/start-server! {:host "localhost" :port nrepl-port})
(spit ".nrepl-port" (str nrepl-port "\n"))
(fs/delete-on-exit ".nrepl-port")
(deref (promise)))
}
;
main {:requires ([meteo38.main :as main])
:task (main/-main)}
;
}
}