Sebastian Herrmann
A software-developing peep.
package manager for JavaScript
replacement for npm
developed by Facebook, Google and others
🔎 more precise ("secure") version management
🐎 faster than npm (installation speed)
🤖 entirely compatible with our current workflow
💅🏽 cleaner (and prettier!) log output than npm
brew update brew install yarn yarn --version
or
npm install yarn --global
npm init
npm install
npm install <package>
npm uninstall <package>
npm run watch
npm run publish
yarn init
yarn (or yarn install)
yarn add <package>
yarn remove <package>
yarn run watch
yarn run publish
Yarn updates your
package.json
automatically!
More commands: https://yarnpkg.com/lang/en/docs/cli
yarn upgrade <package>
Install newer versions via:
yarn upgrade-interactive
yarn.lock file (please check into git)
watch out for git-based packages:
More info and docs: http://yarnpkg.com
Yarn has its own package directory:
Thanks.
آپ کا شکریہ
By Sebastian Herrmann
Yarn != Yawn!