@yosr-ai/template-next-fullstack 0.1.0-alpha.6 → 0.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @yosr-ai/template-next-fullstack
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.7
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8d7a4e5: Add the FastAPI template (`--template fastapi`, ADRs 0017 and 0018): uv, Python 3.12+, Pydantic v2, Ruff, Pyright, pytest, a notes API, database none/SQLite/Postgres, API-key auth, Docker. `--template` selection (TTY asks Template first; otherwise `next-fullstack` with a `Using template:` line), `yosr-seed gate`, and Python/uv info lines in `doctor`.
|
|
8
|
+
- f3b8706: Named style profiles (ADR 0015): `profiles/<name>.json` + `config.json`, migrate from `profile.json`, create `--profile <name>`, and record `profileName` / `profileHash` in `.seed/`.
|
|
9
|
+
- edded9a: Add create-time `--workflow` (Local / GitHub / None) with engine-level tracker files, agent pointer files, and AGENTS.md loop docs (ADR 0016).
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2309eb3: CLI dogfood fixes: forward TTY for `profile create`, default editor when VISUAL/EDITOR unset, and saved-style labels from applied style.
|
|
14
|
+
- c43a813: Drop stale legal-review wording now that the Yosr Seed License text is accepted, trim the invalid `@alpha@<version>` note from the CLI READMEs, and add a docker-prisma golden for the Prisma Docker pre-install COPY and compose wiring.
|
|
15
|
+
- 394a9fb: Template dogfood: Docker README for database=none, project-name image tag, seed.yosr.ai link, and app-pages zones under src/app/** (no (app) group).
|
|
16
|
+
|
|
3
17
|
## 0.1.0-alpha.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## Docker
|
|
2
|
+
|
|
3
|
+
Build and run the app with Compose:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
docker compose up --build
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Or build the image alone:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
__seed_pmRun__ image:build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
That tags `__seed_projectSlug__:latest`. Then open http://localhost:3000.
|
|
16
|
+
|
|
17
|
+
The Dockerfile sets `YOSR_STANDALONE=1` so Next.js emits a standalone server. The image does not read `.env.local` (see `.dockerignore`).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## Docker
|
|
1
|
+
## Postgres with Docker
|
|
2
2
|
|
|
3
3
|
Postgres is wired in `compose.yaml` (`DATABASE_URL` uses the `postgres` service hostname). Local-dev password is `postgres` — change it for anything beyond local use.
|
|
4
4
|
|
|
@@ -9,12 +9,10 @@ docker compose up -d postgres
|
|
|
9
9
|
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres __seed_pmRun__ db:push
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
2. Build and run the app:
|
|
12
|
+
2. Build and run the app (see the Docker section above for Compose / `image:build`):
|
|
13
13
|
|
|
14
14
|
```text
|
|
15
15
|
docker compose up --build
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
Then open http://localhost:3000.
|
|
19
|
-
|
|
20
18
|
For a bare `docker run` of the image, pass `-e DATABASE_URL=...` yourself. The image does not read `.env.local` (see `.dockerignore`).
|
package/files/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# __seed_projectName__
|
|
2
2
|
|
|
3
|
-
Generated by [Yosr Seed](https://yosr.ai) from the `__seed_templateName__@__seed_templateVersion__` template.
|
|
3
|
+
Generated by [Yosr Seed](https://seed.yosr.ai) from the `__seed_templateName__@__seed_templateVersion__` template.
|
|
4
4
|
|
|
5
5
|
## Commands
|
|
6
6
|
|
|
@@ -13,6 +13,6 @@ Generated by [Yosr Seed](https://yosr.ai) from the `__seed_templateName__@__seed
|
|
|
13
13
|
| E2E smoke test (Playwright) | `__seed_pmRun__ test:e2e` |
|
|
14
14
|
| Format | `__seed_pmRun__ format` |
|
|
15
15
|
|
|
16
|
-
Agent rules live in `AGENTS.md` (
|
|
16
|
+
Agent rules live in `AGENTS.md` (Claude Code via `CLAUDE.md`, Cursor via `.cursor/rules/`, GitHub Copilot via `.github/copilot-instructions.md`, Gemini via `GEMINI.md`). The architecture note is in `docs/architecture.md`.
|
|
17
17
|
|
|
18
18
|
<!-- @seed:anchor readme-sections -->
|
package/package.json
CHANGED
package/rules/architecture.md
CHANGED
|
@@ -8,4 +8,4 @@ Next.js (App Router) + TypeScript, Tailwind CSS v4 + shadcn/ui, Vitest (unit) +
|
|
|
8
8
|
|
|
9
9
|
## Request flow
|
|
10
10
|
|
|
11
|
-
`src/app/page.tsx` (Server Component) reads notes through the feature store, renders `NoteForm` (client) and `NoteList` (server). The form posts to a server action, which validates with zod, stores the note and revalidates the page.
|
|
11
|
+
`src/app/page.tsx` (Server Component) reads notes through the feature store, renders `NoteForm` (client) and `NoteList` (server). The form posts to a server action, which validates with zod, stores the note and revalidates the page. App routes live under `src/app/` (no `(app)` route group); API handlers under `src/app/api/` and auth sign-in/sign-up pages stay with their features.
|
package/seed.template.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "../../../docs/engineering/schemas/seed.template.schema.json",
|
|
3
3
|
"schemaVersion": "0.1",
|
|
4
4
|
"name": "next-fullstack",
|
|
5
|
-
"version": "0.1.0-alpha.
|
|
5
|
+
"version": "0.1.0-alpha.7",
|
|
6
6
|
"title": "Next.js full-stack (TypeScript)",
|
|
7
7
|
"description": "Prototype of Yosr Seed's first base template (Next.js + TypeScript, Tailwind + shadcn/ui, Vitest + Playwright smoke test). Implemented: base files with the ADR 0006 defaults, the orm-drizzle and orm-prisma overlays (database=postgres), database=none (base without either overlay), deploy=docker (standalone image, compose Postgres only when database=postgres), Auth.js, Clerk, tRPC, Stripe, and a recorded AI delta for domain-features. x-prototype.stubbedFeatures is empty. Dependency versions pinned from the npm registry on 2026-10-19 (Prisma adapter on 2026-10-28, Clerk on 2026-10-28, tRPC on 2026-10-29, Stripe on 2026-10-29).",
|
|
8
8
|
"license": "MIT",
|
|
@@ -261,6 +261,42 @@
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": "workflow",
|
|
267
|
+
"type": "enum",
|
|
268
|
+
"label": {
|
|
269
|
+
"cli": "Workflow",
|
|
270
|
+
"wizard": "How should agents track work?"
|
|
271
|
+
},
|
|
272
|
+
"help": {
|
|
273
|
+
"cli": "Local Markdown tracker, GitHub issue/PR templates, or neither.",
|
|
274
|
+
"wizard": "Local files under work/, GitHub templates only, or skip the tracker."
|
|
275
|
+
},
|
|
276
|
+
"default": "local",
|
|
277
|
+
"choices": [
|
|
278
|
+
{
|
|
279
|
+
"value": "local",
|
|
280
|
+
"label": {
|
|
281
|
+
"cli": "Local",
|
|
282
|
+
"wizard": "Markdown tracker under work/ (default)"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"value": "github",
|
|
287
|
+
"label": {
|
|
288
|
+
"cli": "GitHub",
|
|
289
|
+
"wizard": "Issue and PR templates (no API calls)"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"value": "none",
|
|
294
|
+
"label": {
|
|
295
|
+
"cli": "None",
|
|
296
|
+
"wizard": "No tracker files; keep zones only"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
]
|
|
264
300
|
}
|
|
265
301
|
],
|
|
266
302
|
"constraints": [
|
|
@@ -868,7 +904,7 @@
|
|
|
868
904
|
"equals": "docker"
|
|
869
905
|
},
|
|
870
906
|
"scripts": {
|
|
871
|
-
"image:build": "docker build -t
|
|
907
|
+
"image:build": "docker build -t __seed_projectSlug__:latest ."
|
|
872
908
|
},
|
|
873
909
|
"patches": [
|
|
874
910
|
{
|
|
@@ -876,6 +912,13 @@
|
|
|
876
912
|
"target": "next.config.ts",
|
|
877
913
|
"anchor": "next-config",
|
|
878
914
|
"content": "...(process.env.YOSR_STANDALONE === \"1\" ? { output: \"standalone\" as const } : {}),"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"op": "insert",
|
|
918
|
+
"target": "README.md",
|
|
919
|
+
"anchor": "readme-sections",
|
|
920
|
+
"source": "features/deploy-docker/snippets/readme-docker.md",
|
|
921
|
+
"position": "before"
|
|
879
922
|
}
|
|
880
923
|
]
|
|
881
924
|
},
|
|
@@ -1240,13 +1283,13 @@
|
|
|
1240
1283
|
},
|
|
1241
1284
|
{
|
|
1242
1285
|
"id": "app-pages",
|
|
1243
|
-
"intent": "Pages and layouts
|
|
1286
|
+
"intent": "Pages and layouts under src/app/**, composed from shadcn/ui. Leave src/app/api/** and auth sign-in/sign-up routes to their own features; this template never creates src/app/(app)/.",
|
|
1244
1287
|
"paths": {
|
|
1245
1288
|
"create": [
|
|
1246
|
-
"src/app
|
|
1289
|
+
"src/app/**"
|
|
1247
1290
|
],
|
|
1248
1291
|
"modify": [
|
|
1249
|
-
"src/app
|
|
1292
|
+
"src/app/**"
|
|
1250
1293
|
]
|
|
1251
1294
|
},
|
|
1252
1295
|
"context": [
|