feat: update launch configurations and build scripts for staging and production environments

This commit is contained in:
Achintha Isuru
2026-03-09 17:27:56 -04:00
parent 093cc4e0a4
commit fe98462431
4 changed files with 120 additions and 35 deletions

View File

@@ -14,15 +14,14 @@ scripts:
echo " 🚀 KROW WORKFORCE CUSTOM COMMANDS 🚀"
echo "============================================================"
echo " BUILD COMMANDS:"
echo " - melos run build:client : Build Client App (APK)"
echo " - melos run build:staff : Build Staff App (APK)"
echo " - melos run build:client -- <PLATFORM> --<MODE> --flavor <ENV> --dart-define-from-file=../../config.<ENV>.json"
echo " - melos run build:staff -- <PLATFORM> --<MODE> --flavor <ENV> --dart-define-from-file=../../config.<ENV>.json"
echo " - melos run build:design-system : Build Design System Viewer"
echo ""
echo " DEBUG/START COMMANDS:"
echo " - melos run start:client -- -d <ID> : Run Client App"
echo " - melos run start:staff -- -d <ID> : Run Staff App"
echo " - melos run start:client -- -d <ID> --flavor <ENV> --dart-define-from-file=../../config.<ENV>.json"
echo " - melos run start:staff -- -d <ID> --flavor <ENV> --dart-define-from-file=../../config.<ENV>.json"
echo " - melos run start:design-system : Run DS Viewer"
echo " (e.g., melos run start:client -- -d chrome)"
echo ""
echo " CODE GENERATION:"
echo " - melos run gen:l10n : Generate Slang l10n"
@@ -49,32 +48,30 @@ scripts:
packageFilters:
dependsOn: build_runner
# Single-line scripts so that melos run arg forwarding works via --
# Usage: melos run build:client -- apk --release --flavor dev --dart-define-from-file=../../config.dev.json
build:client:
run: |
melos run gen:l10n --filter="core_localization"
melos run gen:build --filter="core_localization"
melos exec --scope="krowwithus_client" -- "flutter build apk"
description: "Build the Client app (Android APK by default)."
run: melos exec --scope="krowwithus_client" -- flutter build
description: "Build the Client app. Pass args via --: <platform> --<mode> --flavor <env> --dart-define-from-file=../../config.<env>.json"
build:staff:
run: |
melos run gen:l10n --filter="core_localization"
melos run gen:build --filter="core_localization"
melos exec --scope="krowwithus_staff" -- "flutter build apk"
description: "Build the Staff app (Android APK by default)."
run: melos exec --scope="krowwithus_staff" -- flutter build
description: "Build the Staff app. Pass args via --: <platform> --<mode> --flavor <env> --dart-define-from-file=../../config.<env>.json"
build:design-system-viewer:
run: melos exec --scope="design_system_viewer" -- "flutter build apk"
run: melos exec --scope="design_system_viewer" -- flutter build apk
description: "Build the Design System Viewer app (Android APK by default)."
# Single-line scripts so that melos run arg forwarding works via --
# Usage: melos run start:client -- -d android --flavor dev --dart-define-from-file=../../config.dev.json
start:client:
run: melos exec --scope="krowwithus_client" -- "flutter run"
description: "Start the Client app. Pass platform using -- -d <platform>, e.g. -d chrome"
run: melos exec --scope="krowwithus_client" -- flutter run
description: "Start the Client app. Pass args via --: -d <device> --flavor <env> --dart-define-from-file=../../config.<env>.json"
start:staff:
run: melos exec --scope="krowwithus_staff" -- "flutter run"
description: "Start the Staff app. Pass platform using -- -d <platform>, e.g. -d chrome"
run: melos exec --scope="krowwithus_staff" -- flutter run
description: "Start the Staff app. Pass args via --: -d <device> --flavor <env> --dart-define-from-file=../../config.<env>.json"
start:design-system-viewer:
run: melos exec --scope="design_system_viewer" -- "flutter run"
run: melos exec --scope="design_system_viewer" -- flutter run
description: "Start the Design System Viewer app. Pass platform using -- -d <platform>, e.g. -d chrome"