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:
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user