From 6d903e36b59b978cc541152d20554891c5f4908f Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Sun, 20 Oct 2024 11:49:41 -0700 Subject: [PATCH] update: updating melos scripts for development task --- melos.yaml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/melos.yaml b/melos.yaml index 6aee386..8a364e8 100644 --- a/melos.yaml +++ b/melos.yaml @@ -8,6 +8,7 @@ command: version: # Generate commit links in package changelogs. linkToCommits: true + message: "chore: Bump version to %v" # Only allow versioning to happen on main branch. branch: main workspaceChangelog: true @@ -15,3 +16,50 @@ command: ide: intellij: enabled: false + +# Project scripts + +scripts: + analyze: + run: dart analyze . + description: Run static analysis on all packages + + test: + run: melos exec -c 1 --fail-fast -- "dart test" + description: Run tests for all packages + + format: + run: dart format . + description: Format all Dart files in the repository + + generate: + run: melos exec -- "dart run build_runner build --delete-conflicting-outputs" + description: Run code generation for all packages + + ci: + run: melos run analyze && melos run test + description: Run full CI pipeline + + docs:generate: + run: melos exec -- "dart doc ." + description: Generate documentation for all packages + + deps:check: + run: melos exec -- "dart pub outdated" + description: Check for outdated dependencies + + deps:upgrade: + run: melos exec -- "dart pub upgrade" + description: Upgrade all dependencies to their latest versions + + publish: + run: melos publish + description: Publish all packages that have changed. + + debug_pkg_name: + run: melos exec -- echo "Package name is {MELOS_PACKAGE_NAME}" + description: Debug package name resolution + + debug_pkg_path: + run: melos exec -- echo "Package name is {MELOS_PACKAGE_PATH}" + description: Debug package name resolution