Skip to content

Available Scripts

Velocity includes several scripts for development, building, and maintenance.

Start the development server with hot reload.

Terminal window
pnpm dev

Opens at http://localhost:4321 by default.

Preview your production build locally.

Terminal window
pnpm build && pnpm preview

Build your site for production.

Terminal window
pnpm build

Output is generated in the dist/ directory.

Run ESLint to check for code issues.

Terminal window
pnpm lint

Format code with Prettier.

Terminal window
pnpm format

Run Astro’s type checker.

Terminal window
pnpm check

Run the test suite.

Terminal window
pnpm test
CommandDescription
pnpm devStart development server with hot reload
pnpm buildBuild for production
pnpm previewPreview production build locally
pnpm lintRun ESLint
pnpm formatFormat code with Prettier
pnpm checkRun Astro’s type checker
pnpm testRun test suite