Setup Mono Repo Using Melos
Hi @Frezyx,
I wanted to fix an issue but noticed that a lot of things are being handled manually. Since I have been using Melos for a few years now, I found it helpful when dealing with multi-package repositories or monorepos.
I have added Melos setup to this repository.
Now, you can version your package at once using:
melos version
Note: I recommend using convention commits. Refer Automated Releases
And publish all packages at once using:
melos publish
Reference Melos Documentation
Utils Alternatives with Melos Commands
| Old Script | Melos Equivalent |
|---|---|
deploy_web.sh |
melos deploy-shop-app-example |
pub_clean_all.sh |
melos clean |
pub_get_all.sh |
melos bs |
pub_get_all_offline.sh |
melos bs --offline |
publish_all.sh |
melos publish |
test.sh |
melos test |
Improving the Workflow
I saw that there were multiple workflows for the package, so I removed them and replaced them with a single workflow using a matrix strategy. This way, we run the same checks but in less time and with fewer resources.
Bonus: I also added a new workflow that automatically hosts the examples/shop_app_example on GitHub Pages whenever there is a push to the master branch.
Take a look—I hope this helps! 🚀
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 98.42%. Comparing base (d6a4c06) to head (dcac5e3).
:warning: Report is 391 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@ Coverage Diff @@
## master #327 +/- ##
=======================================
Coverage 98.42% 98.42%
=======================================
Files 28 29 +1
Lines 572 573 +1
=======================================
+ Hits 563 564 +1
Misses 9 9
| Flag | Coverage Δ | |
|---|---|---|
| talker | 96.03% <ø> (?) |
|
| talker_bloc_logger | 100.00% <ø> (?) |
|
| talker_dio_logger | 100.00% <ø> (?) |
|
| talker_http_logger | 100.00% <ø> (?) |
|
| talker_logger | 100.00% <ø> (?) |
|
| talker_riverpod_logger | 100.00% <ø> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@Frezyx Hi,
Please let me know if this idea doesn’t work for you, and I’ll close this PR. I spent a few hours working on it, so I just wanted to check again.
Thanks!
Hello @ProjectAJ14 ! Everything is good in this PR! I like it but now we have a lot of opened PR's and I can't check all changes to make detailed review. Please wait a bit before I can check all changes ❤️