A simple cli tool to manage your project.
You can easily add package with puma.
puma package -i mongo_dart
Like that puma will automatically get the latest version of the package.
If you want a specific version of you package you specify the version like that
puma package -i mongo_dart:0.0.1
If you need to reference a package locally you can do
puma package -i ./mongo_dart
Add a dependencie to the dev_dependencies
To add a dev dependencie you can add --dev to the command
puma package -i build_runner:^1.0.0 --dev
To remove a dependencie you can do like that
puma package -d mongo_dart
puma help you manage version management.
If you do a breaking change in your project just run
puma version --breaking
To bump the version of your package.
If you just need to bump the major version of your package you can do
puma version --major
If you just need to bump the minor version of your package you can do
puma version --minor
If you just need to bump the patch version of your package you can do
puma version --patch
You can add Flutter asset by using this command
This will add one file :
puma flutter assets --add lib/main.dart
And this will add the entire folder :
puma flutter assets --add lib