From 2246d9ca30bfe108f97ec2f38cd3c347493d2dd1 Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Mon, 6 May 2024 14:49:24 +0300 Subject: [PATCH] Add descriptions to just recipes - Rename 'all' to 'bootstrap' - Add 'frb' parameter to install 'frb' dependencies - Disable test-flutter recipe - Do not build library again child recipes of 'test' --- lib/bindings/bindings-flutter/justfile | 33 ++++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/lib/bindings/bindings-flutter/justfile b/lib/bindings/bindings-flutter/justfile index bdfb3a9..486ca87 100644 --- a/lib/bindings/bindings-flutter/justfile +++ b/lib/bindings/bindings-flutter/justfile @@ -6,8 +6,10 @@ export CARGO_TERM_COLOR := "always" default: just --list --unsorted -all: +# Initializes the workspace +bootstrap frb='true': just clean + @if {{frb}} == true; then just frb; fi just init just gen just build @@ -48,12 +50,20 @@ build-android profile='release': build-other *args: dart scripts/build_other.dart {{args}} -# (melos) -test: test-dart # test-flutter +# (melos) Run tests on packages in workspace +test build='false': + just test-dart {{build}} +# test-flutter {{build}} -# (melos) -test-dart: build - melos run test-dart +# (melos) Run tests on Dart packages in workspace +test-dart build='true': + @if {{build}} == true; then just build; fi + melos test-dart + +# (melos) Run integration tests on Flutter packages in workspace +#test-flutter build='true': +# @if {{build}} == true; then build; fi +# melos test-flutter # Softlinks library archives from platform-build to their expected locations link: @@ -63,22 +73,19 @@ link: -ln -sf $(pwd)/platform-build/other.tar.gz ../../../packages/flutter/windows/{{curr_version}}.tar.gz -ln -sf $(pwd)/platform-build/android.tar.gz ../../../packages/flutter/android/{{curr_version}}.tar.gz -# (melos) -test-flutter: build-apple build-android build-other - melos run test-flutter - # (melos) use instead of flutter pub get init *args: melos bootstrap {{args}} -# (melos) generate docs +# (melos) Generate docs for packages in workspace docs: - melos run docs + melos docs -# (melos) +# (melos) Cleans the current workspace and all its packages of temporary pub & generated Melos IDE files. clean: melos clean +# (melos) Analyze & check the format of packages in workspace check: melos analyze melos check-format