From db2a2ac4f556e7a1a450f9a18d212f082d18fb9d Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 7 Apr 2020 22:06:44 -0700 Subject: [PATCH] Refactor demo recipe in justfile into multiple recipes type: development --- justfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index dbc3d00..e681748 100644 --- a/justfile +++ b/justfile @@ -119,17 +119,24 @@ publish: publish-check changelog: cargo run --package changelog update -# record demo animation -record: +# record, upload, and render demo animation +demo: demo-record demo-upload demo-render + +demo-record: #!/usr/bin/env bash set -euxo pipefail cargo build --release --all rm -f tmp/9front.torrent asciinema rec \ + --title "Intermodal {{version}} Demo" \ --command ./target/release/demo \ --overwrite \ tmp/demo.json + +demo-upload: asciinema upload tmp/demo.json + +demo-render: asciicast2gif tmp/demo.json www/demo.gif # open site index