Sublime Text如何将软件包添加到全局存储库 [英] Sublime Text How to add package to global repository

查看:177
本文介绍了Sublime Text如何将软件包添加到全局存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为sublime创建了一个插件,并将其称为"sublimecastling". 主要思想是替换2个选定的字段.

I created a plugin for sublime and I called it "sublimecastling". The main idea is to replace 2 selected fields.

因此,我很高兴知道是否可以将其添加到您的Sublime存储库中,以便用户可以通过package-control安装插件.

So I'll be glad to know whether it's possible to add it to your Sublime repository in order users could install the plugin via package-control.

下面提供了github链接

The github link is provided below,

https://github.com/unknownuser88/sublimecastling

推荐答案

如果要通过Package Control提供插件,请访问提交软件包.有很多步骤,可以总结如下:

If you want to make a plugin available via Package Control, visit the documentation page on the Package Control website and click on Submitting a Package. There are a number of steps, which can be summarized as follows:

  1. 搜索程序包控制"以确保您的程序包满足未满足的需求,或极大地改进现有程序包-当您可以与现有程序包的作者一起工作时,请勿创建新的程序包(尤其是非常简单的程序包)特定功能.
  2. 选择一个名字-这里有几个要求.
  3. 决定如何托管-Github?比特桶?您自己的SSL服务器?

  1. Search Package Control to ensure your package fulfills an unmet need, or greatly improves upon an existing package - don't create a new one (especially a very simple one) when you could work with the author of an existing one to add a particular feature.
  2. Pick a name - there are several requirements here.
  3. Decide how to host - Github? Bitbucket? Your own SSL server?

我自己的注释:Github最简单

在Sublime中运行 ChannelRepositoryTools 软件包,以确保一切正常.

Run the ChannelRepositoryTools package in Sublime to make sure everything is OK.

注意:同时使用 ST2 ST3 ,以确保它可以同时在Sublime的两个版本中使用.如果由于Python 2.6和3.3之间的语言差异而只能支持一个版本,请选择ST3-这是Sublime的未来,已经拥有非常庞大的用户群,并且可以让您获得最大的展示机会.如果您还没有亲自升级到ST3,现在是时候这样做了.如果您是注册用户—应该是:)—同时使用公开测试版和最新的<一个href ="http://sublimetext.com/3dev" rel ="nofollow">开发版本.

Note: Test your package with both ST2 and ST3 to make sure it works with both versions of Sublime. If you can only support one version due to the language differences between Python 2.6 and 3.3, pick ST3 - it is the future of Sublime, has a very large user base already, and will get you maximum exposure. If you haven't personally upgraded to ST3, now is the time to do so. If you are a registered user—which you should be :)—test with both the public beta and the latest dev build.

最后,您可以提交拉取请求.

Finally, you can submit your pull request.

请耐心等待,可能需要一段时间才能对其进行审核,并且要求更改的情况并不少见.通过遵循严格的程序,社区可以为用户提供高质量的软件包.

这篇关于Sublime Text如何将软件包添加到全局存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆