dongyi2534 2011-02-10 18:55
浏览 40

如何使用版本控制进行插件/扩展开发

I mainly build websites and SVN has worked out just find in terms of setting up a repository for the websites code. I am going to start working on some extensions/plugins that can be used on certain web applications, such as Wordpress, Magento, or any other type of web application. What the application is, doesn't really matter.

What I am looking for is the best way to setup a repository for the plugin that I am developing, while being able to check it out and use it in one of the web applications that I am building it for. I don't want the code of the web application added to the repo, I want only the code that has to do with the plugin in the repo.

Obviously there are standard folders that I would create the plugin with, which exist inside these other applications and it could not be standalone. Is it something where I would have to import my plugin to the repo and then check it out inside of my web application structure, then ignore all files that are not in the repo. How do you maintain that going forward? Obviously there could be new files added to the application, and you might want to add files to the plugin, would it just be a constant battle of finding what to ignore?

I don't want to import the plugin, into the repo, then check it out, and also export it, placing the exported version into the web application and then any change I do in the web application to get the functionality of the plugin fixed or changed, I would have to make sure to also do in the checked out version.

Seems like there has to be a better process of working on plugins that are dependant on applications to work, while only having the code of the plugin checked into the repository.

  • 写回答

1条回答 默认 最新

  • doudouxuqh198138 2011-02-11 16:22
    关注

    You may want to look in to SVN Externals

    "An externals definition is a mapping of a local directory to the URL—and possibly a particular revision—of a versioned resource."

    It seems like it may be exactly what you need.

    评论

报告相同问题?

悬赏问题

  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退