流行的构建文件夹结构
我想知道在项目中组织构建资产和源代码的流行或最佳方式是什么?
I am wondering what the popular or best way to organise your build assets and source code within a project is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
,您必须
最后
根据项目本身以及您使用 ANT 还是 Maven 保持一定的灵活性。 我使用 ANT,或者将 ANT 脚本放在 /build 中,但它们出现在某些项目的其他位置(例如在 /websites/ 中)。
I have
with
In the end you have to be a bit flexible depending on the project itself, and whether you use ANT or Maven. I use ANT, and either put the ANT scripts in /build, but they have appeared elsewhere in some projects (like in /websites/ for some).
一般来说:
In general:
由于我只处理 Java 项目,并且所有项目都是“Mavenized”,因此我使用 Maven 为项目结构定义的约定。
基本上:
As I am working only on Java projects, and all of them are "Mavenized", I use the conventions defined by Maven for the project structure.
Basically:
例如,我将以下内容用于我的 .Net 风格项目;
for example, I use the following for my .Net style projects;
此文件夹组织代表 xLim 概念。
您可以在这个开源项目中查看。
This folder organization represents evolution of xLim concepts.
You can check it out in this open source project.
我个人使用
它对我们来说效果很好,但我不认为它是最好的。 如果是关于 .net,您还可以看看 treesurgeon 他们描述了它本身是:
Personaly I use
It works fine for us but I don't think it's the best. If it's about .net you can also take a look at treesurgeon They describe it themselves as:
对于 .NET 项目,请查看 ProjectScaffold 以及此 要点。
For .NET projects check ProjectScaffold and discussion under this gist.
我喜欢 Netbeans IDE 组织项目的方式。 只要启动一个新项目,它就会设置一个默认的开发树和一个ant脚本。
I like the way the Netbeans IDE organizes projects. Just start a new project, and it will set-up a default development tree and an ant script.
对我来说,这取决于项目的规模。 对于小型项目,我发现包含单个 Makefile、/src 和 /include 目录的项目目录效果很好。
For me it depends on the project size. For small projects, I find that a project directory with a single Makefile, /src and /include directory works well.