From 33a9c77417e3ff975159f15eda155eb184df1b42 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Thu, 25 Dec 2025 20:18:32 +0000 Subject: [PATCH] docs: prompts,kickstart,github (1 files) --- .github/prompts/0-kickstart.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/prompts/0-kickstart.md b/.github/prompts/0-kickstart.md index 97fbac0ec..32e137524 100644 --- a/.github/prompts/0-kickstart.md +++ b/.github/prompts/0-kickstart.md @@ -35,7 +35,13 @@ Run app workflows from `frontends/nextjs/`: - Function coverage: `npm run test:check-functions` - Coverage report: `npm run test:coverage:report` - E2E: `npm run test:e2e` -- Prisma: `npm run db:generate` / `npm run db:push` / `npm run db:migrate` +- Prisma (schema is in `prisma/schema.prisma`; requires `DATABASE_URL`): + - If `npm run db:*` can’t find the schema from `frontends/nextjs/`, run: + - `DATABASE_URL="file:./dev.db" npx prisma generate --schema ../../prisma/schema.prisma` + - `DATABASE_URL="file:./dev.db" npx prisma db push --schema ../../prisma/schema.prisma` + - `DATABASE_URL="file:./dev.db" npx prisma migrate deploy --schema ../../prisma/schema.prisma` + - `DATABASE_URL="file:./dev.db" npx prisma validate --schema ../../prisma/schema.prisma` + - Otherwise: `npm run db:generate` / `npm run db:push` / `npm run db:migrate` - Coverage output: `frontends/nextjs/coverage/` DBAL workflows live in `dbal/ts/` (`npm run build`, `npm run test:unit`). @@ -63,6 +69,6 @@ DBAL workflows live in `dbal/ts/` (`npm run build`, `npm run test:unit`). - Package metadata: keep `packages/*/seed/metadata.json` `packageId` in `snake_case` and versions semver (e.g. `1.2.3`). ## CI / Workflows -- Use `act` to reproduce and debug GitHub Actions locally (see `npm run act`, `npm run act:diagnose`, `docs/guides/ACT_TESTING.md`). +- Use `act` to reproduce and debug GitHub Actions locally (from `frontends/nextjs/`: `npm run act`, `npm run act:diagnose`; see `docs/guides/ACT_TESTING.md`). If you get stuck, see `.github/prompts/EEK-STUCK.md`.