第三方组件的 SVN 组织
我们是一家为 Joomla! 开发组件的小公司!内容管理系统。 在 Joomla! 的行话中,组件是扩展 CMS 功能的小型应用程序(例如,我们正在编辑目录组件)。
作为一个经典框架,Joomla 有一个预定义的文件结构,如下所示:
|-- administrator/
| |-- backups/
| |-- cache/
| |-- components/ <- here
| |-- help/
| |-- images/
| |-- includes/
| |-- language/
| | `-- en-GB/ <- here
| |-- modules/
| `-- templates/
|-- cache/
|-- components/ <- here
|-- images/
|-- includes/
|-- language/
| `-- en-GB/ <- here
|-- libraries/
|-- logs/
|-- media/ <- here
|-- modules/ <- here
|-- plugins/ <- here
|-- templates/
|-- tmp/
|-- xmlrpc/
我们的组件位于标有“此处”的不同目录中。 总而言之,我们有:
- 后端界面
- 前端界面
- 语言文件(用于后端和前端)
- 媒体文件(图像、JS 脚本、CSS...)
- 模块
- 插件
我们使用 SVN 作为版本控制系统,但是我们正在犹豫组织存储库的“最佳”方式:
- 我们是否应该模仿 Joomla 的文件结构,例如创建一个 admin/components/ 来保存我们的后端文件夹,或者只是设置一个 back/ 文件夹(
- 如果我们将模块和插件分开)从组件的主干?
您对于为应位于已预定义的文件结构上的软件设置存储库有何看法?对此的“最佳”策略是什么?
谢谢
We are a small company which develops components for the Joomla! CMS.
In the Joomla!'s jargon, a component is a small application that extends the CMS features (we are for example editing a directory component).
As a classical framework, Joomla has a pre-defined files structure which looks like this one:
|-- administrator/
| |-- backups/
| |-- cache/
| |-- components/ <- here
| |-- help/
| |-- images/
| |-- includes/
| |-- language/
| | `-- en-GB/ <- here
| |-- modules/
| `-- templates/
|-- cache/
|-- components/ <- here
|-- images/
|-- includes/
|-- language/
| `-- en-GB/ <- here
|-- libraries/
|-- logs/
|-- media/ <- here
|-- modules/ <- here
|-- plugins/ <- here
|-- templates/
|-- tmp/
|-- xmlrpc/
and our components is taking place in different directories marked with 'here'.
To summup, we've got:
- a back-end interface
- a front-end interface
- language files (for back and front)
- media files (images, JS script, CSS...)
- modules
- plugins
We use SVN as version control system, but we are hesitating on the "best" way to organize our repository:
- should we mimic the Joomla's files structure, for example create a administrator/components/ to hold our back-end folder or just set a back/ folder
- should we separate modules and plugins from the component's trunk?
What is your opinion about setting a repository for a software which should sit on an already predefined files structure? What is the "best" strategy for this?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会模仿 Joomla 的结构,以便安装组件只是将您的树与 Joomla 树合并的简单问题,但这实际上是个人喜好的问题。只要您有一个简单的安装过程(例如“sudo make install”或“sudo python setup.py install”等),我认为这并不重要。
I would mimic Joomla's structure so that installing the component is a simple matter of merging your tree with the Joomla tree, but really that is a matter of personal preference. As long as you have a simple install procedure (e.g. "sudo make install" or "sudo python setup.py install" or the like), I don't think it matters.