Refactor demo recipe in justfile into multiple recipes

type: development
This commit is contained in:
Casey Rodarmor 2020-04-07 22:06:44 -07:00
parent 92748f9fd4
commit db2a2ac4f5
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0

View File

@ -119,17 +119,24 @@ publish: publish-check
changelog: changelog:
cargo run --package changelog update cargo run --package changelog update
# record demo animation # record, upload, and render demo animation
record: demo: demo-record demo-upload demo-render
demo-record:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euxo pipefail set -euxo pipefail
cargo build --release --all cargo build --release --all
rm -f tmp/9front.torrent rm -f tmp/9front.torrent
asciinema rec \ asciinema rec \
--title "Intermodal {{version}} Demo" \
--command ./target/release/demo \ --command ./target/release/demo \
--overwrite \ --overwrite \
tmp/demo.json tmp/demo.json
demo-upload:
asciinema upload tmp/demo.json asciinema upload tmp/demo.json
demo-render:
asciicast2gif tmp/demo.json www/demo.gif asciicast2gif tmp/demo.json www/demo.gif
# open site index # open site index