npmserve icon indicating copy to clipboard operation
npmserve copied to clipboard

private modules / git commitish

Open Offirmo opened this issue 9 years ago • 1 comments

This is a pain point for all the npm acceleration tools I ever tried.

Do yours handle private modules and modules referenced as a git commitish ?

That would be nice !

Offirmo avatar May 03 '16 16:05 Offirmo

Hi @Offirmo, we just ran into the same problem on our end. To answer your questions:

1.) private modules yes, we do! In your npmserve-server please set NPM_CONFIG_REGISTRY to the private registry you want to use. You'll have to configure your server with access to that box as you would locally.

2.) git commit refrences this is not supported as a first class feature but it is possible. You'd need to configure the box running npmserve-server with access to the github repos you want - if hosted on github I suspect you could generate an RSA key on your server, upload the pub key to github, and go from there.

Neither of these features are fully productized and both essentially boil down to "configure your server in a way that it has access to everything you want". If you have thoughts on further productizing these we'd love to hear them and feel free to push up PR's to npmserve or npmserve-server if you are interested.

rbuckheit avatar May 04 '16 18:05 rbuckheit