Cheat Sheets

Yarn

Created: 2017 May 19th

Updated: 2019 October 13th

This is just stuff that I have put down that I find I use a lot of the time for my own reference.

Update dependencies

Update all project dependencies to latest versions.

GNU Bash icon
yarn upgrade --latest

Globally add a package

GNU Bash icon
yarn global add netlify-cli

Upgrade global packages

GNU Bash icon
yarn global upgrade

displays the location of the yarn bin folder.

GNU Bash icon
yarn bin

list installed packages.

GNU Bash icon
yarn ls

create-react-app

Couple of good one here from @beedesignllc ๐Ÿ‘Œ

GNU Bash icon
yarn create react-app my-app-name

โ˜๏ธ downloads and runs latest create-react-app works for other similarly named pkgs

flow

GNU Bash icon
yarn flow

โ˜๏ธ will run node_modules/.bin/flow without you having to add it as a package.json script.

npm ci

The equivalent to npm ci for yarn:

GNU Bash icon
yarn install --frozen-lockfile