ViraStack
  • About
  • Support
HomeGet StartedBuilder

Getting started

  • Introduction
  • Installation
  • llms.txt
  • llms-full.txt

CLI

  • Commands and flags
  • Templates

Project

  • Scripts
  • i18n

Scripts

Use the right script for the job: local development, quality gates, and CI.

Every template ships with the same quality scripts. Framework-specific extras are noted below. Prefer pnpm; npm, yarn, and bun work the same way.

Day to day

CommandWhen to use it
pnpm devStart the local dev server (Next.js uses Turbopack; TanStack Start uses Vite on port 3000).
pnpm buildProduction build. Run before deploy or when you want to verify the build locally.
pnpm startServe the production build (Next.js) or preview the Vite build (TanStack Start).

Quality

CommandWhen to use it
pnpm lintRun ESLint with cache. Use while coding to catch issues early.
pnpm lint:fixAuto-fix ESLint issues, then run Prettier write.
pnpm lint:ciStrict lint for CI: zero warnings, plus Prettier check. Same gate as GitHub Actions.
pnpm formatFormat the whole repo with Prettier.
pnpm format:checkCheck formatting without writing files (CI-friendly).
pnpm typecheckTypeScript check with tsc --noEmit. Run before push if you changed types.
pnpm knipFind unused files, exports, and dependencies. Keep the scaffold lean.

Husky runs lint-staged on commit and related checks on push. You rarely need to run the full suite by hand unless CI fails locally.

Framework-specific

These scripts exist only on the matching template:

CommandTemplateWhen to use it
pnpm analyzenextjsBundle analyzer build. Use when you care about client bundle size.
pnpm generate-routestanstackRegenerate the TanStack Router route tree after adding or renaming routes.
pnpm previewtanstackPreview the production Vite build (same idea as pnpm start).
pnpm cleantanstackRemove Vite / TanStack build caches (dist, .tanstack, .output).

CI

GitHub Actions in the scaffold runs this sequence:

typecheck → lint:ci → knip → build

If CI fails, reproduce the same order locally: pnpm typecheck && pnpm lint:ci && pnpm knip && pnpm build.

PreviousTemplatesNexti18n

On this page

  • Day to day
  • Quality
  • Framework-specific
  • CI
Something wrong? Fix it