nuxt-site-template

7
3
7
8
Vue
public

Nuxt Site Template

A starting point for a Nuxt 4 site, with linting, type checking, unit/component tests (Vitest) and browser tests (Playwright) already configured.

Look at the Nuxt documentation to learn more.

Setup

pnpm install

Development

Start the development server on http://localhost:3000:

pnpm dev

Testing

pnpm lint          # eslint
pnpm test:types    # vue-tsc
pnpm test:unit     # vitest, node environment
pnpm test:nuxt     # vitest, nuxt environment
pnpm test:browser  # playwright

Browser snapshots are platform-specific, so update them inside the Playwright container:

pnpm test:browser:update

Production

pnpm build     # build for production
pnpm preview   # preview the production build locally

Check out the deployment documentation for more information.

v0.3.3[beta]