FerryDocs
ContributingWeb client

The npm scripts

Six npm scripts in web/ run the dev server, the tests, the checks and the build.

Edit on GitHub

npm run dev. Work on the app with hot reload.

1 / 6
From the first change to the production build

What each script does

Run each script in web/.

ScriptWhat it does
npm run dev dev server with and the API proxy (port 5173)
npm run buildtsc -b && vite build → dist/, with hashed files under dist/assets/
npm run previewServes dist/ with the same proxy (port 4173)
npm test unit tests (src/**/*.test.ts and src/**/*.test.tsx)
npm run typechecktsc -b --noEmit
npm run lint (typescript-eslint, react-hooks, react-refresh)

A hashed file has a code in its name. The code changes when the content changes.

On this page