Asset directory structure


#1

Hi everyone,

I’m new to this list and am just learning about Ember.

I’m curious to hear from you all how you are organizing your JavaScript, stylesheets, and template files? Do you keep all assets that relate to a particular UI component together in a single directory? Or do people generally follow the more traditional directory structure of having one directory for all javascript assets, one for stylesheets, and one for templates?

Dave


#2

Hi Dave,

This thread may be of some use to you.

But basically, it’s up to you. Discourse (if you’re not familiar with Discourse, it’s a new, more modern, pro-user experience take on forum software based in Ember - ones of the largest Ember apps currently out there for sure) keep all their public resources in an assets folder, then seperate by js, css, fonts and images. Within the js/discourse folder, you can see how they structure their Ember files.

Hope this helps.