-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
bb.edn
33 lines (30 loc) · 1.81 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
{:paths ["script"]
:tasks
{test:clj {:doc "Run jvm tests, optionally specify clj-version (ex. :clj-1.10 :clj-1.11(default) or :clj-all)"
:task test-clj/-main}
test:bb {:extra-paths ["src" "test"]
:extra-deps {io.github.cognitect-labs/test-runner
{:git/tag "v0.5.0" :git/sha "b3fd0d2"}
io.github.borkdude/deflet {:mvn/version "0.1.0"}}
:task cognitect.test-runner/-main}
quickdoc {:doc "Invoke quickdoc"
:extra-deps {io.github.borkdude/quickdoc
{:git/sha "e4f08eb5b1882cf0bffcbb7370699c0a63c9fd72"}}
:task (exec 'quickdoc.api/quickdoc)
:exec-args {:git/branch "main"
:github/repo "https://github.com/babashka/http-client"
:source-paths ["src/babashka/http_client.clj"
"src/babashka/http_client/interceptors.clj"
"src/babashka/http_client/websocket.clj"]}}
refresh-version {:requires ([babashka.fs :as fs]
[clojure.string :as str])
:task (let [version (-> (slurp "deps.edn")
clojure.edn/read-string
:aliases :neil :project :version)]
(fs/update-file "src/babashka/http_client/internal/version.clj"
(fn [contents]
(str/replace contents (re-pattern "#_:version(.*)")
(fn [[_ match]]
(str "#_:version " (pr-str version)))))))}
publish {:depends [refresh-version]
:task (clojure "-T:build deploy")}}}