Scripts

The page describes different modes of running the swapper for local dev purposes.

Client and functions

  • vercel dev - executes both backend and frontend.

Frontend only

Below is for frontend client only (excluding Vercel serveless functions).

  • yarn dev — Starts the application in development mode at http://localhost:3000.

  • yarn build — Creates an optimized production build of your application.

  • yarn start — Starts the application in production mode.

  • yarn type-check — Validate code using TypeScript compiler.

  • yarn lint — Runs ESLint for all files in the src directory.

  • yarn format — Runs Prettier for all files in the src directory.

  • yarn commit — Run commitizen. Alternative to git commit.

Last updated