-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (21 loc) · 864 Bytes
/
Makefile
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
.PHONY: docs gfm client-nocache typedoc clean
client-nocache:
bun build src/clientjs/index.ts --target=browser --outfile=templates/html/static/client.js --minify --sourcemap
bun build src/clientjs/search.ts --target=browser --outfile=templates/html/static/search.js --minify-syntax --minify-whitespace --sourcemap
bun build src/clientjs/mermaid.ts --target=browser --outfile=src/plugins/static/mermaid.js --minify --sourcemap
templates/html/static/client.js: src/clientjs/*
make client-nocache
client: templates/html/static/client.js
typedoc:
bunx typedoc
typedoc-linkmap:
bunx linkmapper-typedoc docs/src/types.json docs/src/typescript_link_mapping.json
docs: templates/html/static/client.js
bun --bun src/cli.ts docs --local
gfm:
rm -rf docs/out/gfm
bun --bun src/cli.ts docs --output-format gfm
test:
bun test
clean:
rm -rf docs/out/html/*