Skip to content

Directory Restructuring #49

Description

@tribou

Now that we have some large projects under our belt, it appears we're testing better ways to organize the folders. Let's discuss the options and perhaps get some example PRs to review.

src/components

Proposed new structure:

src/components/
├── App.android.js
├── App.ios.js
├── App.js
├── App.style.css
├── README.md
├── enhancers
│   └── withHandlers
│       └── index.js
├── index.js
├── layouts
│   └── SidebarLayout
│       ├── SidebarLayout.android.js
│       ├── SidebarLayout.ios.js
│       ├── SidebarLayout.js
│       ├── SidebarLayout.style.css
│       ├── SidebarLayout.style.js
│       ├── SidebarLayout.style.js
│       ├── SidebarLayout_test.js
│       └── index.js
├── routes
│   ├── NotFound
│   │   ├── NotFound.android.js
│   │   ├── NotFound.ios.js
│   │   ├── NotFound.js
│   │   ├── NotFound.style.css
│   │   ├── NotFound.style.js
│   │   ├── NotFound_test.js
│   │   └── index.js
│   └── Todos
│       ├── Todos.android.js
│       ├── Todos.ios.js
│       ├── Todos.js
│       ├── Todos.style.css
│       ├── Todos.style.js
│       ├── Todos_test.js
│       └── index.js
└── shared
    └── TextField
        ├── TextField.js
        ├── TextField.style.css
        ├── TextField_test.js
        ├── __snapshots__
        │   └── TextField_test.js.snap
        └── index.js

src/redux/modules

Possibly renamed to src/modules??

Many items can be proposed here... Moving API helper files here, etc. The idea would be to focus on Domain Driven Design and organize by domain (auth, users, entity, etc)

cc @davidcurras @doskogerman @zacacollier

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions