|
| 1 | +# AGENTS.md |
| 2 | + |
| 3 | +## Project Shape |
| 4 | + |
| 5 | +- This is a Nuxt 4 single-app template, not a monorepo. The app lives under `app/`. |
| 6 | +- Main shell: `app/app.vue`; page entrypoint: `app/pages/index.vue`. |
| 7 | +- The changelog repository is configured in `app/app.config.ts` as `repository: "nuxt/ui"`. |
| 8 | +- Release data is fetched from `https://ungh.cc/repos/<owner>/<repo>/releases` in `app/composables/useChangelogReleases.ts` and rendered by `app/components/ChangelogTimeline.vue`. |
| 9 | +- GitHub-flavored markdown links are resolved by `remark-github` in `nuxt.config.ts`; keep its `repository` option aligned with `app/app.config.ts` when changing the demo repository. |
| 10 | + |
| 11 | +## Commands |
| 12 | + |
| 13 | +- Install: `pnpm install` (`postinstall` runs `nuxt prepare`). |
| 14 | +- Dev server: `pnpm dev`; for agent-run browser checks, prefer `pnpm dev --port 4000` or another free port in `4000-4100`. |
| 15 | +- Verification order used by CI and PR template: `pnpm lint`, `pnpm typecheck`, `pnpm build`. |
| 16 | +- There is no test script in this repo; do not invent one. |
| 17 | +- If `.nuxt/` is missing or stale and lint/typecheck fail to load Nuxt-generated config, run `pnpm install` or `pnpm exec nuxt prepare` first. |
| 18 | + |
| 19 | +## Tooling And UI Conventions |
| 20 | + |
| 21 | +- Package manager is `[email protected]`; CI runs on Node 22. |
| 22 | +- shadcn-vue components live in `app/components/ui` per `components.json` and `nuxt.config.ts`. |
| 23 | +- `components.json` includes the `@stackhacker-ui` registry at `https://ui.stackhacker.io/r/{name}.json`. |
| 24 | +- Styling uses Tailwind CSS v4 through `@tailwindcss/vite`; prefer semantic tokens/classes already used in the app. |
| 25 | +- Editor formatting is 2-space indentation, LF, final newline, and trimmed trailing whitespace. |
| 26 | + |
| 27 | +## Browser And Deployment Checks |
| 28 | + |
| 29 | +- Use `playwright-cli` for browser verification; do not use `chrome-devtools` for this repo's agent checks. |
| 30 | +- Check both desktop and mobile for UI changes. |
| 31 | +- Treat SSR hydration mismatches as publication blockers. Random or time-zone-dependent rendering must be deterministic on server and client. |
| 32 | +- Existing examples: `app/components/SkyBg.vue` uses seeded deterministic stars; `app/utils/changelog.ts` formats dates with `timeZone: "UTC"`. |
| 33 | +- Canonical public demo URL: `https://changelog-template.stackhacker.io/`. |
| 34 | +- Cloudflare Pages build settings are `pnpm build` -> `dist` from GitHub `stackhacker-ui/changelog` on `main`. |
| 35 | + |
| 36 | +## Boundaries |
| 37 | + |
| 38 | +- Keep private planning, handoff, and agent research artifacts out of the public repo. |
| 39 | +- Public docs and UI should not link to private project docs. |
0 commit comments