-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
74 lines (54 loc) · 2.47 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{:min-bb-version
"1.0.169"
:deps
{io.lazy-cat/tools.project {:mvn/version "0.1.82"}}
:tasks
{:requires ([tools.project :as project]
[tools.print :as print])
:init (do
(def -project (project/read-project))
(def -version (:version -project)))
:enter (let [{:keys [doc print-doc?]
:or {print-doc? true}} (current-task)]
(when (and print-doc? doc)
(println (format "▸ [%s] %s" (:name -project) doc))))
;;
;; Tasks
;;
version {:doc "Show version"
:print-doc? false
:task (print -version)}
project {:doc "Show project info"
:print-doc? false
:task (print/pretty -project)}
build.edn {:doc "Generate build.edn"
:task (project/write-build-info -project)}
outdated {:doc "Check for outdated dependencies"
:task (clojure "-T:build outdated")}
outdated:upgrade {:doc "Upgrade outdated dependencies"
:task (clojure "-T:build outdated:upgrade")}
setup {:doc "Setup dependencies"
:task (shell "npm ci")}
lint {:doc "Run linters"
:task (do
(shell "cljstyle check src")
(shell "clj-kondo --lint src"))}
lint:fix {:doc "Run linters & fix"
:task (shell "cljstyle fix src")}
clean {:doc "Cleanup"
:task (clojure "-T:build clean")}
repl:iced {:doc "Run REPL (vim-iced)"
:task (shell "iced repl --with-cljs --middleware=cider.piggieback/wrap-cljs-repl -A:develop:test:repl")}
repl {:doc "Run REPL"
:depends [clean build.edn]
:task (clojure "-T:build repl")}
test {:doc "Run tests"
:depends [clean build.edn]
:task (clojure "-T:build test")}
jar {:doc "Make jar"
:depends [clean build.edn]
:task (clojure "-T:build jar")}
install {:doc "Install the jar locally"
:task (clojure "-T:build install")}
deploy {:doc "Deploy the jar to clojars"
:task (clojure "-T:build deploy")}}}