Skip to content

Commit 9594431

Browse files
authored
chore: add justfile
1 parent 22dd17c commit 9594431

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

justfile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[group("Repo")]
2+
[doc("Default command; list all available commands.")]
3+
@list:
4+
just --list --unsorted
5+
6+
[group("Repo")]
7+
[doc("Open repo on GitHub in your default browser.")]
8+
repo:
9+
open https://github.com/bitcoindevkit/bdk-dart
10+
11+
[group("Submodule")]
12+
[doc("Initialize bdk-ffi submodule to committed hash.")]
13+
submodule-init:
14+
git submodule update --init
15+
16+
[group("Submodule")]
17+
[doc("Hard reset the bdk-ffi submodule to committed hash.")]
18+
submodule-reset:
19+
git submodule update --force
20+
21+
[group("Submodule")]
22+
[doc("Checkout the bdk-ffi submodule to the latest commit on master.")]
23+
submodule-to-master:
24+
cd ./bdk-ffi/ \
25+
&& git fetch origin \
26+
&& git checkout master \
27+
&& git pull origin master
28+
29+
[group("Dart")]
30+
[doc("Format the Dart codebase.")]
31+
format:
32+
dart format .
33+
34+
[group("Dart")]
35+
[doc("Run static analysis.")]
36+
analyze:
37+
dart analyze
38+
39+
[group("Dart")]
40+
[doc("Generate the API documentation.")]
41+
docs:
42+
dart doc
43+
44+
[group("Dart")]
45+
[doc("Run all tests, optionally filtering by expression.")]
46+
test *ARGS:
47+
dart test {{ if ARGS == "" { "" } else { ARGS } }}
48+
49+
[group("Dart")]
50+
[doc("Remove build and tool artifacts to start fresh.")]
51+
clean:
52+
rm -rf .dart_tool/
53+
rm -rf build/
54+
rm -rf target/
55+
rm -rf bdk-ffi/target/
56+
rm -rf coverage/
57+
rm -rf bdk_demo/.dart_tool/
58+
rm -rf bdk_demo/build/
59+
rm -rf examples/.dart_tool/
60+
rm -rf examples/build/

0 commit comments

Comments
 (0)