-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata for tern defs+plugins "package.json" like #330
Comments
There is a |
I would like to know metadata information without running tern. If tern def is inside js plugin, it's very hard to read it. In tern.java I manage tern plugins + defs selection with this UI : When you select a plugin, you see a description. I would like to use a simple JSON to read this description metadata and not execute a tern server. |
The files are JSON. You don't need to run Tern to read them. |
For JSON Type Definion like jQuery, I agree with you, but for Tern plugin like requirejs, it's hard to load it. I have done those metadata files in my github that you can find at https://github.com/angelozerr/tern.java/tree/master/core/tern.core/metadata I use those metadata file inside tern.java in Eclipse UI to select Tern Plugin or JSON Type Definition. Here a screenshot which shows you detail (metadata) of the requirejs tern plugin (I must display dependencies and options of tern plugin too) : When you select requirejs tern plugin, it uses this JSON metadata file https://github.com/angelozerr/tern.java/blob/master/core/tern.core/metadata/requirejs.metadata.json As requirejs is tern plugin, it's very hard to read the JSON Type Definition inside the Javascript code, that's why I have created a new JSON file per def/plugin. |
That's true. Still, this seems too marginally useful to include. The amount of plugins in the core distribution are limited anyway, you can just put them in your own JSON file if you need this kind of info. |
Ok I will keep my metadata JSON files. Thank's. |
It should be very cool, if tern could host metadata files for each tern defs/plugins to describe it like :
This metadata file can be used by each IDE to display, description, author, etc in an UI preferences.
jquery.json.metadata could look like this:
The text was updated successfully, but these errors were encountered: