Skip to content

teddichiiwa/melos_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📮 Melos Template

A CLEAN melos template. 🌊🏄‍♂️

🙋 What is melos?

Melos is a CLI tool used to help manage Dart projects with multiple packages (also known as mono-repos). It is currently still in active development however is in use on projects such as FlutterFire.

Splitting up large code bases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories gets complicated. Melos helps solve these issues by allowing multiple packages to work together within one repository, whilst being totally independent of each other. Features include:

  • Automatic versioning & changelog generation.
  • Automated publishing of packages to pub.dev.
  • Local package linking and installation.
  • Executing simultaneous commands across packages.
  • Listing of local packages & their dependencies.
  • Melos also works great on CI/CD environments to help automate complex tasks and challenges.

👉 Melos website

→ Install melos

Melos can be installed as a global package via pub.dev:

dart pub global activate melos

🛫 Bootstrap

Once installed & setup, Melos needs to be bootstrapped. Bootstrapping has 2 primary roles:

  1. Installing all package dependencies (internally using pub get).
  2. Locally linking any packages together.

Clean and Bootstrap all packages:

melos clean_and_bootstrap

📝 Predefine scripts

Perform buildrunner run:

melos build_runner:build

Run flutter test:

melos test:flutter

About

A Clean Melos template for Flutter project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published