-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbb.edn
More file actions
33 lines (24 loc) · 1.49 KB
/
bb.edn
File metadata and controls
33 lines (24 loc) · 1.49 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
{:tasks {:init (def image-name "gensql.documentation")
docker:build {:depends [site:build]
:doc "Build Docker image"
:task (shell "clojure -T:jibbit jibbit.core/build")}
docker:run {:doc "Run web server in Docker container"
:task (do (println "Navigate to: http://localhost:8080")
(shell (str "docker run -p 8080:8080 " image-name)))}
fly:deploy {:depends [docker:build]
:doc "Deploy site to fly.io"
:task (do (shell (str "flyctl deploy --local-only --image " image-name))
(println (str "Site deployed. To view it, navigate to https://" image-name ".fly.dev/")))}
site:build {:doc "Build site"
:task (shell "pnpm antora --fetch antora-playbook.yml")}
site:clean {:doc "Remove generated site artifacts"
:task (shell "rm -Rf build")}
site:open {:doc "Open site index.html"
:task (shell "open build/site/index.html")}
server:run {:doc "Run web server"
:task (do (println "Navigate to: http://localhost:8080")
(shell "clojure -M -m gensql.documentation"))}
js:deps {:doc "Fetch JavaScript dependencies"
:task (shell "pnpm install")}
clj:deps {:doc "Fetch Clojure dependencies"
:task (shell "clojure -A:jibbit -P")}}}