-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
57 lines (45 loc) · 1.17 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# The `--fmt` command is currently unstable.
set unstable := true
default: run
alias b := build
alias f := format
alias fc := format-check
alias l := lint
alias t := test
alias r := run
alias rc := run-custom
alias ad := animated-demo
alias ap := animated-price
# build app
build:
cabal build --enable-tests
# run tests
test:
cabal test
# format files
format:
just --fmt
fourmolu -i app src test
cabal-fmt tick-tock-tui.cabal -i
# check formats
format-check:
fourmolu --mode check app src test
# lint
lint:
hlint app src test
# run app
run:
cabal run tick-tock-tui
# run app with custom args (mempool url + seconds to refresh data)
run-custom url sec:
cabal run tick-tock-tui -- -m {{ url }} -r {{ sec }}
# animated demo
animated-demo:
vhs demo/demo.tape
ffmpeg -ss 2 -i demo/output.gif -vf "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" demo/tick-tock-demo.gif -y
rm demo/output.gif
# animated screen shot (mempool url + seconds to refresh data)
animated-price:
vhs demo/price.tape
ffmpeg -ss 4 -t 5 -i demo/output.gif -vf "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" demo/tick-tock-price.gif -y
rm demo/output.gif