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
@@ -20,8 +20,8 @@ MVP species: equine only. Open-source MIT.
|
||||
|
||||
| Concern | Choice | Version |
|
||||
|---|---|---|
|
||||
| Runtime | Node.js | 20 |
|
||||
| Package manager | pnpm | >=9 (11.x on host) |
|
||||
| Runtime | Node.js | 24 LTS (`.nvmrc`, `engines` >=22.12 <25) |
|
||||
| Package manager | pnpm | 10.13.1 (`packageManager`, root devDependency) |
|
||||
| Build | Vite + @vitejs/plugin-react-swc | 7.x |
|
||||
| UI | React | 19 |
|
||||
| Language | TypeScript strict | 5.x |
|
||||
@@ -38,6 +38,10 @@ MVP species: equine only. Open-source MIT.
|
||||
|
||||
## Build commands
|
||||
|
||||
pnpm workspace: `apps/app` = the private application, `packages/` empty for
|
||||
now (see `docs/development/WORKSPACE.md`). Every command below runs from the
|
||||
repository root and delegates to the packages.
|
||||
|
||||
```bash
|
||||
# Development
|
||||
pnpm dev
|
||||
@@ -77,8 +81,8 @@ docker compose up --build
|
||||
docker compose down
|
||||
```
|
||||
|
||||
Note: pnpm binary at `~/.local/bin/pnpm` on dev host (corepack broken).
|
||||
It is normally already on PATH; otherwise `export PATH="$HOME/.local/bin:$PATH"`.
|
||||
Note: no global pnpm needed. `corepack enable` once (reads `packageManager`),
|
||||
or call `corepack pnpm <cmd>`. Root scripts resolve `node_modules/.bin/pnpm`.
|
||||
|
||||
---
|
||||
|
||||
@@ -89,8 +93,9 @@ pnpm test:run # vitest run — all tests, single pass, CI-safe
|
||||
pnpm test # vitest watch — dev loop
|
||||
```
|
||||
|
||||
Test files live in `tests/unit/*.test.ts` and `tests/unit/*.test.tsx`.
|
||||
Setup: `tests/setup.ts` imports @testing-library/jest-dom.
|
||||
Test files live in `apps/app/tests/unit/*.test.ts(x)`; golden fixtures in
|
||||
`apps/app/tests/fixtures/`. Setup: `apps/app/tests/setup.ts` imports
|
||||
@testing-library/jest-dom. Characterisation suite: files prefixed `char.`.
|
||||
|
||||
---
|
||||
|
||||
@@ -106,7 +111,8 @@ pnpm format # Prettier write
|
||||
## Folder structure
|
||||
|
||||
```
|
||||
osteo/
|
||||
faunosteo/
|
||||
├─ apps/app/ ← @faunosteo/app (everything below until packages/)
|
||||
├─ public/
|
||||
│ ├─ species/equine/{Horse,Horse_head}.svg ← real anatomy SVGs
|
||||
│ └─ pathology-editor.html ← standalone JSON editor (served as static file)
|
||||
@@ -166,20 +172,18 @@ osteo/
|
||||
│ ├─ ANATOMY-SVG-CONVENTION.md ← SVG data-* contract
|
||||
│ ├─ ADDING-A-SPECIES.md
|
||||
│ ├─ PDF-FORMAT.md
|
||||
│ ├─ superpowers/specs/
|
||||
│ │ ├─ 2026-05-18-osteo-report-mvp-design.md
|
||||
│ │ ├─ 2026-05-20-b3-i18n-fr-en-design.md
|
||||
│ │ └─ 2026-05-22-pathology-editor-design.md
|
||||
│ └─ superpowers/plans/
|
||||
│ ├─ 2026-05-18-osteo-report-mvp.md
|
||||
│ └─ 2026-05-20-b3-i18n-fr-en.md
|
||||
│ ├─ faunosteo-audit/ ← audit of the current system (frozen at 83e40af)
|
||||
│ └─ development/ ← SaaS implementation plan, WORKSPACE.md
|
||||
├─ eslint.config.js, index.html, package.json (@faunosteo/app)
|
||||
├─ tsconfig*.json, vite.config.ts, vitest.config.ts
|
||||
│ (end of apps/app)
|
||||
├─ packages/README.md ← future shared packages (none yet)
|
||||
├─ .gitea/workflows/ci.yml ← CI: install, typecheck, test, lint, build, docker
|
||||
├─ .claude/{tasks/TODO.md,memory/,audits/}
|
||||
├─ Dockerfile, docker-compose.yml
|
||||
├─ .env.example, .editorconfig, .nvmrc, .prettierrc.json
|
||||
├─ eslint.config.js, index.html
|
||||
├─ package.json, tsconfig*.json
|
||||
├─ vite.config.ts, vitest.config.ts
|
||||
├─ CLAUDE.md, README.md, LICENSE
|
||||
├─ Dockerfile, docker-compose.yml, docker/
|
||||
├─ .env.example, .editorconfig, .nvmrc, .node-version, .npmrc, .prettierrc.json
|
||||
├─ package.json (workspace root), pnpm-workspace.yaml, pnpm-lock.yaml
|
||||
├─ CLAUDE.md, README.md, DEPLOY.md, CHANGELOG.md, LICENSE
|
||||
```
|
||||
|
||||
---
|
||||
@@ -321,12 +325,12 @@ Runtime config
|
||||
- Pathology DB entries must be source-cited before commit; client review required for MVP batch.
|
||||
- Ask before any change to importReportFromPdf or extractReportJson — these handle user data.
|
||||
- After PDF roundtrip tests fail: check attachment bytes, then Zod validation, then DecompressionStream inflation.
|
||||
- pnpm binary: `~/.local/bin/pnpm` on dev host (normally already on PATH).
|
||||
- Node 24 / pnpm 10.13.1: `corepack enable` or `corepack pnpm`; never a global install.
|
||||
|
||||
## Commit message convention
|
||||
|
||||
Conventional Commits format. Subject ≤72 chars, imperative mood, no trailing period.
|
||||
Allowed scopes: `schema`, `store`, `anatomy`, `pdf`, `editor`, `home`, `new`, `ui`, `config`, `species`, `i18n`, `docker`, `docs`, `tests`, `chore`.
|
||||
Allowed scopes: `schema`, `store`, `anatomy`, `pdf`, `editor`, `home`, `new`, `ui`, `config`, `species`, `i18n`, `docker`, `docs`, `tests`, `chore`, `app`, `workspace`, `ci`.
|
||||
|
||||
Examples:
|
||||
- `test(schema): cover Report version literal`
|
||||
|
||||
Reference in new issue
Block a user