I'm a web developer who mostly works on my own. When building apps I have complete freedom regarding how I structure my code. Nonetheless, I try to conform to industry conventions as much as possible, since this makes life easier for other developers who may need to maintain my code down the line.
I've just started working with Angularjs. Since angular is relatively new, I wonder if any conventions have emerged yet regarding how projects should be structured.
Specifically, I've noticed that Yeoman creates this setup by default:
app
|-bower_components
|-images
|-scripts
|---controllers
|------ *.js
|-styles
|--- *.css
|-views
|--- *.html
Two questions:
- Is this structure widely used? (i.e. should I be using it too?)
- Where should I place directives that I write? In
app/scripts/directives
?