-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
56 lines (51 loc) · 1.84 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
{:deps {ftlm/ftlm {:local/root "."}}
:blog
{:blog-title "Faster-than-Light memes"
:blog-author "Benjamin Schwerdtner"
:out-dir "public/"
:blog-root "https://faster-than-light-memes.xyz/"}
:tasks {:init
(def url (-> (read-string (slurp "bb.edn")) :blog :blog-root))
build-css
;; -----------------------------
{:requires ([dev.build])
:task
(dev.build/css-release)}
;; -------------------------------
build {:depends [build-css]
:task
(do
(shell
;; "emacs"
"/home/benj/repos/emacs/src/emacs"
;; "-Q"
"--script" "build-site.el")
(shell "bb" "src/ftlmemes/gen_pages.clj"))}
css-watch
(clojure "-X:dev dev.repl/watch-css")
serve-local
{:depends [build]
:task
(let [port 8081]
(shell "http-server" ":port" port ":dir" "./public")
(shell "xdg-open" "http://localhost:8081/"))}
serve-quiz
{:task
(let [port 8081]
(shell "http-server" ":port" port ":dir" "./src/ftlmemes/clojure_function_quiz/")
(shell {:dir "./scittle-server/"} "bb" "browser-nrepl"))}
serve-flipcoin
{:task
(let [port 8081]
(shell "http-server" ":port" port ":dir" "./src/ftlmemes/flipcoin/")
(shell {:dir "./scittle-server/"} "bb" "browser-nrepl"))}
linode-deploy
(shell "./publish.sh")
scittle-server
(shell {:dir "./scittle-server/"} "bb" "browser-nrepl")
build-deploy
{:depends [build linode-deploy]}
browse-qr-code
(shell
"xdg-open"
(str "https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=" url))}}