Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaldarof/project-structure-generator
Project Structure Generator saves time and reduces setup overhead, allowing you to focus on coding.
https://github.com/xaldarof/project-structure-generator
flutter generate library project structure
Last synced: about 2 months ago
JSON representation
Project Structure Generator saves time and reduces setup overhead, allowing you to focus on coding.
- Host: GitHub
- URL: https://github.com/xaldarof/project-structure-generator
- Owner: xaldarof
- License: apache-2.0
- Created: 2023-02-16T18:28:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T12:25:31.000Z (11 months ago)
- Last Synced: 2024-10-12T05:44:07.431Z (3 months ago)
- Topics: flutter, generate, library, project, structure
- Language: Dart
- Homepage:
- Size: 70.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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](./screenshots/img.png)