-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[ jhipster.github.io] Get module information from npmjs #2633
Comments
@cbornet may be you should try it out in the new revamped site first https://github.com/jhipster-redesign/jhipster-redesign.github.io |
OK. I will PR on your project if you're OK |
100 % ok
|
Arf ! The registry doesn't set the CORS headers : npm/npm-registry-couchapp#108. Is it ok to use an online-proxy ? |
Not sure man, is it worth if it is that complicated? Thanks & Regards, On Thu, Jan 14, 2016 at 6:50 PM, Christophe Bornet <[email protected]
|
It's not complicated : https://cors-anywhere.herokuapp.com/registry.npmjs.org/generator-jhipster-basic-auth/latest (will not work from a browser address bar) |
If you want to have a look : http://cbornet.github.io/modules/marketplace.html (not finished) |
But im able to hit the original nom registry itl and see the json content,
|
Ok im just being stupid i guess, got it :)
|
+1
|
This is now done. |
Can you update the tiles on home page as well?
|
Yes I just saw that 😄 . Working on it |
OK that's not complicated to use, but this "proxy" is really asking for trouble: I'm pretty sure this is going to fail at some point in time. I know that I'm not being fun here, but I really don't want to have any maintenance to do, as (like all of you) I'm just doing this in my spare time. |
Yes, I understand. So, we need to wait that they add CORS headers to npm-registry but since the issue is 2 years old I don't have much hope... |
Oops I might have jumped the gun and merged it, any way can revert if As Julien says im also worried that it might fail at some point. Does they allow JsonP for this, if so we can do that instead of doing proxy
|
At least GH correctly sets the CORS so it can be used. |
I made a PR to use a package.json file path. Can you review ? |
Im closing it here as we will track it in https://github.com/jhipster-redesign/jhipster-redesign.github.io/issues/4 and we are having a discussion there |
By using the info from the package.json that we can get on registry.npmjs.org, we could reduce the information in modules.json to just a short name and a npm package name for jhipster.github.io
See http://registry.npmjs.org/generator-jhipster-basic-auth/latest
We could also output the latest module version available on jhipster.github.io
The text was updated successfully, but these errors were encountered: