【发布时间】:2012-06-14 13:57:40
【问题描述】:
我正在考虑使用 requirejs 和主干为 Web 应用程序定义文件结构的最佳方法。
我有两个想法 (1) (2)。
你认为什么是最好的,或者你会改变什么?
(1)
|-- vendor
|-- js (jquery, underscore ....)
|-- images
|-- css
|-- spec
|-- templates
|-- js
| |-- utils
| |-- models
| |-- collections
| |-- views
| conf.js
| app.js
| router.js
|- index.html
(2)
|-- assets
|-- js (jquery, underscore ....)
|-- css
|-- images
|-- src
|-- templates
|-- js
|-- views
|-- models
|-- collections
|-- utils
conf.js
app.js
router.js
|-- spec
|-- index.html
【问题讨论】:
标签: web-applications backbone.js requirejs web-application-project