Skip to main content

Handy Yarn and NPM commands

Yarn commands

To build locally.

yarn build

To start yarn locally and view the changes Live.

yarn start

NPM commands

To build locally

npm run build

To test your build locally.

npm run serve

Yarn command to build and deploy straight to Github pages

USE_SSH=true yarn deploy

You can also use the following command.

GIT_USER=<your_Github_Username> yarn deploy