-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
bb.edn
44 lines (37 loc) · 1.85 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
41
42
43
44
{:pods {clj-kondo/clj-kondo {:version "2022.05.31"}}
:deps {io.github.borkdude/quickdoc
#_{:local/root "/Users/borkdude/dev/quickdoc"}
{:git/sha "ca5893c0d81f26443dd178a747d0851e75d39eca"}}
:paths ["src" ".build"]
:tasks
{:requires ([clojure.edn :as edn]
[clojure.string :as str]
[babashka.cli :as cli]
[utils])
:init (def cmd-line-opts
(cli/parse-opts *command-line-args*
{:coerce {:toc parse-boolean
:skip-bump parse-boolean}}))
test {:doc "Run tests"
:task (apply clojure "-M:test" *command-line-args*)}
cljs-test {:doc "Run CLJS tests"
:task (apply clojure "-M:test:cljs-test" *command-line-args*)}
quickdoc {:doc "Invoke quickdoc"
:requires ([quickdoc.api :as api])
:task (api/quickdoc (merge {:git/branch "main"
:github/repo "https://github.com/babashka/cli"
:toc true
:var-links true}
cmd-line-opts))}
bump-release {:doc "Bump release counter"
:task (let [old-version (utils/format-version)]
(utils/bump-version)
(spit "README.md" (str/replace (slurp "README.md")
old-version
(utils/format-version)))
(shell "git add version.edn README.md")
(shell "git commit -m" (str "v" (utils/format-version)))
(shell "git tag" (str "v" (utils/format-version)))
(shell "git push --tags"))}
publish {:doc "Publish to clojars"
:task (clojure "-T:build deploy")}}}