-
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
tern repository #424
Comments
If you want to author such a file, and submit a pull request that includes it in the root of the repository, it'll automatically end up on ternjs.net. But for consistency, please use JSON instead of XML. |
Many thank's @marijnh for your answer! I will do create a PR with this repository.json file.
Ok, I will do it. |
A co-worker and I are also looking into this, w/ support for TS defs as well. We've both finally got some time and are going to be going over a game plan in the next couple of weeks. |
@bfricka I had intention to create a PR with repository.json after exploring it inside Eclipse IDE, but if you need it, I can create it and do a PR. I will create a second PR to add some info if will need when I will explore it inside Eclispe IDE. Tell me if you need now this repository.json |
Ok here a proposition about repository.json with closure and express tern plugin : {
"tern-closure": {
"label": "Closure",
"homepage": "https://developers.google.com/closure/library/",
"repository": {
"type": "git",
"url": "https://github.com/google/tern-closure"
}
},
"node-express": {
"label": "Express",
"homepage": "http://expressjs.com/",
"description": "Add express web application framework for node support. Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.",
"repository": {
"type": "git",
"url": "https://github.com/angelozerr/tern-node-express.git"
},
"category": "node"
}
} JSOn keys are tern plugin name which have information about tern plugin (repository, homepage, description, label). category is used to display for instance express in a tree item after the node tree ietm. |
Official list of plugins #431 seems to be user facing part of this issue "tern repository.json" |
Can you point to or create new issue for TS defs support |
Goal of ern repository.json is to list non official tern plugins. Official tern plugins are hosted inside tern https://github.com/marijnh/tern/tree/master/defs and https://github.com/marijnh/tern/tree/master/plugin |
@angelozerr said in #431
If those files (in
What if each tern plugin could can optionally hold such file to overwrite the one inside tern git repository ? |
I mean that each tern plugin hosts their metadata JSON file, not inside this tern git repository. We need a list of "unnoffical" tern plugin repository.json should exists for that. |
OK. Then minimal tern {
"tern-closure": {
"metadataurl": "https://raw.githubusercontent.com/google/tern-closure/master/tern-closure.metadata.json"
},
"node-express": {
"metadataurl": "https://raw.githubusercontent.com/angelozerr/tern-node-express/master/tern-node-express.metadata.json"
},
} otherwise Having filename as Then any software that will use such Or b) |
…tadata.json` files Example of output file ```js [ { "name": "angular", "metadataurl": "https://raw.githubusercontent.com/angelozerr/tern.java/master/core/tern.core/metadata/angular.metadata.json" }, { "name": "aui", "metadataurl": "https://raw.githubusercontent.com/angelozerr/tern.java/master/core/tern.core/metadata/aui.metadata.json" }, ```
See angelozerr/tern.java#190 for creating tern repository from proposed format was changed to make it resemble [
{
"name": "angular",
"metadataurl": "https://raw.githubusercontent.com/angelozerr/tern.java/master/core/tern.core/metadata/angular.metadata.json"
},
{
"name": "aui",
"metadataurl": "https://raw.githubusercontent.com/angelozerr/tern.java/master/core/tern.core/metadata/aui.metadata.json"
}, |
There are 3 ways:
Proposed story for Tern plugin author for way 3:
|
As suggested in angelozerr/tern.java#195 please rename this issue to |
Today it exists more and more "non official" tern plugin like Closure, Meteor, YUI, Express, etc
I try to integrate it inside tern.java. You can see list of tern plugins at https://github.com/angelozerr/tern.java/wiki/Getting-Started#tern-modules
But I think it should be very cool if tern could host a kind of site which enumerates list of tern plugin. An idea that I have is that ternjs provides this url http://ternjs.net/repository.xml and returns an XML stream like this :
This XML file repository could be used after by some IDE to install tern plugin (show list of existing tern plugin in an UI list).
The text was updated successfully, but these errors were encountered: