-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
76 lines (56 loc) · 2.48 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
75
76
{:min-bb-version
"0.8.1"
: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)}
version:bump {:doc "Bump version"
:task (shell (str "npm version " -version))}
project {:doc "Show project info"
:print-doc? false
:task (print/pretty -project)}
build.edn {:doc "Generate build.edn"
:depends [version:bump]
:task (project/write-build-info -project)}
outdated {:doc "Check for outdated dependencies"
:task (shell "npm run outdated")}
outdated:upgrade {:doc "Upgrade outdated dependencies"
:task (shell "npm run outdated:upgrade")}
setup {:doc "Setup dependencies"
:task (shell "npm run setup")}
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 (shell "npm run clean")}
electron:watch {:doc "Electron watch"
:task (shell "npm run electron:watch")}
repl {:doc "Run REPL"
:depends [clean build.edn]
:task (shell "npm run repl")}
test {:doc "Run tests"
:depends [clean build.edn]
:task (shell "npm run test")}
build {:doc "Build app"
:depends [clean build.edn]
:task (shell "npm run build")}
deploy {:doc "Deploy app"
:depends [clean build.edn]
:task (shell "npm run deploy")}}}