Repository navigation
Expand file tree
/
Copy pathbb.edn
More file actions
42 lines (32 loc) · 2.26 KB
/
Copy pathbb.edn
File metadata and controls
42 lines (32 loc) · 2.26 KB
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
{:paths ["bb"]
:deps {com.lambdaisland/dotenv {:mvn/version "0.2.5"}}
:tasks
{build {:doc "Build the library jar into target/ (version from the latest v* git tag)."
:task (clojure "-T:build build")}
install {:doc "Build and install the jar into ~/.m2. Defaults to the latest v* tag, which shadows that released artifact — pass a version for unreleased code. Usage: bb install [0.11.0-SNAPSHOT]"
:task (if-let [version (first *command-line-args*)]
(clojure "-T:build" "install" ":version" (pr-str version))
(clojure "-T:build" "install"))}
tag {:doc "Prepare and publish a release: promote the changelog's Unreleased section, bump the README, then commit, tag and push. Usage: bb tag 0.11.0"
:requires ([make])
:task (apply make/tag *command-line-args*)}
changelog-entry {:doc "Print one release's changelog section, for GitHub release notes. Defaults to the latest tag."
:requires ([make])
:task (apply make/changelog-entry *command-line-args*)}
release {:doc "Build and deploy the library to Clojars. Reads the deploy token from 1Password, so `op` must be installed and signed in."
:requires ([make])
:task (shell {:extra-env
{"CLOJARS_USERNAME" "ovistoica"
"CLOJARS_PASSWORD" (make/op-read "op://Personal/Clojars Token/credential")}}
"clojure -T:build release")}
skill {:doc "Package skill/re-frame-query into re-frame-query.skill (a zip). Re-run after editing the skill so the tracked artifact doesn't drift."
:task (do (shell "rm" "-f" "re-frame-query.skill")
(shell {:dir "skill"} "zip" "-r" "-X" "-D" "../re-frame-query.skill" "re-frame-query"))}
fmt {:doc "Format all Clojure files with cljfmt"
:task (shell "cljfmt" "fix" "src" "test" "examples" "bb" "build.clj")}
fmt:check {:doc "Check formatting without modifying files"
:task (shell "cljfmt" "check" "src" "test" "examples" "bb" "build.clj")}
test:unit {:doc "Run ClojureScript unit tests via shadow-cljs"
:task (shell "pnpm" "test")}
test:e2e {:doc "Run Playwright e2e tests against both example apps"
:task (shell "pnpm" "test:e2e")}}}