Setup:
npm install
Cleanup (remove node modules and /dist):
npm run clean
Run backend and frontend for development (i.e. with full hot reloading):
npm run dev
You can also run the backend and frontend for development separately (in order to differentiate output streams):
npm run backend
npm run frontend
Build files to /dist:
npm run build
Run for production (outputs files in /dist and runs express server to serve them, along with backend):
npm run prod