- Go to examples folder
cd examples
- Run the following command:
flutter create example_name --org flyer.chat
- Go to the root folder
cd ..
- Run melos bootstrap:
melos bs
- Replace
analysis_options.yaml
content with the following:
include: ../../analysis_options.yaml
- Go to packages folder
cd packages
- Run the following command:
flutter create package_name --template=package
- Go to the root folder
cd ..
- Run melos bootstrap:
melos bs
- Replace
analysis_options.yaml
content with the following:
include: ../../analysis_options.yaml
- Make sure to follow other packages structure. Minimum required files are:
.dart_tool/
lib/
src/
code.dart
package_name.dart
analysis_options.yaml
CHANGELOG.md
LICENSE
melos_package_name.iml
pubspec.lock
pubspec.yaml
README.md
Remove all other files if needed and update pubspec.yaml
similar to other packages.
Remember to run melos bs
again after you finished all configs and changed pubspec.yaml
file.
To run tests for a specific package:
melos test:selective
To run all tests:
melos test
To generate coverage for a specific package:
melos coverage:selective
To generate coverage for all packages:
melos coverage
Get dependencies for all packages:
melos bs
Clean all packages:
melos clean
Build types (flutter_chat_types):
melos build
Additional:
melos analyze
melos format
melos fix