chore(workspace): move the app to apps/app under a pnpm workspace (step 2)
144 files moved with git mv (pure renames). Root package.json delegates dev/typecheck/test:run/lint/build to the packages; Node 24 LTS and pnpm 10.13.1 pinned (.nvmrc, .node-version, engines, packageManager, root devDependency, engine-strict). Dockerfile builds @faunosteo/app on node:24-alpine and copies apps/app/dist; nginx and runtime config unchanged. CI workflow for Gitea Actions. packages/ reserved (README only). Docs synced: WORKSPACE.md, CLAUDE.md, README, DEPLOY, CHANGELOG, plan. 271/271 tests, typecheck, lint, build green from the root.
This commit is contained in:
1 parent
c8d48ab4cc
commit
8673475293
164 files changed
+348
-128
No files matched your search
@@ -84,16 +84,22 @@ Name: Monorepo workspace
|
||||
Objective: Move the app to apps/app under a pnpm workspace with zero behaviour change; add CI.
|
||||
Dependencies: Step 1
|
||||
Changes expected:
|
||||
- apps/app/{src,public,tests,index.html,vite.config.ts,vitest.config.ts,tsconfig*.json,eslint.config.js,package.json}
|
||||
- root: pnpm-workspace.yaml (packages: apps/*, packages/*), package.json scripts delegating
|
||||
(pnpm -r typecheck/test:run/lint/build), shared prettier/editorconfig.
|
||||
- Dockerfile build context and paths updated; docker/nginx.conf and entrypoint.sh unchanged in behaviour.
|
||||
- CI pipeline file for the forge in use (none exists today): typecheck, lint, test, build, docker build.
|
||||
- packages/ directory created empty (no package yet; YAGNI).
|
||||
Tests: full suite green from apps/app; docker image builds and serves / and /pathology-editor.html.
|
||||
Manual validation: pnpm dev from root; open /, /new, /editor, /svg-editor, /editors, /pathology-editor.html; export a PDF; docker compose up --build and repeat on :8080.
|
||||
Definition of Done: identical behaviour, same test count, CI green on the branch, DEPLOY.md paths updated.
|
||||
Risks: path alias and Vite public dir regressions (caught by the e2e manual script); git history of moved files (use git mv in one commit).
|
||||
- apps/app/{src,public,tests,scripts,index.html,vite.config.ts,vitest.config.ts,tsconfig*.json,eslint.config.js,package.json}
|
||||
- root: pnpm-workspace.yaml (apps/*, packages/*), package.json scripts delegating
|
||||
(pnpm -r typecheck/test:run/lint/build), engines + packageManager, Node 24 pins.
|
||||
- Dockerfile build context and paths updated; docker/nginx.conf and entrypoint.sh unchanged.
|
||||
- CI pipeline (.gitea/workflows/ci.yml): install, typecheck, test, lint, build (+ docker job).
|
||||
- packages/ holds only a README (no empty package).
|
||||
Tests: full suite green from the root; dist contains the static editor and species assets.
|
||||
Manual validation: docs/development/WORKSPACE.md §6.
|
||||
Definition of Done: identical behaviour, same test count, CI file present, docs synced (WORKSPACE.md, CLAUDE.md, README, DEPLOY.md, CHANGELOG).
|
||||
Risks: path regressions (caught by the suite + dist listing); Docker build not verifiable on a host without a Docker daemon.
|
||||
Status: DONE 2026-10-08 (branch feature/step-02-monorepo-workspace, uncommitted, awaiting validation).
|
||||
Facts: 144 files moved with git mv; 271/271 tests, typecheck, lint, build green from the root;
|
||||
Node 24 LTS adopted (Node 20 EOL 2026-04-30); pnpm 10.13.1 pinned (packageManager + root devDependency);
|
||||
lockfile rewritten by pnpm 10.13.1 (libc fields left by an earlier pnpm 11 dropped).
|
||||
Side note: the gitflow finish of Step 1 purged docs/superpowers/{specs,plans} (lib rule BDR-065,
|
||||
commit 8f217d8 on develop); restore with `git revert 8f217d8` if those design records are wanted.
|
||||
```
|
||||
|
||||
```text
|
||||
@@ -498,7 +504,7 @@ Per-step table (depends on / unblocks / main risk):
|
||||
| Step | Depends on | Unblocks | Main risk |
|
||||
|---|---|---|---|
|
||||
| 1 Characterisation tests | 0 | 2, 4, 5 | encoding bugs as expected behaviour |
|
||||
| 2 Workspace | 1 | 3, 4 | path regressions |
|
||||
| 2 Workspace | 1 | 3, 4 | path regressions (DONE) |
|
||||
| 3 Supabase foundation | 2 | 7, 13 | hosting decision (Q2) |
|
||||
| 4 Sheet model + importer | 1, 2 | 5, 13 | special cases missed (audit 07) |
|
||||
| 5 App on sheet, document v3 | 4 | 6, 14, 17 | core refactor size |
|
||||
|
||||
Reference in new issue
Block a user