update: updating melos scripts for development task
This commit is contained in:
parent
a74ecbf4a2
commit
6d903e36b5
1 changed files with 48 additions and 0 deletions
48
melos.yaml
48
melos.yaml
|
@ -8,6 +8,7 @@ command:
|
||||||
version:
|
version:
|
||||||
# Generate commit links in package changelogs.
|
# Generate commit links in package changelogs.
|
||||||
linkToCommits: true
|
linkToCommits: true
|
||||||
|
message: "chore: Bump version to %v"
|
||||||
# Only allow versioning to happen on main branch.
|
# Only allow versioning to happen on main branch.
|
||||||
branch: main
|
branch: main
|
||||||
workspaceChangelog: true
|
workspaceChangelog: true
|
||||||
|
@ -15,3 +16,50 @@ command:
|
||||||
ide:
|
ide:
|
||||||
intellij:
|
intellij:
|
||||||
enabled: false
|
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
|
||||||
|
|
Loading…
Reference in a new issue