d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
2.1 KiB
2.1 KiB
paths
| paths | ||||||
|---|---|---|---|---|---|---|
|
Nuxt Coding Style
This file extends common/coding-style.md with Nuxt specific content.
Directory layout
- Default
srcDirisapp/. Framework files live atapp/pages/,app/layouts/,app/middleware/,app/plugins/,app/app.config.ts.nuxt.config.tsandserver/stay at project root. - Some projects override
srcDirtosrc/for a Feature-Sliced Design layout, remappingdir.pages(for example tosrc/app/routes),dir.layouts, and the@/~aliases. Always checknuxt.config.tsbefore assuming a path.
Auto-imports discipline
- Composables in
app/composables/andserver/utils/auto-import. Do NOT manually import Nuxt composables (useFetch,useState,navigateTo) ordefineStore/storeToRefs. - Do NOT add a standalone
vue-routerdep (Nuxt bundles v5) or hand-mountcreateApp/createPinia/createRouter. The framework wires these.
Compiler macros
definePageMetais a compile-time macro. Static values only, no reactive data and no side-effect calls inside it.- Augment typed
PageMetaviadeclare module '#app'rather than casting.
Config file separation
Three distinct files, do not conflate.
nuxt.config.ts= build-time only (routeRules,modules,nitro,ssrflag). Not reactive.runtimeConfig(inside nuxt.config) = per-env runtime values, env-overridable viaNUXT_*. Root keys are server-only,publickeys are client-visible.app/app.config.ts= public build-fixed reactive settings (theme tokens, feature flags). No env override. NEVER secrets.
Head and meta
app.headinnuxt.config.tstakes static values only.- Reactive meta goes through
useHead/useSeoMetain component setup, never viaapp.head.
Reference
- ECC skills:
nuxt4-patterns,vite-patterns,frontend-patterns. - Nuxt directory structure
- Nuxt configuration