Install node
, n
, and yarn
.
Option #1 (Preferred): Install Node with brew.
brew install n yarn
sudo n 12.8.0
Option #2: Install Node using the official resource installer.
Install global dependencies. (Optional. May need admin rights.)
yarn boostrap
Install project dependencies.
yarn install
Runs the local build server with hot module reloading.
yarn dev
Lint's the files for any breaking changes.
yarn lint
Tests project using Jest tests and attempts to run a build. This command will also automatically run during Husky's pre-commit checks.
yarn test
Build out the entire site as a static project.
yarn build
Clean out all Node packages.
yarn purge