Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opinionate the folder structure #7

Open
iaacosta opened this issue Aug 3, 2021 · 0 comments
Open

Opinionate the folder structure #7

iaacosta opened this issue Aug 3, 2021 · 0 comments

Comments

@iaacosta
Copy link
Contributor

iaacosta commented Aug 3, 2021

One of the most common doubts when starting a project is the project directory structure. I think this should be addressed in this generator to be Platanus-like

One option is to separate the components in features, and leave other directories to the common stuff:

.
└── src/
    ├── api
    ├── components
    ├── config
    ├── features/
    │   ├── feature-1/
    │   │   ├── components
    │   │   ├── hooks
    │   │   ├── screens
    │   │   └── utils
    │   ├── feature-2
    │   ├── feature-3
    │   └── ...
    ├── hooks
    ├── screens
    ├── store
    └── utils

Another is to just follow a default project structure and make the corresponding folders if necessary

.
└── src/
    ├── api
    ├── components/
    │   ├── feature-1
    │   ├── feature-2
    │   ├── ...
    │   └── shared
    ├── config
    ├── hooks
    ├── navigators
    ├── screens/
    │   ├── feature-1
    │   ├── feature-2
    │   ├── ...
    │   └── shared
    ├── store
    └── utils

We should use .gitkeep files to create some common folders (utils, api, config, hooks, navigators, components)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant