Ответ 1
Организация корпоративного проекта
Способ организации моего проекта angular:
/app
/img # application-level images
/css # application-level css styles
/js # application-level javascripts
/modules # application modules
/gallery # independent module with its own infrastructure
/controllers # gallery module controllers
/css # gallery module css styles
/directives # gallery module directives
/img # gallery module images
/filters # gallery module filters
/services # gallery module services
/views # gallery module views (htmls)
/ ... # other gallery module component folders
galleryMod.js # the module itself
/user # independent module with its own infrastructure
/controllers # user module controllers
/ ... # other user module component folders
userMod.js # the module itself
/ ... # other modules
/ ... # other application-level folders
index.html
Альтернативная организация проектных организаций (упрощенная)
/app
/img # application-level images
/css # application-level css styles
/js # application-level javascripts
/modules # application modules
/gallery # independent module with its own infrastructure
/js # gallery module javascripts (includes
# services.js, directives.js, filters.js, ...)
/css # gallery module css styles
/img # gallery module images
/views # gallery module views (htmls, "partials")
/ ... # other gallery module component folders
galleryMod.js # the module itself
/user # independent module with its own infrastructure
/controllers # user module controllers
/ ... # other user module component folders
userMod.js # the module itself
/ ... # other modules
/ ... # other application-level folders
index.html
Средняя организация проекта (без модулей)
/app
/img # application images
/css # application css styles
/controllers # application controllers
/directives # application directives
/filters # application filters
/services # application services
/views # application views (htmls)
/ ... # other component folders
index.html
Простая организация проекта (как семя)
/app
/img # application images
/css # application css styles
/js # application javascripts (includes
# services.js, directives.js, filters.js, ...)
/views # application views (htmls), e.g. partials
/ ... # other component folders
index.html
Используйте способ, которым должен быть организован ваш проект, и не выбирайте способ, который излишне усложняет ваш проект.