Repository navigation
Expand file tree
/
Copy pathbb.edn
More file actions
54 lines (53 loc) · 2.22 KB
/
Copy pathbb.edn
File metadata and controls
54 lines (53 loc) · 2.22 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
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
{:paths ["scripts"]
:deps {borkdude/rewrite-edn {:mvn/version "0.4.9"}}
:tasks
{:requires ([babashka.tasks :refer [shell]]
[tasks :as tasks]
[setup-webhook :as setup-webhook])
build
{:doc "Full build: generate home catalog, bundle UI, and build site with Antora."
:task (shell "nix develop --command bash scripts/build.sh playbook.yml")}
build:theme
{:doc "Build just the Antora UI theme bundle."
:task (shell "nix develop --command bash -lc \"cd ui && node scripts/build-ui.mjs bundle\"")}
serve
{:doc "Serve the built site locally with nginx."
:task (shell "nix develop --command bash scripts/nginx-dev.sh foreground")}
dev
{:doc "Run docs dev mode with watching, auto rebuild, and live reload."
:task (shell "nix develop --command bash scripts/dev.sh")}
projects.nix
{:doc "Update pkgs/projects.nix from configured project URLs."
:task (tasks/update-projects)}
bb-tasks:sha
{:doc "Update outskirtslabs/bb-tasks git sha in project bb.edn files."
:task (apply tasks/update-bb-tasks-sha *command-line-args*)}
webhook:setup
{:doc "Create or update docs webhook. Usage: bb webhook:setup [owner/repo]"
:task (apply setup-webhook/setup *command-line-args*)}
webhook:remove
{:doc "Delete docs webhook(s). Usage: bb webhook:remove [owner/repo]"
:task (apply setup-webhook/remove-webhook *command-line-args*)}
test:scripts
{:doc "Run Babashka script tests."
:task (shell "bb scripts/run_clojure_tests.clj")}
test
{:doc "Run Babashka script tests and flake checks."
:depends [test:scripts]
:task (shell "nix flake check")}
dist:prepare
{:doc "Update npmDepsHash in pkgs/docs-site.nix."
:task (tasks/dist-prepare)}
dist
{:doc "Build the docs site package via Nix."
:depends [projects.nix dist:prepare test]
:task (shell "nix build .#docs-site")}
deploy
{:doc "Deploy docs-site to james via deploy-rs."
:task (shell "deploy --debug-logs --ssh-user root .#main")}
test:arborium
{:doc "Run arborium syntax highlighting tests."
:task (shell "node --test scripts/highlight-arborium.test.mjs")}
gen-home
{:doc "Generate the home page project catalog partial from playbook sources + project manifests."
:task (shell "bb scripts/gen_home.clj")}}}