-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
bb.edn
40 lines (29 loc) · 832 Bytes
/
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
["src/tasks"]
:tasks
{:init
(def source-paths ["src" "test"])
:requires
([tasks]
[babashka.fs :as fs])
format-check
{:task (apply tasks/cljstyle "check" source-paths)}
format-fix
{:task (apply tasks/cljstyle "fix" source-paths)}
lint
{:task (tasks/clj-kondo-lint source-paths)}
lint-deps
(when (fs/modified-since ".clj-kondo/.cache" "deps.edn")
(shell "bash -c" "clj-kondo --copy-configs --dependencies --lint \"$(clojure -Spath -A:provided:dev)\" --parallel"))
setup-hooks
tasks/setup-git-hooks
test
(shell "clojure" "-M:test")
test-local
(shell "clojure" "-M:test-local")
test-cljs
(shell "shadow-cljs" "watch" "test" "-A:test-deps:test-cljs")
test-cljs-once
(do
(shell "shadow-cljs" "compile" "ci")
(shell "karma" "start" "--single-run"))}}