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

套件詳情v1.0.1

project_structure_generator

專案結構產生器

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
9
喜歡數
1
Pub 分數
125

安裝套件

flutter pub add project_structure_generator

套件介紹

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

一個 Flutter 套件,可自動建立有組織的專案結構,協助開發者在多個平台建立一致且可擴展的目錄配置。它支援 Android、iOS、Web、macOS、Windows 與 Linux,確保程式碼組織的一致性。產生器透過提供預設範本,簡化新成員的入門流程,並減少設定時間。它可透過簡單的命令列新增與 Flutter 的 pub 系統無縫整合。

適用情境

  • 快速專案初始化
  • 團隊級程式碼標準化
  • 跨平台開發設定
  • 引導新開發人員
  • 維持專案版面的一致性

主要特色

  • 基於模板的結構生成
  • 多平台支援
  • 輕鬆整合 CLI
  • 可自定義的目錄範本
  • 自動資料夾建立

適合對象

  • Flutter 團隊
  • 新的 Flutter 項目
  • 大規模應用
  • 開發工作流程自動化
  • 敏捷開發環境

使用建議

  • 需要手動配置範本
  • 可能與現有檔案衝突
  • 僅限目錄結構
  • 不適合複雜的建構邏輯
  • 依賴於正確的初始設定

原始 README

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

If you want to convert folders to .json file, for example

flutter pub run project_structure_generator:from_folders -root lib/ -output lib/output.json

-root - root dir

-output - output dir for .json file

If you want to convert json to folders, for example

flutter pub run project_structure_generator:to_folders -json lib/structure.json -output lib/

-output - output dir

-json - input json dir

See folder_structure.json in root path of project for example

Here is example json:

{
  "name": "project_lib",
  "type": "directory",
  "children": [
    {
      "name": "core",
      "type": "directory",
      "children": [
        {
          "name": "file.txt",
          "type": "file"
        },
        {
          "name": "file2.txt",
          "type": "file"
        }
      ]
    }
  ]
}

Will be generated

Alt Text

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。