搜尋套件、儲存庫與 APP 分類

套件詳情v1.4.2

mvvm_cli_nerdzlab

MVVM CLI 工具,一個用於簡化 MVVM 項目建立的命令列實用程式。

macOSWindowsLinux
近 30 天下載
24
喜歡數
1
Pub 分數
120

安裝套件

flutter pub add mvvm_cli_nerdzlab

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

MVVM CLI 工具是一個命令列實用程式,可簡化在 Flutter 專案中設定 MVVM(模型-視圖-檢視模型)架構的過程。它會自動建立專案結構,包含模型、視圖、檢視模型以及必要的樣板程式碼。此工具專為尋求一致且可擴展的 Flutter 應用組織結構的開發者設計,可減少重複的設定任務並促進最佳實務。該工具支援 macOS、Windows 和 Linux,跨平台使用方便。它透過 pub.dev 與 Flutter 無縫整合。

適用情境

  • 使用 MVVM 快速架設新的 Flutter 專案
  • 自動化 MVVM 組件的資料夾和檔案產生
  • 在團隊之間維持專案結構的一致性
  • 透過減少樣板設定來加速開發
  • 使用預定義模板支援敏捷工作流程

主要特色

  • 自動化 MVVM 資料夾與檔案建立
  • 跨平台支援(macOS、Windows、Linux)
  • 與 Flutter 的 pub.dev 包系統整合
  • 基於模板的專案骨架產生
  • 可設定的專案結構

適合對象

  • 採用MVVM架構的Flutter開發者
  • 需要標準化專案設定的團隊
  • 初學者學習MVVM模式
  • 使用結構化代碼進行快速原型設計
  • 旨在減少手動設定時間的開發人員

使用建議

  • 需要熟悉 MVVM 概念
  • 超出所提供範本的自訂功能有限
  • 依賴外部 GitHub 倉庫以取得更新
  • 產生後可能需要手動調整
  • 更適合新專案,而非重構現有專案

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

MVVM CLI Tool

MVVM CLI Tool, a command-line utility designed to streamline the creation of MVVM (Model-View-ViewModel) projects. This tool automates the initial setup of your MVVM architecture, making it easier and faster to get started with your development process.

Features & Usage

  • Create New Projects: Generate a complete MVVM project.
  • Git Initial Commits(optional): Initial commits in created project.

Use mvvm create.

  • Analyze .arb files: Analyze arb files for usage in dart code, and delete not necessary arb keys.

Use mvvm analyze --arb.

  • Generate Colors & TextStyles: Generate colors from .xml files and TextStyles from text_style_const.dart file.

Use mvvm generate or specify the --colors or --textStyle to generate only one type: mvvm generate --colors.

Installation

To install the MVVM CLI tool, run:

dart pub global activate mvvm_cli_nerdzlab

Once the tool is activated, you need to add the .pub-cache/bin directory to your system's PATH to ensure that you can run the mvvm commands from any location in your terminal. This can be done by adding the following line to your shell configuration file (e.g., .bashrc, .zshrc, or .bash_profile):

export PATH="$PATH":"$HOME/.pub-cache/bin"

Verification

To verify that the installation was successful and the PATH is correctly set, run:

mvvm

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。