Yarn Offline Mirror and other Goodies

SAMPLE CODE:https://github.com/tkhemani/yarn-offline-setup

https://yarnpkg.com/blog/2016/11/24/offline-mirror/

What is the Offline behavior?

Yarn provides a yarn-offline-mirror feature which saves tarballs of the modules that are used to a specified directory. This can be shared across projects or just used for one project

Yarn only writes to this directory. It never deletes from the directory.

If you are only using the directory for one project and are checking it into git, you may wish to only keep files in the offline mirror for packages currently being used by the project. This is the behavior of the npm “shrinkpack” utility.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s