-
Notifications
You must be signed in to change notification settings - Fork 1
/
bb.edn
64 lines (48 loc) · 1.85 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
{:tasks
{release:docker-github
{:doc "Build the docker image with the GitHub Container Registry tag."
:task (shell "docker build -t ghcr.io/hhucn/decide3:latest .")}
cljs:clean
{:requires ([babashka.fs :as fs])
:task (do
(fs/delete-tree ".shadow-cljs")
(fs/delete-tree "resources/public/js")
(fs/delete-tree "resources/public/workspaces/js"))}
cljs:install
{:task (shell "yarn install")}
dev:watch-cljs
{:depends [cljs:install]
:task (shell "clj -M:dev -m \"shadow.cljs.devtools.cli\" watch :main")}
i18n
{:task (clojure "-M:dev -m \"shadow.cljs.devtools.cli\" release :i18n")}
test:clj
{:task (clojure "-M:dev:clj-tests")}
test:cljs
{:task
(do
(clojure "-M:dev -m \"shadow.cljs.devtools.cli\" compile ci-tests")
(shell "yarn karma start --single-run --reporters junit"))}
test:watch-cljs
{:task (clojure "-M:dev -m \"shadow.cljs.devtools.cli\" watch :test")}
test:watch-clj
{:task (shell "clj -M:dev:clj-tests --watch")}
;; Release jobs
release:js
{:task (shell "clj -M:dev -m \"shadow.cljs.devtools.cli\" release :main")}
release:uberjar
{:task (shell "clj -T:build uber")}
release
{:depends [cljs:clean release:js release:uberjar]}
report
{:task
(shell "clj -M:dev -m \"shadow.cljs.devtools.cli\" run shadow.cljs.build-report main report.html")}
outdated:clj
{:task (clojure {:continue true} "-Sdeps '{:deps {com.github.liquidz/antq {:mvn/version \"RELEASE\"} org.slf4j/slf4j-nop {:mvn/version \"RELEASE\"}}}' -M -m antq.core")}
outdated:js
{:depends [cljs:install]
:task (shell "yarn outdated")}
outdated
{:depends [outdated:clj outdated:js]}
deploy (shell "ssh [email protected] 'cd decide ; ./deploy.sh'")
deploy:experiment (shell "ssh [email protected] 'cd decide-experiment ; ./deploy.sh'")
deploy:all {:depends [deploy deploy:experiment]}}}