developmentseed / project-seed

A basic starting point for projects.
MIT License
20 stars 12 forks source link

Simplify directory structure #52

Open anandthakker opened 8 years ago

anandthakker commented 8 years ago

I think the directory structure here is deeper/more complicated than necessary. Here's what I'd propose:

. (project root)
|-- LICENSE
|-- README
|-- gulpfile.js
|-- package.json
`-- scripts/ (javascript sources -- compiled into build/bundle.js)
|   `-- lib/
|   `-- components/
|   etc.
`-- styles/ (scss sources -- compiled into build/main.css)
`-- assets/ (any static assets -- copied directly into build/)
|   |-- index.html
|   |-- humans.txt
|   |-- robots.txt
|   `-- graphics/
|   `-- data/
`-- tests/
anandthakker commented 8 years ago

Update - added tests/

dereklieu commented 7 years ago

@danielfdsilva have any thoughts here? Working in IFPRI-egypt now and I'm finding it a bit cumbersome to have such a deeply nested directory structure. I'd be up for simplifying this if at all possible.

danielfdsilva commented 7 years ago

@dereklieu I agree that our directory structure is a bit deep but it was to keep things organized. If we feel like it's too complicated nothing against revisiting.

On my side I've a couple of notes:

@ricardomestre probably has some input as well.

ricardoduplos commented 7 years ago

I might suffer from mad OCD, but I agree with @danielfdsilva here. I find way more pleasant and easy to browse and manage a project when the source folder structure kind of matches the build. In that sense, I would actually rename app to source.