-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathjustfile
87 lines (70 loc) · 1.91 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
set positional-arguments
all: build test clippy fmt-check forbid check-lockfile
build:
cargo lcheck --all
cargo lcheck --tests
cargo lcheck --tests --all-features
test *args="--all":
cargo ltest --all-features "$@"
fast-tests *args="":
cargo ltest "$@"
slow-tests *args="slow_tests":
cargo ltest --features slow-tests "$@"
clippy:
cargo lclippy --all-targets --all-features
cargo lclippy --all-targets --all-features --tests
fmt-check:
cargo fmt --all -- --check
@echo formatting check done
forbid:
./bin/forbid
check-lockfile:
cargo update --locked --package agora
watch +command='ltest':
cargo watch --clear --exec '{{command}}'
push: all
git push
publish revision:
cargo run -p publish -- {{revision}}
clean-binaries:
rm -rf target/bitcoin* target/ln*
run example-files='example-files' domain='test.agora.download' network='testnet':
cargo lcheck
scp root@{{domain}}:/var/lib/lnd/tls.cert target/tls.cert
scp root@{{domain}}:/var/lib/lnd/data/chain/bitcoin/{{network}}/invoice.macaroon target/invoice.macaroon
cargo lrun -- \
--address localhost \
--http-port 8080 \
--directory {{example-files}} \
--lnd-rpc-authority {{domain}}:10009 \
--lnd-rpc-cert-path target/tls.cert \
--lnd-rpc-macaroon-path target/invoice.macaroon
render-icons:
mkdir -p tmp
rsvg-convert \
--output tmp/favicon.png \
--zoom 32 \
logo.svg
convert tmp/favicon.png static/favicon.ico
rsvg-convert \
--background-color '#3457d5' \
--output static/apple-touch-icon.png \
--zoom 180 \
logo.svg
open:
#!/usr/bin/env bash
set -euo pipefail
if command -v xdg-open &> /dev/null; then
xdg-open http://localhost:8080
else
open http://localhost:8080
fi
scrape-website:
wget \
--adjust-extension \
--convert-links \
--directory-prefix docs \
--mirror \
--no-host-directories \
--page-requisites \
https://agora.download/