-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbb.edn
20 lines (20 loc) · 952 Bytes
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{:min-bb-version "0.4.0"
:paths ["bb"]
:tasks
{test-jvm {:doc "Runs JVM tests"
:task (shell "lein test")}
test-cljs {:doc "Runs CLJS tests"
:task (shell "npx shadow-cljs compile test")}
new-test {:doc "Creates new test for the Clojure symbols named by <args>. Unqualified symbols assume clojure.core"
:requires ([new-test])
:task (new-test/new-test *command-line-args*)}
nrepl {:doc "Starts an nrepl server on port 1339 using an .nrepl-port file"
:requires ([babashka.fs :as fs]
[babashka.nrepl.server :as srv])
:task (do (srv/start-server! {:host "localhost"
:port 1339})
(spit ".nrepl-port" "1339")
(-> (Runtime/getRuntime)
(.addShutdownHook
(Thread. (fn [] (fs/delete ".nrepl-port")))))
(deref (promise)))}}}