1

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 syntax highlighting file typescript.tmlanguage (from here)
  • TypeScript build system 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?

4

2 に答える 2

2

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.

于 2012-10-16T18:55:38.383 に答える
1

I have not tested your package to see if it works. But what you need to do now is:

  1. a "fork" of sublime package_control_channel repository on this link

  2. change the repositories.json file according to the specification and this on Step 12

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

于 2012-10-15T22:12:24.063 に答える