Sublime Text How to add package to global repository

こ雲淡風輕ζ 提交于 2019-12-20 04:09:27

问题


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

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.

The github link is provided below,

https://github.com/unknownuser88/sublimecastling


回答1:


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. 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?

    my own note here: Github is easiest

  4. Pick a versioning strategy using semantic versioning. Note that all new packages must release by using versioning tags, not by branches or commits.
  5. Prepare your repo - several things to do here.
  6. Fork the Package Control Channel on Github and add your repo to the default channel - detailed instructions included.
  7. Run the ChannelRepositoryTools package in Sublime to make sure everything is OK.

    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.

  8. Finally, you can submit your pull request.

    Be patient, it may take a little while for it to be reviewed, and it is not uncommon at all for changes to be requested. It is by following strict procedures that the community maintains the high quality of the packages available for users.



来源:https://stackoverflow.com/questions/20786010/sublime-text-how-to-add-package-to-global-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!