-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbb.edn
More file actions
59 lines (50 loc) · 2.82 KB
/
Copy pathbb.edn
File metadata and controls
59 lines (50 loc) · 2.82 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{:deps {io.github.borkdude/quickdoc
#_{:local/root "/Users/borkdude/dev/quickdoc"}
{:git/tag "v0.2.6" :git/sha "ce8678000afa5f835639dd7267dc191fd90495a2"}}
: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*)}
squint-test {:doc "Run squint tests"
:task (do (shell "npm" "install" "--no-save" "--prefix" "." "squint-cljs@latest")
(shell "node_modules/.bin/squint" "compile")
(shell "node" ".squint-out/babashka/run_tests.mjs"))}
cljd-test {:doc "Run ClojureDart tests (requires Dart SDK: https://dart.dev/get-dart)"
:task (do (shell "dart pub get")
(apply clojure "-M:cljd" "test"
"babashka.cli-test" "babashka.cli.completion-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
:var-pattern :wikilinks}
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)))
(spit "package.json" (str/replace (slurp "package.json")
(str "\"version\": \"" old-version "\"")
(str "\"version\": \"" (utils/format-version) "\"")))
(shell "git add version.edn README.md package.json")
(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 (do (clojure "-T:build deploy")
(shell "npm publish"))}}}