君はyarn.lockをコミットしているか?

25
yarn.lock @teppeis #tng24 March 31, 2017

Upload: teppei-sato

Post on 05-Apr-2017

3.424 views

Category:

Technology


1 download

TRANSCRIPT

yarn.lock

@teppeis

#tng24 March 31, 2017

Hello!• Teppei SATO, @teppeis

• Cybozu, Inc. / kintone Corp.

https://scotch.io/tutorials/yarn-package-manager-an-improvement-over-npm

Yarn• yarn.lock instead of npm-shrinkwrap.json

• fast, offline, cache • secure? • --flat, --module-folder

https://yarnpkg.com/

https://www.berriart.com/blog/2016/10/npm-yarn-benchmark/

https://gist.github.com/othiym23/c98bd4ef5d9fb3f496835bd481ef40ae

Yarn • npm@5 2017

• yarn npm@5

• yarn Node.js io.js

• Yak shaving

• private npm registry

https://twitter.com/othiym23/status/819684484970778624

npm@5 …

yarn …

yarn.lock

yarn.lock•

• yarn.lock

yarn.lock/npm-shrinkwrap.json

npminstall/yarninstall

semver

• CI

yarn.lock/npm-shrinkwrap.json

• /CI

• minor

Yarn

https://yarnpkg.com/

https://yarnpkg.com/blog/2016/11/24/lockfiles-for-all/

deps << devDeps• npm dependencies

devDependencies

• babel, webpack, eslint 509

• breaking changes

devDependencies

devDeps •

• OSS

breaking change

install upgrade

• install

yarn.lock

• yarn.lock

• devDeps

deps

• deps devDeps

Do you `git commit yarn.lock` ?

https://yarnpkg.com/