I've read a lot of articles and questions about site folder structure (develop & deploy) and still have missunderstood about questions below.
I marked my current folder structure:
- Orange- looks like lib or vendor folder, where i'd like to store independent components;
- Blue- folder contains my own, relative to current project (application) files;
- Green- ready to deploy folder, that contains minified & concated files, which used to be included in index.html.
There are a few questions i'd like to find an answer:
- Is it correct, that the best practise is deploying to web server only dist folder?
- Should i concat my bower_components & app javascript files into single app.min.js file? Should i mess independent components with application files and ober ordering?
- Should i deploy views folder with templates as is into dist/views folder?
- Is it correct to mess all images (css images, app images, plugin images) into single dist/images folder?
- Is it correct to store directive templates in views folder?
- There is not relative to AngularJS client/app/js/common/helpers.js file,- i can't figure out where is the most obvious place for that (it could be prototypes, custom functions or objects)
I will be glad for any help, ty.




