包含 Subversion 和静态资源的项目布局
我正在开发一个项目,该项目(像往常一样)包含源代码和许多静态资源,例如图像和生成的文件(用于 UI 和 l10n)。
到目前为止,所有内容都已使用 Subversion 进行版本控制,但我认为必须有更好的方法来存储静态文件和生成文件并在项目部署中链接它们。
那么,您认为哪种选择最好?
- 将所有内容放在一起。
- 为每种不同类型的文件设置不同且更合适的存储(可能还有版本控制系统)。
- ...
I'm working on a project which (as usual) contains source code and many static resources like images and generated files (for UI and l10n).
By now, everything is versioned with Subversion, but I think there must be a better way to store the static and generated files and link them on project deployment.
So, in your opinion which option the best?
- Keep everything together.
- Set a different and more appropriate storage (and probably versioning system) for every different kind of file.
- ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
生成文件,我会
svn:ignore
。只要它们不存在(或者生成过程很容易触发)就会自动重新生成,版本控制生成的文件就会变得混乱。静态文件 - 图像、样式表等 - 我会把它们放在一起,只要它们不是太重,以至于会减慢整个过程。毕竟,它们是您项目的固定部分。
Generated files I would
svn:ignore
. As long as they are automatically re-generated if they don't exist (or the generation process is easy to trigger) versioning the generated files would be just clutter.Static files - images, style sheets, etc. - I would keep together, as long as they're not so heavy that they'll slow down the whole process. After all, they are a fixed part of your project.