build: add format script and just command

This commit is contained in:
Paul Tsouchlos
2024-09-18 13:41:37 -06:00
parent 5ca6476237
commit 60faf81209
2 changed files with 7 additions and 0 deletions

View File

@@ -38,5 +38,8 @@ uninstall: (remove "@local")
# uninstalls the library from the "@preview" prefix (for pre-release testing) # uninstalls the library from the "@preview" prefix (for pre-release testing)
uninstall-preview: (remove "@preview") uninstall-preview: (remove "@preview")
format:
./scripts/format
# run ci suite # run ci suite
ci: test doc ci: test doc

4
scripts/format Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eu
find . -iname "*.typ" | xargs typstyle -i