-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbb.edn
More file actions
25 lines (23 loc) · 1.1 KB
/
bb.edn
File metadata and controls
25 lines (23 loc) · 1.1 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
{:paths ["src"]
:deps {org.babashka/http-server {:mvn/version "0.1.11"}
org.babashka/cli {:mvn/version "0.2.23"}
tick/tick {:mvn/version "0.6.0"}}
:tasks {:requires ([babashka.cli :as cli])
:init (def cli-opts (cli/parse-opts *command-line-args* {:coerce {:port :int}}))
gen-template {:doc "generate http templates from hiccup"
:requires ([template.core :as template])
:task (template/gen)}
serve {:doc "Serve static assets"
:requires ([babashka.http-server :as server])
:task (server/exec (merge {:port 8002
:dir "_site"}
cli-opts))}
build {:doc "build site"
:requires ([main]
[template.core :as template]
[babashka.process :refer [sh]])
:task (do
(sh "rm -r _site")
(sh "rm -r _cache")
(template/gen)
(main/build-v2))}}}