bclean 0.1.1
bclean: ^0.1.1 copied to clipboard
A powerful CLI tool for Flutter to generate Clean Architecture with BLoC or Cubit state management and dartz error handling, inspired by get_cli.
0.1.1 #
- Auto
main.dartSetup:bclean initnow automatically generates/updateslib/main.dartwithWidgetsFlutterBinding.ensureInitialized(),await di.initDependencies(), andAppRouter.routespre-configured soGetItis always initialized beforerunApp. - Smart Initial Route:
AppRouter.initialautomatically updates to the first created feature/page route so the app runs out-of-the-box without manual route edits. - Enhanced Documentation: Expanded
README.mdwith a step-by-step Quick Start guide, command reference table, architecture tree, and JSON-to-Model examples.
0.1.0 #
- Initial release of
bcleanCLI. - Added
bclean initcommand to scaffold Clean Architecturecore/layer (failures.dart,exceptions.dart,usecase.dartwithdartz,network_info.dart),app_router.dart,injection_container.dart(get_it), and auto-add required dependencies inpubspec.yaml. - Added
bclean create feature:<name>command to generate full Domain, Data, and Presentation layers (BLoCorCubitvia--cubit) with automatic DI and Router registration. - Added sub-component generators:
bclean create usecase:<name> on <feature>,bclean create bloc:<name> on <feature>,bclean create cubit:<name> on <feature>, andbclean create page:<name> on <feature>. - Added
bclean generate model on <feature> with <path/to/file.json>to automatically generate Domain Entities (Equatable) and Data Models (fromJson,toJson,copyWith) from JSON files.