-
Notifications
You must be signed in to change notification settings - Fork 52
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
Download tern plugins from ternjs repository.json #195
Comments
@paulvi I have commited the wizard which download tern plugin : Select Tern -> Download Tern Modules : It open the wizard which loads from HTTP the repository.json (for the moment wizard uses https://github.com/angelozerr/tern.java/blob/master/eclipse/tern.eclipse.ide.tools.ui/TO_DELETE/repository.json but after it will use http://ternjs.net/repository.json) : Now we must download the tern module. how to do that ? With npm? With Java code? |
Perhaps we should rename repository.json to marketplace.json ? I think it should be cool to have a simple HTML page http://ternjs.net/marketplace.html which load JSON http://ternjs.net/marketplace.json to have this kind of UI http://marketplace.sarah.encausse.net/store |
'Marketplace' suggests commercial selling. I think just calling it 'plugins.json' would be clearest. |
👍 That is nice. Word "repository" may mean git repository
that is ternjs/tern#431 |
as it is plugins.json
Is this wizard for end users? I will try to use |
In tern.java we decided to use tern modules to name plugins & JSON Type Definition. If we use 'plugins.json', it means that we have only list of plugins and not JSON Type Definition, correct? |
It's just a POC, any feedback are welcome!
It should work. |
isn't JSON Type Definition a part that plugin can have? For end users having one word would make life simpler. |
yes
that's why we use tern modules inside tern.java |
I use the word 'plugin'. I really don't care at all what word other interfaces use. |
@angelozerr I tried 0.8 using URL https://raw.githubusercontent.com/paulvi/tern-plugins/master/plugins.json
|
@paulvi I agree with your comment, but I think we should develop download (with npm) to validate the plugins.json and create a PR for ternjs I would liek to finish the plugins.json (see my comments ternjs/tern#438 (comment)) |
done |
Where to start? I can use repository.url |
I'm not sure that it's a good idea. The download feature is not implemented, I set feature in N&N when it is finished. |
well, if snapshots are provided and promoted, there should be docs for them. if a feature is not good for release, its description may jump into text N&N
Please explain what script should do. |
I try do something. I contact you as soon as I will commit. |
@paulvi I would liek to rename "Download tern modules" wizard by "Install tern modules". Are you OK with that? |
sure import is usually only once, while install usually includes update operation |
I I would like to rename "Download tern modules" wizard by "Install tern modules" and keep it to File / Import... Is it ok? |
@paulvi I have commited my work which download tern plugin with npm when you click on Finish. Eclipse console shows log of npm install. It's a first version of download with npm. I know that there are a lot of bugs! This wizard must be improved a lot (close wizard if no errors, npm path should be customized with preferences, etc) Note that only CordovaJS works (because it was published) |
Please point to script from README or wiki, as that script is to be useful even without tern.java |
It's npm :
|
That installs next to tern inside https://github.com/angelozerr/tern.java/tree/master/core/tern.core/node_modules/
Have you thought to rename |
@paulvi I'm a little newbie with nodejs, so any feedback are welcome. Today the whole tern plugins are hosted inside https://github.com/angelozerr/tern.java/tree/master/core/tern.core/node_modules I have not used npm for that, just copy/paste those tern plugins. So if you think those folder should be redone, don't hesitate to tell me. I think too this https://github.com/angelozerr/tern.java/tree/master/core/tern.core/node_modules should be deleted and move to a new Eclipse project tern.repository which hosts those tern plugins. |
OK, that is other issue #211 |
Now back to downloading script. It may use npm as implementation detail to get modules from npm registry or GitHub repo. I am just not user if it is right for tern to get plugins under I would like to see or download plugins into |
started as discussion in #190
The text was updated successfully, but these errors were encountered: