LoginSignup
10
10

More than 5 years have passed since last update.

yarn てどうなの ?

Posted at
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
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10