You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, npmgraph would have to recognize/parse github URIs in dependency blocks, which it currently doesn't do. Not a big deal, 'just needs to be coded.
The bigger hurdle is that it would have to fetch the package.json file from the [private] github repo. There are a variety of security issues with this. It'll almost certainly require some server logic to work around the (I assume) lack of CORS support on GitHub. (NPMGraph currently runs entirely in-browser. There's no server for it.) And that server will probably need to be configured with your github credentials, which isn't a responsibility I want. So you'll probably need to run npmgraph locally.
... which isn't a big deal. Just pull this repo, npm i, and then static-server from the command line. But that's just a generic static file server. Supporting an endpoint to fetch private github projects will require a custom server.
This probably isn't a ton of work, and I think it'd be nice to have (I'd certainly use it at my work), but I don't have time to pursue this. Feel free to take a crack at. I'm happy to answer questions.
Probably not quite what you're after, but I've got a PR up that allows you to paste a URL to a private package.json file (as long as you use the "Raw" link). It won't pull in also-private dependencies, however.
I'd like to use this graph over an npm module stored in a private repo on github that has a dependency that's also a private github repo, such as:
github:tranzmatt/my-project
package.json:
"dependencies": {
"project-dep": "github:tranzmatt/project-dep"
}
I have ssh and github token access, so how can I integrate that into npmgraph? Thanks.
The text was updated successfully, but these errors were encountered: