We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are many benefits of using Yarn, mainly it is a fast & secure way to install dependencies from package.json.
Yarn
package.json
Below are install times comparing npm install vs. yarn using TurfJS.
npm install
yarn
Also including yarn.lock can speed up the install process by 1.5-2x.
yarn.lock
TravisCI can using Yarn by default if yarn.lock is available. https://blog.travis-ci.com/2016-11-21-travis-ci-now-supports-yarn
/packages/<module>
npm install 4.28s user 1.43s system 52% cpu 10.921 total
yarn 1.89s user 1.01s system 120% cpu 2.396 total
yarn 2.61s user 1.29s system 77% cpu 5.026 total
/
npm install 52.40s user 17.35s system 52% cpu 2:12.66 total
yarn 26.88s user 10.01s system 122% cpu 30.220 total
yarn 33.01s user 12.04s system 102% cpu 43.828 total
The text was updated successfully, but these errors were encountered:
Merge pull request #766 from Turfjs/yarn
472633c
Add yarn.lock to Turf modules #765 #704
Add via #766
Sorry, something went wrong.
DenisCarriere
No branches or pull requests
Using Yarn 4x faster
There are many benefits of using
Yarn
, mainly it is a fast & secure way to install dependencies frompackage.json
.Below are install times comparing
npm install
vs.yarn
using TurfJS.Also including
yarn.lock
can speed up the install process by 1.5-2x.TravisCI can using Yarn by default if
yarn.lock
is available.https://blog.travis-ci.com/2016-11-21-travis-ci-now-supports-yarn
Single Package
/packages/<module>
NPM (install 10.9s)
Yarn (install 2.3s - 4.7x faster than npm)
with
yarn.lock
(2x faster with lock)without
yarn.lock
TurfJS repo
/
NPM (install 2m12s)
Yarn (install 30s - x4.4 faster)
with `yarn.lock (1.5 faster with lock)
without
yarn.lock
The text was updated successfully, but these errors were encountered: