FLUTTER ECOSYSTEM

xaldarof/project-structure-generator

專案結構產生器可節省時間並減少設定開銷,讓您可以專注於程式設計。

project-structure-generator 專案封面
Stars
4
Forks
0
最近推送(UTC)
2024年2月7日
專案狀態
未封存
xaldarof GitHub avatar
GITHUB User

xaldarof ↗

bedroom
語言Dart

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 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