do frontend (preact)

This commit is contained in:
2026-11-21 02:07:32 +01:00
parent ba66bdb68a
commit 7677b5cb64
32 changed files with 1267 additions and 31 deletions

View File

@@ -1,3 +1,7 @@
make-web:
bun --cwd=web ci
bun --cwd=web run build
hack *args:
cargo hack {{ args }} \
--feature-powerset \
@@ -13,16 +17,20 @@ pre-commit:
nix fmt
nix flake check
just -d web check
[arg("data", short="d")]
[arg("config", short="c")]
preview data="data/test/aoc-response.json" \
config="data/test/srv-config.toml" \
port="8080":
just make-web
AOC_TEST_DATA="$(cat '{{ data }}')" \
cargo run -- --log=trace \
serve -c '{{ config }}' -l '[::]:{{ port }}'
release:
just make-web
RUSTFLAGS="\
-Z fmt-debug=none \
-C link-arg=-fuse-ld=lld \