Repository navigation
Download tern plugins from ternjs repository.json #195
Description
Activity
- added 2 commits that reference this issue
on Dec 5, 2014 @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.
plugins.json👍 That is nice. Word "repository" may mean git repository
I think it should be cool to have a simple HTML page
that is ternjs/tern#431
once there isplugins.jsonternjs/tern#424- added a commit that references this issue
on Dec 9, 2014 @paulvi I have commited the wizard which download tern plugin :
Select Tern -> Download Tern Modules :
Is this wizard for end users?
I will try to use
https://github.com/paulvi/tern-plugins/blob/master/plugins.jsonI think just calling it 'plugins.json' would be clearest.
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?
Is this wizard for end users?
It's just a POC, any feedback are welcome!
I will try to use
https://github.com/paulvi/tern-plugins/blob/master/plugins.jsonIt should work.
it means that we have only list of plugins and not JSON Type Definition, correct?
isn't JSON Type Definition a part that plugin can have?
For end users having one word would make life simpler.
isn't JSON Type Definition a part that plugin can have?
yes
For end users having one word would make life simpler.
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
- should show what plugins are already installed
- should show total numbers of entries in the table, (we are close to 30 now)
e.g. "29 in repository, 15 already used" - should have button Download that will download selected entries, without closing the dialog
- have history of used URLs
- And it seems that this is actually not New Wizard, but closer to
File -> Import ...
or Help -> Install section
6 remaining items
I'm not sure that it's a good idea.
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
Where to start? I can use repository.url
Where to put?Please explain what script should do.
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
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?
- added 2 commits that reference this issue
on Dec 11, 2014 @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
Please point to script from README or wiki, as that script is to be useful even without tern.java
It's npm :
- cd to your tern folder
- npm install tern-cordovajs to install cordovajs tern plugin.
That installs next to tern inside
node_moduleshttps://github.com/angelozerr/tern.java/tree/master/core/tern.core/node_modules/
.. .bin tern tern-cordovajsHave you thought to rename
node_modulesintoternjsand configure it as project for editing ?@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
node_modules.
That would be 3rd folder to existingdefsandpluginI would like to see
pluginsfolder (like Eclipse)or download plugins into
plugin...


started as discussion in #190