thunder_cli 3.0.0
thunder_cli: ^3.0.0 copied to clipboard
Create Flutter apps with GetX, BLoC or Cubit in seconds and generate features, API models, Postman collection code and translations.
3.0.0 #
Thunder CLI was rebuilt so every command works again, on current Flutter and Dart.
Breaking
- Commands are now sub-commands:
thunder init,thunder feature <name>,thunder model,thunder c_api,thunder localization. The old flags (thunder --init,--feature,--model,--c_api,--localization,--help) still work. - Generated features live in
lib/app/features/<name>/and usepackage:imports. - Minimum Dart SDK is 3.4.
Fixed
thunder,thunder --helpandthunder --c_apicrashed withCould not find an option named "--c_api".thunder --initfailed: it cloned a template repository that no longer exists. The template is back as Thunder-Template (the oldFlutter-GetX-TemplateURL redirects to it), and Thunder also ships an offline copy, soinitworks without the download too.thunder --featuregenerated controllers and repositories with wrong import paths, so the app did not compile.- Windows-only commands (
rd /s /q,\paths) broke Thunder on macOS and Linux. thunder --modelasked for a feature name it never used and generated models that crashed on nested lists, numbers sent as1instead of1.0, and keys such asclass,first-nameor2fa.thunder --localizationcrashed whenthunder.jsondid not exist.
New
- Three state managements: GetX, BLoC and Cubit
(
thunder init my_app --state getx|bloc|cubit; asked when missing, GetX by default). The choice is saved inthunder.jsonand every command generates code for it. BLoC and Cubit projects useflutter_bloc,get_itandgo_router. thunder init:flutter create+ the template of your style, with networking (DioHelper+ token interceptor +ApiResult), services (storage, theme, language), a route guard middleware, DI, routing, localization (en/ar), light/dark theme, a home feature, a settings page and passing tests.--templatetakes your own template (GitHub URL with#branch, git URL, zip URL or folder);--offlineuses the bundled copy. Optional git repository, first push to GitHub, Telegram APK GitHub Action and VS Code.thunder feature <name>: view, controller (GetX) / bloc + event + state (BLoC) / cubit + state (Cubit), repository, API endpoint, DI and route in one command. Existing files are never overwritten without--force.thunder model: from a URL (--url,--method,--body,--headers) or a local file (--json).thunder c_api: Postman v2.0 / v2.1 collections with nested folders, path variables (:id,{{id}}), query parameters, raw JSON / form-data / urlencoded bodies and saved example responses (typed response models). Builds a controller, a bloc (one event per request) or a cubit (one method per request) per folder.thunder localization --from en --to ar,fr: only new texts are translated; languages are remembered inthunder.jsonand added tosupportedLocales.- Every option can be passed on the command line and
--yesnever asks questions, so Thunder works in scripts and CI. - Generated files are formatted with
dart format. - Unit tests, an end-to-end script (
tool/e2e.sh, all three styles) and GitHub Actions CI.
2.3.5 #
- Update package structure
2.3.4 #
- Fix bug when clone repository
2.3.3 #
- Solve the problem when installing the package
2.3.2 #
- Enhancement package
2.3.1 #
- Update architecture