do frontend (preact)
This commit is contained in:
8
justfile
8
justfile
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user