-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb.edn
28 lines (27 loc) · 848 Bytes
/
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
{:paths ["src"]
:tasks
{:requires ([babashka.fs :as fs]
[bb.tasks :as t])
clean
{:task (do (println "Remove target directory")
(fs/delete-tree "target"))}
compile
{:depends [clean]
:task (do (shell "npm install")
(clojure "-Mdev -m figwheel.main -bo release"))}
create-static-site
{:task (t/build-static-site
:from "resources/public"
:to "static-site")}
rewrite-index
{:task (t/rewrite-index
:from "resources/public"
:to "static-site"
:index-file "index.html"
:base-href "https://dgtized.github.io/shimmers/")}
;; For routing to page handler after not using fragments
;; ln -sf index.html 404.html
build
{:depends [compile create-static-site rewrite-index]}
view
{:task (shell "xdg-open static-site/index.html")}}}