-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
59 lines (51 loc) · 2.88 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
57
58
59
{:paths ["script"]
:tasks {:requires [[build-examples]]
test {:task (clojure "-M:test" #_#_"--plugin" "notifier" "--watch")}
test:once {:task (clojure "-M:test")}
test:ci {:task (clojure "-M:test" "--skip-meta" "skip-ci")}
test:coverage {:task (clojure "-M:test:coverage")}
test:init-submodules (shell "git submodule update --init test/projects/codox test/projects/promesa examples/structurizr/examples")
website {:depends [website:content website:build example:antora]}
website:start {:task (shell {:dir "website"} "bun start")}
website:build {:task (shell {:dir "website"} "bun run build")}
website:docs {:task (build-examples/build-dinodoc-docs)}
website:content
{:depends
[website:docs
example:polylith
example:promesa
example:reitit
example:ring
example:structurizr
example:statecharts
example:openapi
example:dbschema
example:kotlin
example:java
example:javadoc
example:rust
example:contextmapper
example:contextive]}
;; Debug test samples at http://localhost:3000/docs/samples/example/
samples:copy {:task (build-examples/copy-test-samples)}
example:polylith {:task (build-examples/build-example-docs "polylith")}
example:promesa {:task (build-examples/build-example-docs "promesa")}
example:reitit {:task (build-examples/build-example-docs "reitit")}
example:ring {:task (build-examples/build-example-docs "ring")}
example:structurizr {:task (build-examples/build-example-docs "structurizr")}
example:statecharts {:task (build-examples/build-example-docs "statecharts")}
example:dbschema {:task (build-examples/build-example-docs "dbschema")}
example:kotlin {:task (build-examples/build-example-docs "kotlin")}
example:java {:task (build-examples/build-example-docs "java")}
example:javadoc {:task (build-examples/build-example-docs "javadoc")}
example:rust {:task (build-examples/build-example-docs "rust")}
example:contextmapper {:task (build-examples/build-example-docs "contextmapper")}
example:contextive {:task (build-examples/build-example-docs "contextive")}
example:openapi:reitit {:task (shell {:dir "examples/openapi"} "clojure -M:doc")}
example:openapi {:depends [example:openapi:reitit]
:task (shell {:dir "website"} "bun run docusaurus gen-api-docs all")}
example:antora {:task (do
(shell {:dir "examples/antora"} "bb generate")
(build-examples/copy-antora-example))}
deploy {:depends [website]
:task (shell "bunx wrangler pages deploy --project-name dinodoc website/build")}}}