-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support yarn package
and yarn install --local
like bundler
#1242
Comments
A related discussion that may be of interest can be found in #393. The way I read that discussion, it sounds like the Maybe @bestander could shine some light on the current behaviour? They seem to have a solid understanding of what the offline mirror can & can't currently do. :) |
Sorry guys, my blog post about this feature is in the last phases. |
Thanks @bestander! I just read through https://yarnpkg.com/blog/2016/11/24/offline-mirror and it looks like it solves our exact problem. |
Do you want to request a feature or report a bug?
Feature
Desired behavior
Bundler supports 'vendoring' dependencies out of the box with the
bundle package
command. This command saves your gems as.gem
files into your repo atvendor/cache
. You can install from the saved versions usingbundle install --local
.http://bundler.io/v1.13/bundle_package.html
This is really handy for deployment and also allows one to be able to do docker builds from a fresh checkout of your application. This is particularly handy if you depend on private packages, and don't want to leak secrets, like git or npm credentials, into your docker image layers.
To get this behaviour on node our team currently use shrinkpack, but a more integrated solution would be ideal. This would help us take advantage of the power of Yarn, whilst still being able to bundle our node packages in our repo.
The text was updated successfully, but these errors were encountered: