Reputation: 45775
I'd like to create a very simple TypeScript package into Package Control for Sublime Text 2
I've never developed a Sublime Text extension / plugin, but all I want is to package 2 existing files
typescript.tmlanguage
(from here)typescript.sublime-build
(thanks to this answer)The first step according to the docs is
Host your plugin in its own repository on GitHub or BitBucket.
Only include a single plugin, and have the plugin files in the root of the repo.
Do I need to create a plugin? Is there a simple basic one I can fork? (found many complex ones)
Edit:
Found this one https://github.com/danro/LESS-sublime
And created this one per the example https://github.com/eranation/sublime-text-2-typescript
That's all? should I get rid of the folder?
Upvotes: 1
Views: 766
Reputation: 2019
As I understand it (I am about to go through this process for the first time myself) your folder is the package, and it is what is added to the package control.
Packages can have many different things inside them, build settings, plugins, code snippets, keyboard shortcuts, etc...
So yes, just your two files inside the folder should be all you need.
Upvotes: 2
Reputation: 12434
I have not tested your package to see if it works. But what you need to do now is:
a "fork" of sublime package_control_channel repository on this link
change the repositories.json file according to the specification and this on Step 12
Make a pull request to Sublime Text 2 package_control_channel repository
If your pull request is accepted it will become part of the official repository of Sublime Text 2.
Upvotes: 1