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?
Written by Mutahhir
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Style
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#