-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
38 lines (38 loc) · 1.53 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
{:tasks {:init (def
url
"https://benjamin-asdf.github.io/lawn-mower-game/")
dev-shadow (shell "npm" "run" "dev")
dev-tailwind (shell "npm" "run" "twdev")
clean (shell "npm" "run" "clean")
build-1 {:depends [clean]
:task (shell "npm" "run" "release")}
build {:depends [build-1]
:task (shell "npm" "run" "twprod")}
deploy-add {:task (shell
{:dir "public"}
"git"
"add"
"--"
".")}
deploy-commit {:task (shell
{:dir "public"}
"git"
"commit"
"--allow-empty"
"-m"
"deploy")}
deploy {:depends [deploy-add deploy-commit]
:task (shell
{:dir "public"}
"git"
"push"
"--force"
"[email protected]:benjamin-asdf/lawn-mower-game.git"
"master:gh-pages")}
build-deploy {:depends [build deploy]}
browse-qr-code (shell
"xdg-open"
(str
"https://api.qrserver.com/v1/create-qr-code/?size=300x300&data="
url))
browse (shell "xdg-open" url)}}