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

Support yarn package and yarn install --local like bundler #1242

Closed
catkins opened this issue Oct 19, 2016 · 3 comments
Closed

Support yarn package and yarn install --local like bundler #1242

catkins opened this issue Oct 19, 2016 · 3 comments

Comments

@catkins
Copy link

catkins commented Oct 19, 2016

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 at vendor/cache. You can install from the saved versions using bundle 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.

@lime
Copy link

lime commented Nov 15, 2016

A related discussion that may be of interest can be found in #393.

The way I read that discussion, it sounds like the yarn-offline-mirror setting already does this to some extent..? I can't find any documentation for it though.

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. :)

@bestander
Copy link
Member

Sorry guys, my blog post about this feature is in the last phases.
Once I release 0.17.1, I'll push it through.
It will be published on the website

@catkins
Copy link
Author

catkins commented Dec 5, 2016

Thanks @bestander!

I just read through https://yarnpkg.com/blog/2016/11/24/offline-mirror and it looks like it solves our exact problem.

@catkins catkins closed this as completed Dec 5, 2016
@wyze wyze removed the needs triage label Dec 5, 2016
bestander added a commit to bestander/yarn that referenced this issue Dec 17, 2016
bestander added a commit that referenced this issue Dec 17, 2016
* Fixed #1242 - missing transitive dependencies

* nits and fixes

* added a few more tests that cover current behavior

* redisabled test

* typo fix

* typo fix

* fixes for @cpojer

* comments
bestander added a commit that referenced this issue Dec 17, 2016
* Fixed #1242 - missing transitive dependencies

* nits and fixes

* added a few more tests that cover current behavior

* redisabled test

* typo fix

* typo fix

* fixes for @cpojer

* comments

Conflicts:
	__tests__/commands/install/integration.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants