-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathjustfile
More file actions
59 lines (50 loc) · 1.28 KB
/
justfile
File metadata and controls
59 lines (50 loc) · 1.28 KB
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
[group("Repo")]
[doc("Default command; list all available commands.")]
@list:
just --list --unsorted
[group("Repo")]
[doc("Open repo on GitHub in your default browser.")]
repo:
open https://github.com/bitcoindevkit/bdk-dart
[group("Dart")]
[doc("Format the Dart codebase.")]
format:
dart format lib test example bdk_demo/lib bdk_demo/test
[group("Dart")]
[doc("Run static analysis.")]
analyze:
dart analyze --fatal-infos --fatal-warnings lib test example
[group("Dart")]
[doc("Generate the API documentation.")]
docs:
dart doc
[group("Dart")]
[doc("Run all tests, optionally filtering by expression.")]
test *ARGS:
dart test {{ if ARGS == "" { "" } else { ARGS } }}
[group("Bindings")]
[doc("Build native library and regenerate bindings.")]
generate-bindings:
bash ./scripts/generate_bindings.sh
[group("Demo")]
[doc("Run Flutter analysis for the demo app.")]
demo-analyze:
cd bdk_demo && flutter analyze
[group("CI")]
[doc("Run the same checks as CI.")]
ci:
just format
just analyze
just test
just demo-analyze
[group("Dart")]
[doc("Remove build and tool artifacts to start fresh.")]
clean:
rm -rf .dart_tool/
rm -rf build/
rm -rf native/target/
rm -rf coverage/
rm -rf bdk_demo/.dart_tool/
rm -rf bdk_demo/build/
rm -rf example/.dart_tool/
rm -rf example/build/