-
Notifications
You must be signed in to change notification settings - Fork 131
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
May be a cache for the public bower packages #3
Comments
Would be nice, I'll look at it. |
Now the public registry is cached. Did you mean to cache the actual packages? |
I could be misunderstanding how your package works, I had a quick look through the code and couldn't quickly see, however... My use case is this: |
In that case you'll have to clone the repositories you want to use. Publish the repos internally and then register them as packages.
and then you can easily use "bower install angular" :) private-bower is just a registry it doesn't download packages, though it can be an improvement :) |
Sounds like a possible enhancement issue then? I don't mind having a look implementing Bower needs an easy internally hosted registry like npm and git already provide for. |
So you mean when someone downloads a public package, then it should clone and host the package on the registry server and register a private package with the same name to the private registry? :) Sounds interesting, will take a closer look at it tomorrow :) |
Basically yes... Or a simpler solution would be if it's not registered in the internal registry return an error "internal package not found" prompting the administrator of the machine to register it. Along the lines of the npm internal registry e.g. https://www.npmjs.org/doc/misc/npm-registry.html though that, IMO, is far too heavyweight continuously replicating the public registry (unneeded disk usage) |
So to clear up, you just want the "fallback to public bower registry" feature to be switchable :) |
Is that all it'd take? I've only browsed your code and haven't ran/debugged it The "fallback to public bower registry" case in pseudo code could be:
edit: like i say this is better in a separate enhancement issue |
Just published version 0.0.9 add '-np' argument and see if it's suitable 4 u :) |
@youknowriad the main issue was about caching the github repo or the registry entry? |
The main issue was about caching a repo (not only a github repo), the first time you request it, to avoid calling the main registry if the same version is needed |
Ok then I close this a s a duplicate to #4 |
Hi,
It would be interessting to cache the public bower packages to avoid depending on github etc when it's down.
Thanks
The text was updated successfully, but these errors were encountered: