我注意到了那个 node .js项目通常包括以下文件夹:
/libs、/vendor、/support、/spec、/tests
这到底是什么意思?它们之间有什么不同,我应该在哪里包含引用的代码?
我注意到了那个 node .js项目通常包括以下文件夹:
/libs、/vendor、/support、/spec、/tests
这到底是什么意思?它们之间有什么不同,我应该在哪里包含引用的代码?
关于你提到的文件夹:
classes/functions/modules
NOTE: both 100 and 101 are deprecated since NPM introduced a clean package management. It's recommended to handle all 3rd-party dependencies using NPM and a package.json file
在构建一个相当大的应用程序时,我推荐以下额外的文件夹(尤其是如果您使用某种MVC-/ORM框架,比如express或mongoose):
/public
contains all static content (images, style-sheets, client-side JavaScript)
我习惯了用这种方式组织我的项目,我觉得效果很好.
Update for CoffeeScript-based Express applications (using 100):
/assets/
contains all client-side assets that require compilation