Refactor demo recipe in justfile into multiple recipes
type: development
This commit is contained in:
parent
92748f9fd4
commit
db2a2ac4f5
11
justfile
11
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user