forked from clj-commons/etaoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
40 lines (38 loc) · 2.01 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
{:paths ["script"]
:deps {doric/doric {:mvn/version "0.9.0"}
lread/status-line {:git/url "https://github.com/lread/status-line.git"
:sha "35ed39645038e81b42cb15ed6753b8462e60a06d"}
dev.nubank/docopt {:mvn/version "0.6.1-fix7"}}
:tasks
{;; setup
:requires ([babashka.classpath :as cp]
[babashka.fs :as fs]
[clojure.string :as string]
[helper.shell :as shell]
[lread.status-line :as status])
:enter (let [{:keys [name]} (current-task)] (status/line :head "TASK %s %s" name (string/join " " *command-line-args*)))
:leave (let [{:keys [name]} (current-task)] (status/line :detail "\nTASK %s done." name))
;; commands
dev {:doc "start a Clojure nrepl server/prompt"
:task (shell/command "clj" "-M:test:repl/cider")}
bb-dev {:doc "start a Babashka nrepl server"
:task (let [cp (-> (shell/clojure "-Spath -M:test:bb-spec:bb-test")
with-out-str)
bbcp (cp/get-classpath)]
(shell/command "bb"
"--classpath" (str cp fs/path-separator bbcp)
"--nrepl-server"))}
test {:doc "run all or a subset of tests, use --help for args"
:task test/-main}
drivers {:doc "[list|kill] any running WebDrivers"
:task drivers/-main}
lint {:doc "[--rebuild] lint source code"
:task lint/-main}
cljdoc-preview {:doc "preview what docs will look like on cljdoc, use --help for args"
:task cljdoc-preview/-main}
tools-versions {:doc "report on tools versions"
:task tools-versions/-main}
download-deps {:doc "download all deps (useful for CI prep)"
:task download-deps/-main}
outdated {:task (shell/clojure {:continue true} "-M:outdated")
:doc "report on outdated dependencies"}}}