Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
10
Help us understand the problem. What is going on with this article?
@janus_wel

yarn てどうなの ?

More than 3 years have passed since last update.

yarn てどうなの ?

by janus_wel
1 / 14

yarn.png


ultra-fast.png


mega-secure.png


super-reliable.png


Super Reliable
npm の悲劇

├─┬ abc@1.0.0
│ ├── def@1.0.0
│ └── ghi@1.0.0
├─┬ jkl@1.1.0
│ ├── abc@2.0.0

↑たまになる😇
require/import するものによって実際のバージョンが異なったりする


good bye 涙ぐましい努力
shrinkwrap.png


lockfile でバージョンを固定できる

yarn-lockfile.png


redux が 2 日前に yarn lockfile を commit
https://github.com/reactjs/redux/commit/7c5d7615dc2c616d9f28d8dbe84e07fdc1bbd1ee
ワークしてそう


で、実際どうなのよ ?


$ git clone https://github.com/facebook/react.git .
$ time npm install
# snip
npm install  48.58s user 14.15s system 22% cpu 4:39.09 total
$ rm -rf ~/.yarn-cache
$ yarn
✨Done in 40.38s. 

キャッシュが全部のってると 16.43s

279.09 sec -> 16.43 sec


ちっちゃいけどおっきい features

what-are-you-waiting-for.png


プロダクトでは… ?

https://github.com/yarnpkg/yarn/issues/513
git-ssh.png

private repo を扱えるように対応が進んでいる😂


結論: いけそう

10
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
10
Help us understand the problem. What is going on with this article?