mago_merlino 0.1.0 copy "mago_merlino: ^0.1.0" to clipboard
mago_merlino: ^0.1.0 copied to clipboard

outdated

✨ Mago Merlino ✨ #

Features #

Generates flutter feature BLOC/REPO/VIEW

Heavily inspired by very_good_cli

Installation #

Move the mago_merlino file to the root of your project.

or

dart pub global activate mago_merlino
or
dart pub global activate -sgit https://github.com/PatchAii/mago-merlino.git


dart pub global run mago_merlino:mago_merlino create-feature abc
dart pub global run mago_merlino:mago_merlino create-feature abc --path lib/feature

Commands #


create-feature #

  • dart pub global run mago_merlino:mago_merlino create-feature abc Creates a new flutter feature in the root.

  • dart pub global run mago_merlino:mago_merlino create-feature abc --path lib/feature Creates a new flutter feature in the specified directory.

  • dart pub global run mago_merlino:mago_merlino create-feature abc --package-name your_package_name Creates a new flutter feature using your project package name.

  • pub run mago_merlino update-feature Updates the template of the flutter feature


create-feature-test #

  • dart pub global run mago_merlino:mago_merlino create-feature abc Creates a new flutter feature test in the test folder, at root level.

  • dart pub global run mago_merlino:mago_merlino create-feature abc --path lib/feature Creates a new flutter feature test in the test folder, inside the specified directory.

  • dart pub global run mago_merlino:mago_merlino create-feature abc --package-name your_package_name Creates a new flutter feature test using your project package name.

  • pub run mago_merlino update-feature-test Updates the template of the flutter feature test


Building from source #

  • To run locally:
dart bin/mago_merlino.dart command_name
  • For production release:
dart2native bin/mago_merlino.dart -o mago_merlino