Cheat Sheets

Yarn

Created: 2017 May 19th

Updated: 2019 October 13th

Edit this page on GitHub

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 lates versions.

1yarn upgrade --latest

Globally add a package

1yarn global add netlify-cli

displays the location of the yarn bin folder.

1yarn bin

list installed packages.

1yarn ls

create-react-app

Couple of good one here from @beedesignllc 👌

1yarn create react-app my-app-name

☝️ downloads and runs latest create-react-app works for other similarly named pkgs

flow

1yarn 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:

1yarn install --frozen-lockfile