Available Scripts
Velocity includes several scripts for development, building, and maintenance.
Development
Section titled “Development”pnpm dev
Section titled “pnpm dev”Start the development server with hot reload.
pnpm devOpens at http://localhost:4321 by default.
pnpm preview
Section titled “pnpm preview”Preview your production build locally.
pnpm build && pnpm previewBuilding
Section titled “Building”pnpm build
Section titled “pnpm build”Build your site for production.
pnpm buildOutput is generated in the dist/ directory.
Code Quality
Section titled “Code Quality”pnpm lint
Section titled “pnpm lint”Run ESLint to check for code issues.
pnpm lintpnpm format
Section titled “pnpm format”Format code with Prettier.
pnpm formatpnpm check
Section titled “pnpm check”Run Astro’s type checker.
pnpm checkTesting
Section titled “Testing”pnpm test
Section titled “pnpm test”Run the test suite.
pnpm testQuick Reference
Section titled “Quick Reference”| Command | Description |
|---|---|
pnpm dev | Start development server with hot reload |
pnpm build | Build for production |
pnpm preview | Preview production build locally |
pnpm lint | Run ESLint |
pnpm format | Format code with Prettier |
pnpm check | Run Astro’s type checker |
pnpm test | Run test suite |