Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
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
• 

君はyarn.lockをコミットしているか?
https://twitter.com/othiym23/status/819684484970778624
npm@5 …
yarn …
yarn.lock
yarn.lock
•
• yarn.lock
• 

yarn.lock/npm-shrinkwrap.json 

npm	install/yarn	install 

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をコミットしているか?
•
• yarn.lock
• devDeps 

deps
• deps devDeps
Do you `git commit yarn.lock` ?
https://yarnpkg.com/

More Related Content

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