Testing & contributing
Full CI-style check
From the repository root (same steps as GitHub Actions CI ):
git clone https://github.com/next-md-blog/next-md-blog.git
cd next-md-blog
pnpm install --frozen-lockfile # optional; use pnpm install locally
pnpm check # lint + typecheck + test + pnpm buildpnpm check is the single gate before a PR: it runs pnpm lint, pnpm typecheck, pnpm test, then pnpm build.
Running tests
pnpm install
pnpm testpnpm test runs Vitest in packages/core and packages/cli only. The docs app has no test script. Integration tests in packages/cli use a minimal Next.js fixture; packages/core has broader unit coverage.
Target one package:
pnpm test:core
pnpm test:cliWatch mode and coverage (where configured):
pnpm test:watch
pnpm test:coverageLint and typecheck
pnpm lint— ESLint onpackages/cli,packages/core,docs/, and both demo apps (demos/single,demos/i18n).pnpm typecheck—tsc --noEmitforpackages/*anddocs/only. Demos are type-checked as part of their Next.js production build inpnpm build, not as a separate workspacetypechecktask.
Building the monorepo
Root pnpm install runs prepare, which builds packages/* but not docs/ or demos (keeps installs fast).
pnpm build— buildspackages/*,docs/, and both demo apps (matches CI).pnpm build:docs— documentation site only.
pnpm run buildContributing
Guidelines and workflow: .github/CONTRIBUTING.md in the GitHub repository. Prefer focused PRs that match existing style in packages/core and packages/cli.
Last updated on