-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
30 lines (25 loc) · 966 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
29
30
{:paths ["src" "bb"]
:tasks
{:requires ([tasks])
codox:gen
{:doc "Generate docs with Codox"
:task (clojure "-X:codox")}
codox:run
;; requires https://github.com/http-party/http-server
{:doc "Run http server (Node.js) to locally inspect generated docs"
:task (shell "npx http-server ../formform-www/docs")}
docs
{:doc "Generate docs and call a (private) script to upload to server"
:task (do (run 'codox:gen)
(shell {:dir ".."} "./deploy-docs.sh"))}
clerk:build
{:doc "Build notebooks with Clerk"
:task (clojure "-X:clerk")}
notes
{:doc "Generate notebooks and call a (private) script to upload to server"
:task (do (run 'clerk:build)
(shell {:dir ".."} "./deploy-notes.sh"))}
instafix
{:doc "formula.ebnf -> formula.cljc (instaparse fix for ClojureScript)"
:task (tasks/grammar->cljc "formform/io/formula.ebnf"
{:parser-opts {:auto-whitespace :standard}})}}}