Skip to content
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

Best way to add package in the cache only(not in npm) #2

Open
LucsT opened this issue Dec 16, 2013 · 2 comments
Open

Best way to add package in the cache only(not in npm) #2

LucsT opened this issue Dec 16, 2013 · 2 comments

Comments

@LucsT
Copy link
Contributor

LucsT commented Dec 16, 2013

Hello, me again.

In a future use, I would see a feature like:

Adding a package trough my cache and only on mine, not in npm open database.

ie a kind of private npm registry.

Probably can contribute to the feature, depending on my time, amount of work and Jdpaton wish for this software.
I'm not really an old JS dev, but i have very useful advice around me.

Jdpaton and all others, if you have opinions or advices, please share it.

Lucas

@jdpaton
Copy link
Contributor

jdpaton commented Dec 18, 2013

There could be a custom endpoint like /private/ behind HTTP basic auth that allows the upload of a custom .tgz created by the uploader using npm pack.

An issue is validating that it doesn't conflict with an existing package in the open database. Private packages could use a custom data directory instead and the server can have an option like --allow_private_package_overrride to allow them to served first instead of the public NPM package.

@LucsT
Copy link
Contributor Author

LucsT commented Dec 20, 2013

For now the 'uploading' didn't matter for me. I have a full access and the host is dedicated to npm-lazy-mirror.

We (me and a friend) start a proof of concet

We avoiding the conflict risk you talk about, by select our package name with a particular string.
We avoid cache expiring to that kind of package. (see this PR :https://github.com/LucsT/npm-lazy-mirror/pull/1)

Now, need to dev a packaging tool for preparing Json, and tarball from a git or a directory.

It's more a hack than a feature for now. But need it soon and working.
Try to push a more constructive thing later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants