Last Updated: February 25, 2016
·
1.345K
· mutahhir

How to structure your javascript projects

I know this is very arbitrary, but there was a time I tried to find the standard directory structure that's used for javascript heavy projects. Here's what I've found and like to use:

root/
 js/
 lib/
 css/
 fonts/
 images/
 index.html

What setup do you usually like to use?

1 Response
Add your response

When I use something different from JS and CSS and compile them into JS and CSS, I stick to something like this (but then again, it depends on the project):

root/
 src/
 coffee/
 index.coffee
 stylus/
 index.stylus
 public/
 js/
 css/
 img/
 index.html
over 1 year ago ·