relax_cli 0.1.6 copy "relax_cli: ^0.1.6" to clipboard
relax_cli: ^0.1.6 copied to clipboard

CLI to scaffold Flutter projects with clean architecture, state management (Bloc, Provider, Riverpod, GetX), and RelaxORM integration.

0.1.6 #

  • Added relax pub get — runs flutter pub get in the current project.
  • Added relax pub add <package> — runs flutter pub add; accepts -V <constraint> to pin a version.
  • Added relax build apk — formats code then builds an optimized release APK with obfuscation, split-debug-info, tree-shaking, and split-per-ABI.
  • Added relax build aab — formats code then builds an optimized release AAB (Android App Bundle) for Google Play.
  • Added relax clean — runs flutter clean in the current project.
  • Added FVM auto-detection — all Flutter commands use fvm flutter automatically when .fvm/fvm_config.json is present.
  • Added --flavor (-f) and --target (-t) options for build apk and build aab; defaults to production flavor and lib/main_<flavor>.dart entry point.

0.1.5 #

  • Added shared encrypted local storage scaffolding via relax_storage, including a generated CachedStorage service in the app core.
  • Added ENCRYPTION_KEY to generated flavor environment files and wired it into RelaxStorage initialization.
  • Updated generated project dependencies to relax_orm ^0.1.4, relax_orm_generator ^0.1.6, and relax_storage ^1.0.1.
  • Fixed generated DI and bootstrap templates so Bloc, Provider, Riverpod, and GetX projects initialize storage consistently and import the cache helper from the correct package path.

0.1.4 #

  • Added shared encrypted local storage scaffolding via relax_storage, including a generated CachedStorage service in the app core.
  • Added ENCRYPTION_KEY to generated flavor environment files and wired it into RelaxStorage initialization.
  • Updated generated project dependencies to relax_orm ^0.1.3, relax_orm_generator ^0.1.5, and relax_storage ^1.0.1.
  • Fixed generated DI and bootstrap templates so Bloc, Provider, Riverpod, and GetX projects initialize storage consistently and import the cache helper from the correct package path.

0.1.3 #

  • Fixed generated Flutter app templates to include flutter_localizations and correct relative core imports for Bloc, GetX, Provider, and Riverpod starter projects.
  • Fixed generated widget test scaffolding by wrapping const App() inside TranslationProvider correctly.
  • Improved relax create output by adding flutter pub get to the next steps instructions.
  • Removed an incomplete stray generator file from the repository.

0.1.2 #

  • Fixed generated build.gradle.kts failing to compile with Kotlin DSL errors.
    • Replaced Groovy syntax (def, new Properties(), single-quoted strings, withReader, toInteger()) with valid Kotlin DSL (val, Properties(), double-quoted strings, .reader().use {}, .toInt()).
    • Fixed deprecated kotlinOptionskotlin { compilerOptions {} } block.
    • Fixed Unresolved reference: it in signing config by using explicit named lambda parameter.
    • Added required import java.util.Properties and import java.io.FileInputStream.

0.1.1 #

  • Added built-in internationalization (i18n) support via slang.
    • Projects are scaffolded with fr (base) and en locale JSON files.
    • build.yaml is generated with slang configuration.
    • Translations are auto-generated after relax create via dart run slang + build_runner.
  • Automatic flutter pub get and code generation run at the end of relax create.
  • Patched iOS Info.plist with supported locales during project creation.
  • Improved generated README.md with flavor run commands and translation regeneration instructions.
  • Removed sample product and user modules from the example project.
  • Removed redundant flutter pub get from post-create instructions (now runs automatically).

0.1.0 #

  • Initial release.
  • relax create — scaffold Flutter projects with Bloc, Provider, Riverpod, or GetX.
  • relax generate feature — add feature modules with auto-detected architecture.
  • relax generate module — add domain/data modules with RelaxORM integration.
  • relax generate model — add standalone ORM model classes with @RelaxTable.
  • relax doctor — check Dart, Flutter, and project environment.
  • Automatic build_runner execution after module and model generation.
  • Material 3 theming with customizable color palette and font.
  • Android flavor configuration (development, staging, production).
  • Environment package generation via env_builder.
1
likes
150
points
202
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CLI to scaffold Flutter projects with clean architecture, state management (Bloc, Provider, Riverpod, GetX), and RelaxORM integration.

Repository (GitHub)
View/report issues
Contributing

Topics

#cli #flutter #code-generation #clean-architecture #orm

License

MIT (license)

Dependencies

args, http, mason, mason_logger, path

More

Packages that depend on relax_cli