Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[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("Submodule")]
[doc("Initialize bdk-ffi submodule to committed hash.")]
submodule-init:
git submodule update --init

[group("Submodule")]
[doc("Hard reset the bdk-ffi submodule to committed hash.")]
submodule-reset:
git submodule update --force

[group("Submodule")]
[doc("Checkout the bdk-ffi submodule to the latest commit on master.")]
submodule-to-master:
cd ./bdk-ffi/ \
&& git fetch origin \
&& git checkout master \
&& git pull origin master

[group("Dart")]
[doc("Format the Dart codebase.")]
format:
dart format .

[group("Dart")]
[doc("Run static analysis.")]
analyze:
dart analyze

[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("Dart")]
[doc("Remove build and tool artifacts to start fresh.")]
clean:
rm -rf .dart_tool/
rm -rf build/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add

 rm -rf target/
 rm -rf bdk-ffi/target/

after line 53?

rm -rf target/
rm -rf bdk-ffi/target/
rm -rf coverage/
rm -rf bdk_demo/.dart_tool/
rm -rf bdk_demo/build/
rm -rf examples/.dart_tool/
rm -rf examples/build/