v0.3.0
feature_folder_cli
CLI 工具,可生成文件夹结构,以减少设置模型、服务、仓库、屏幕和组件所需重复的工作。
42喜欢 36近 30 天下载160Pub 分数
AndroidiOSmacOSWindowsLinux
CLI 工具,用于按功能文件结构生成文件夹
以下为英文项目原文快照,最新内容请访问 GitHub。
A Dart CLI tool that generates the folder structure for the folder-by-feature pattern. This tool helps to reduce the repetitive work required to setup directories for models, services, repositories, screens and widgets.
The folder structure generated by the cli is as follows:
feature/
┣ domain/
┃ ┣ models/
┃ ┣ repository/
┃ ┣ services/
┃ ┗ index.dart
┣ screens/
┃ ┣ feature_screen.dart
┃ ┗ index.dart
┣ widgets/
┃ ┣ feature_component.dart
┃ ┗ index.dart
┣ providers/
┃ ┣ feature_provider.dart
┃ ┗ index.dart
┗ index.dart
Make sure you are in the root of your project
ff generate -n <feature_name> -t <type> -p <path>
Currently supporting only the
simpleandgetxtypes