-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Configure without dependency to github #1071
Comments
Alternatively if there is a way I can make this work by pointing to an internal Stash repo instead of trying to go to github that would work too. NPM is mirrored inside via Artrifactory. If I cant make this work I probably have to rule out JSPM as an option and go another route unfortunately, so I was hoping you could help. |
@wgorder is the problem here explicitly the dependency on GitHub, or just getting the proxy to GitHub to behave properly? Comprehensive proxy support is an issue at the moment I know, and has come up recently a few times. |
The problem is a hard dependency on github for our builds to work. We can work around the proxy issue in a couple ways but that too has been painful. Ideally if it just a couple small registries that are required on github is there a way to clone those internally (We have Stash) and just keep them in sync with the upstream stuff on Github, and somehow tell JSMP to look there instead of Github? The problem I am hearing is:
This is large enterprise shenanigans, but it is still a part of how things work for lots of us in this space. |
@wgorder the jspm registry itself can be cloned and mirrored fine, so the only issue would be mirroring the entire In fact, the better way to design such a thing would be as a special registry adapter - We haven't had to adapt to these sorts of scenarios yet, so such work would need to be driven by a company needing it. |
Hi @guybedford ,@wgorder We are also analyzing JSPM and our IT Department policy prohibits us from connecting to GitHub directly. I took the simple jspm-systemjs-babel-seed-master project : And got the following output :
@guybedford , as you mentioned before Comprehensive proxy support is going to be hard to implement both for JSPM and also in most large enterprise proxy won't be the way to go . we need to find a way to decouple it , so - we want to use Artifactory & NPM The main issues are :
source : https://www.jfrog.com/confluence/display/RTF/VCS+Repositories thanks in advance, |
Yeah we did not have the time to dig in an try to make things compliant so we ended up going with webpack instead. FWIW we also use NPM with Artifactory mirror. |
thanks @wgorder. i really want to give it a chance and also i like the option to split between system.js + jspm and in webpack i can use just bundles even in development @guybedford i will continue investigate the issue but for now is any way to do so. 10x again, |
This would all be possible to do in a bit of configuration certainly. The easy way would probably be to create a custom github endpoint which redirects to custom git endpoint mirrors for the relevant repos. It does require knowledge of the registry api to set something like that up though, and would likely be an hour or so of work to do. I can't just go ahead and put that hour in though just yet unfortunately as I have other priorities right now. |
thanks. |
Hi @guybedford , Sorry to be a bother. i looked up about your advice for a custom git endpoint and with : https://github.com/Orbs/jspm-git after installing the latest version i got the following error :
any thoughts what i should do next ? Best regards, |
Yes this is not a trivial process, and would need some involved work. |
For many projects I would be possible to replace all github: dependencies with npm: dependencies. The only repositories which do not have a release in npmjs are the jspm/nodelibs-* ones and systemjs/plugin-json one. @guybedford are you considering publishing those to npmjs.org (possibly with @jspm scope) eventually? |
I would also like to install the systemjs-hot-reloader from npm but cannot get it to work. |
@guybedford Would it be possible to publish the nodelibs-* packages to npm like @karel1980 suggested? Our installs are flaky because of connection problems with github and all npm packages are cached in our private npm registry. |
@frederikschubert yes it would be possible to switch the nodelibs- packages to npm sources. The jspm registry would still be linked to github though or is that not a problem for you? |
That would be alright, as the most problems occur when fetching the packages from github. |
@frederikschubert I'd be open to implementing this. Note that we'd need to have |
Sorry for the late reply! I am not sure what steps have to be taken to implement this.
|
|
Alright. Thanks for the instructions! |
I just published jspm-nodelibs-assert and added you as a collaborator. Does this look ok to you? |
@frederikschubert that looks exactly right. |
Ok, then I will continue with the other packages and ping you here when I am done. Progress
|
👍 |
@guybedford I created the PRs. |
@frederikschubert thanks so much, is it all working ok for you there now? There's one more thing we do need to do as well and that is to provide an upgrade path that updates the I'm happy to look at this as well in due course so no pressure, but if you can try something I'd certainly be grateful. Thanks again for your efforts here. |
Glad I can help. :) Yes it is working. I linked the Should also the other references to the nodelibs in this block change? I am not quiet sure where the upgrade code should be run. Do you mean somewhere in this function https://github.com/jspm/jspm-cli/blob/0.17/lib/install.js#L75? |
@frederikschubert yes the upgrade path references in that block should be updated as well. It can be added as a new duplicate block in https://github.com/jspm/jspm-cli/blob/0.17/lib/config/index.js#L313 that always runs but with a flag that checks if anything was actually replaced, and if something was replaced then runs a full install like in https://github.com/jspm/jspm-cli/blob/0.17/lib/config/index.js#L278. |
Ok I will try to take a stab at it and make a PR. |
So if I understand correctly, using [email protected] should not use GitHub anymore for dependencies. |
Bump. Has there been more progress on this? All of the jspm-nodelibs-* except jspm-nodelibs-buffer work for me after a jspm install. jspm/nodelibs-buffer#6 |
With 0.16.53 Github is used and that leads in 2018 most of the time to ratelimit issues during the builds (claphands). Really wonder how others can use this library? // cc: @frederikschubert @guybedford
Please release at lease a patch version to fix this |
@openwms note that the 0.17 version no longer requires this github dependency for this reason. |
@guybedford
I work in at a large enterprise where corporate proxies to github is a problem. Is there a way to get a successfull JSPM build without any need to talk to github? I see this as just an example:
How can I configure things to make the below calls use npm instead?
The text was updated successfully, but these errors were encountered: