initial version

This commit is contained in:
2025-12-21 15:36:46 +01:00
commit 876241f455
17 changed files with 936 additions and 0 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
VERSION := 0.1.0
WASM := bqst-core/target/wasm32-unknown-unknown/release/bqst_core.wasm
.DEFAULT_GOAL := $(WASM)
RUSTFILES := $(patsubst %,bqst-core/%,$(shell git -C bqst-core ls-files))
$(WASM): $(RUSTFILES)
cd bqst-core && cargo b -r
test/test.pdf: $(WASM) $(shell find src -type f) test/test.typ
typst c --root . test/test.typ
.PHONY: install test
test: test/test.pdf
[ -n "$$NOOPEN" ] || xdg-open test/test.pdf
DESTDIR := ~/.local/share/typst/packages/local/bqst/$(VERSION)/
install: $(WASM)
mkdir -p $(DESTDIR)
rsync -a --delete ./ $(DESTDIR)