ddd-ts-kit 0.23.1 → 0.25.0
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 +64 -0
- package/README.fr.md +47 -9
- package/README.md +43 -8
- package/dist/check/canonical/open-directories.d.ts.map +1 -1
- package/dist/check/canonical/open-directories.js +7 -1
- package/dist/check/canonical/open-directories.js.map +1 -1
- package/dist/check/canonical/roles.d.ts.map +1 -1
- package/dist/check/canonical/roles.js +1 -0
- package/dist/check/canonical/roles.js.map +1 -1
- package/dist/check/canonical/stray-entry.d.ts +8 -0
- package/dist/check/canonical/stray-entry.d.ts.map +1 -0
- package/dist/check/canonical/stray-entry.js +75 -0
- package/dist/check/canonical/stray-entry.js.map +1 -0
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +4 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/catalogue/default-severities.d.ts.map +1 -1
- package/dist/check/catalogue/default-severities.js +2 -0
- package/dist/check/catalogue/default-severities.js.map +1 -1
- package/dist/check/explain/persistence-docs.js +1 -1
- package/dist/check/explain/persistence-docs.js.map +1 -1
- package/dist/check/explain/tree-docs.d.ts.map +1 -1
- package/dist/check/explain/tree-docs.js +11 -0
- package/dist/check/explain/tree-docs.js.map +1 -1
- package/dist/check/fixtures/test-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/test-fixtures.js +25 -0
- package/dist/check/fixtures/test-fixtures.js.map +1 -1
- package/dist/check/fixtures/tree-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tree-fixtures.js +24 -0
- package/dist/check/fixtures/tree-fixtures.js.map +1 -1
- package/dist/check/migrations/drizzle-history-findings.js +1 -1
- package/dist/check/migrations/drizzle-history-findings.js.map +1 -1
- package/dist/check/rules/test-helper-placed.d.ts +3 -0
- package/dist/check/rules/test-helper-placed.d.ts.map +1 -0
- package/dist/check/rules/test-helper-placed.js +41 -0
- package/dist/check/rules/test-helper-placed.js.map +1 -0
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +4 -68
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/check/rules/tree-documented-paths.d.ts +3 -0
- package/dist/check/rules/tree-documented-paths.d.ts.map +1 -0
- package/dist/check/rules/tree-documented-paths.js +54 -0
- package/dist/check/rules/tree-documented-paths.js.map +1 -0
- package/dist/commands/drizzle-generate.d.ts +6 -1
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +39 -6
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/format-context.d.ts.map +1 -1
- package/dist/commands/format-context.js +5 -1
- package/dist/commands/format-context.js.map +1 -1
- package/dist/commands/generate.js +9 -2
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/plan-waves.d.ts +9 -0
- package/dist/commands/plan-waves.d.ts.map +1 -0
- package/dist/commands/plan-waves.js +36 -0
- package/dist/commands/plan-waves.js.map +1 -0
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +4 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/depcruise/hygiene-rules.js +2 -1
- package/dist/depcruise/hygiene-rules.js.map +1 -1
- package/dist/docs/context-facts.d.ts +2 -0
- package/dist/docs/context-facts.d.ts.map +1 -1
- package/dist/docs/read-context.js +1 -0
- package/dist/docs/read-context.js.map +1 -1
- package/dist/generate/context-imports.d.ts +4 -0
- package/dist/generate/context-imports.d.ts.map +1 -0
- package/dist/generate/context-imports.js +15 -0
- package/dist/generate/context-imports.js.map +1 -0
- package/dist/generate/kind.d.ts +2 -0
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts +3 -0
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -0
- package/dist/generate/kinds/test-world-kind.js +33 -0
- package/dist/generate/kinds/test-world-kind.js.map +1 -0
- package/dist/generate/kinds/world/context-fakes.d.ts +27 -0
- package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -0
- package/dist/generate/kinds/world/context-fakes.js +61 -0
- package/dist/generate/kinds/world/context-fakes.js.map +1 -0
- package/dist/generate/kinds/world/declared-ports.d.ts +12 -0
- package/dist/generate/kinds/world/declared-ports.d.ts.map +1 -0
- package/dist/generate/kinds/world/declared-ports.js +20 -0
- package/dist/generate/kinds/world/declared-ports.js.map +1 -0
- package/dist/generate/kinds/world/fake-class.d.ts +8 -0
- package/dist/generate/kinds/world/fake-class.d.ts.map +1 -0
- package/dist/generate/kinds/world/fake-class.js +30 -0
- package/dist/generate/kinds/world/fake-class.js.map +1 -0
- package/dist/generate/kinds/world/ports-in-use.d.ts +10 -0
- package/dist/generate/kinds/world/ports-in-use.d.ts.map +1 -0
- package/dist/generate/kinds/world/ports-in-use.js +18 -0
- package/dist/generate/kinds/world/ports-in-use.js.map +1 -0
- package/dist/generate/kinds/world/world-vars.d.ts +10 -0
- package/dist/generate/kinds/world/world-vars.d.ts.map +1 -0
- package/dist/generate/kinds/world/world-vars.js +55 -0
- package/dist/generate/kinds/world/world-vars.js.map +1 -0
- package/dist/generate/kinds.d.ts.map +1 -1
- package/dist/generate/kinds.js +2 -0
- package/dist/generate/kinds.js.map +1 -1
- package/dist/generate/spec-vars.d.ts.map +1 -1
- package/dist/generate/spec-vars.js +1 -12
- package/dist/generate/spec-vars.js.map +1 -1
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +19 -3
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +2 -0
- package/dist/help/usage.js.map +1 -1
- package/dist/init/files/persistence-files.d.ts.map +1 -1
- package/dist/init/files/persistence-files.js +7 -1
- package/dist/init/files/persistence-files.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/migration/branch-migration.d.ts +9 -0
- package/dist/migration/branch-migration.d.ts.map +1 -0
- package/dist/migration/branch-migration.js +2 -0
- package/dist/migration/branch-migration.js.map +1 -0
- package/dist/migration/branch-migrations.d.ts +16 -0
- package/dist/migration/branch-migrations.d.ts.map +1 -0
- package/dist/migration/branch-migrations.js +48 -0
- package/dist/migration/branch-migrations.js.map +1 -0
- package/dist/migration/delete-branch-migrations.d.ts +9 -0
- package/dist/migration/delete-branch-migrations.d.ts.map +1 -0
- package/dist/migration/delete-branch-migrations.js +23 -0
- package/dist/migration/delete-branch-migrations.js.map +1 -0
- package/dist/migration/drizzle-run.d.ts +7 -0
- package/dist/migration/drizzle-run.d.ts.map +1 -0
- package/dist/migration/drizzle-run.js +2 -0
- package/dist/migration/drizzle-run.js.map +1 -0
- package/dist/migration/drizzle-silent-failures.js +1 -1
- package/dist/migration/drizzle-silent-failures.js.map +1 -1
- package/dist/migration/find-project-formatter.d.ts +8 -0
- package/dist/migration/find-project-formatter.d.ts.map +1 -0
- package/dist/migration/find-project-formatter.js +52 -0
- package/dist/migration/find-project-formatter.js.map +1 -0
- package/dist/migration/format-written-files.d.ts +9 -0
- package/dist/migration/format-written-files.d.ts.map +1 -0
- package/dist/migration/format-written-files.js +32 -0
- package/dist/migration/format-written-files.js.map +1 -0
- package/dist/migration/generate-and-read.d.ts +6 -0
- package/dist/migration/generate-and-read.d.ts.map +1 -0
- package/dist/migration/generate-and-read.js +14 -0
- package/dist/migration/generate-and-read.js.map +1 -0
- package/dist/migration/index.d.ts +4 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/known-primary-keys.d.ts +3 -0
- package/dist/migration/known-primary-keys.d.ts.map +1 -0
- package/dist/migration/known-primary-keys.js +2 -0
- package/dist/migration/known-primary-keys.js.map +1 -0
- package/dist/migration/migration-files.d.ts +7 -0
- package/dist/migration/migration-files.d.ts.map +1 -0
- package/dist/migration/migration-files.js +29 -0
- package/dist/migration/migration-files.js.map +1 -0
- package/dist/migration/plan-replay.d.ts +9 -0
- package/dist/migration/plan-replay.d.ts.map +1 -0
- package/dist/migration/plan-replay.js +68 -0
- package/dist/migration/plan-replay.js.map +1 -0
- package/dist/migration/previous-primary-keys.d.ts +9 -0
- package/dist/migration/previous-primary-keys.d.ts.map +1 -0
- package/dist/migration/previous-primary-keys.js +55 -0
- package/dist/migration/previous-primary-keys.js.map +1 -0
- package/dist/migration/primary-key-order-finding.d.ts +12 -0
- package/dist/migration/primary-key-order-finding.d.ts.map +1 -0
- package/dist/migration/primary-key-order-finding.js +2 -0
- package/dist/migration/primary-key-order-finding.js.map +1 -0
- package/dist/migration/primary-key-order-findings.d.ts +12 -0
- package/dist/migration/primary-key-order-findings.d.ts.map +1 -0
- package/dist/migration/primary-key-order-findings.js +55 -0
- package/dist/migration/primary-key-order-findings.js.map +1 -0
- package/dist/migration/project-formatter.d.ts +9 -0
- package/dist/migration/project-formatter.d.ts.map +1 -0
- package/dist/migration/project-formatter.js +2 -0
- package/dist/migration/project-formatter.js.map +1 -0
- package/dist/migration/replay-drizzle-migrations.d.ts +15 -0
- package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -0
- package/dist/migration/replay-drizzle-migrations.js +63 -0
- package/dist/migration/replay-drizzle-migrations.js.map +1 -0
- package/dist/migration/replay-plan.d.ts +11 -0
- package/dist/migration/replay-plan.d.ts.map +1 -0
- package/dist/migration/replay-plan.js +2 -0
- package/dist/migration/replay-plan.js.map +1 -0
- package/dist/migration/replayed-name.d.ts +7 -0
- package/dist/migration/replayed-name.d.ts.map +1 -0
- package/dist/migration/replayed-name.js +12 -0
- package/dist/migration/replayed-name.js.map +1 -0
- package/dist/migration/sql-statement.d.ts +6 -0
- package/dist/migration/sql-statement.d.ts.map +1 -0
- package/dist/migration/sql-statement.js +2 -0
- package/dist/migration/sql-statement.js.map +1 -0
- package/dist/migration/sql-statements.d.ts +4 -0
- package/dist/migration/sql-statements.d.ts.map +1 -0
- package/dist/migration/sql-statements.js +36 -0
- package/dist/migration/sql-statements.js.map +1 -0
- package/dist/migration/table-change.d.ts +12 -0
- package/dist/migration/table-change.d.ts.map +1 -0
- package/dist/migration/table-change.js +2 -0
- package/dist/migration/table-change.js.map +1 -0
- package/dist/migration/table-changes.d.ts +9 -0
- package/dist/migration/table-changes.d.ts.map +1 -0
- package/dist/migration/table-changes.js +55 -0
- package/dist/migration/table-changes.js.map +1 -0
- package/dist/migration/tidy-written-migration.d.ts +5 -0
- package/dist/migration/tidy-written-migration.d.ts.map +1 -0
- package/dist/migration/tidy-written-migration.js +8 -0
- package/dist/migration/tidy-written-migration.js.map +1 -0
- package/dist/migration/wait-for-next-second.d.ts +6 -0
- package/dist/migration/wait-for-next-second.d.ts.map +1 -0
- package/dist/migration/wait-for-next-second.js +11 -0
- package/dist/migration/wait-for-next-second.js.map +1 -0
- package/dist/migration/warn-primary-key-order.d.ts +5 -0
- package/dist/migration/warn-primary-key-order.d.ts.map +1 -0
- package/dist/migration/warn-primary-key-order.js +16 -0
- package/dist/migration/warn-primary-key-order.js.map +1 -0
- package/dist/migration/written-migration.d.ts +9 -0
- package/dist/migration/written-migration.d.ts.map +1 -0
- package/dist/migration/written-migration.js +2 -0
- package/dist/migration/written-migration.js.map +1 -0
- package/dist/migration/written-paths.d.ts +3 -0
- package/dist/migration/written-paths.d.ts.map +1 -0
- package/dist/migration/written-paths.js +5 -0
- package/dist/migration/written-paths.js.map +1 -0
- package/dist/plan/aggregates-of.d.ts +6 -0
- package/dist/plan/aggregates-of.d.ts.map +1 -0
- package/dist/plan/aggregates-of.js +13 -0
- package/dist/plan/aggregates-of.js.map +1 -0
- package/dist/plan/batched-waves.d.ts +18 -0
- package/dist/plan/batched-waves.d.ts.map +1 -0
- package/dist/plan/batched-waves.js +73 -0
- package/dist/plan/batched-waves.js.map +1 -0
- package/dist/plan/cycles-of.d.ts +8 -0
- package/dist/plan/cycles-of.d.ts.map +1 -0
- package/dist/plan/cycles-of.js +30 -0
- package/dist/plan/cycles-of.js.map +1 -0
- package/dist/plan/format-plan.d.ts +4 -0
- package/dist/plan/format-plan.d.ts.map +1 -0
- package/dist/plan/format-plan.js +53 -0
- package/dist/plan/format-plan.js.map +1 -0
- package/dist/plan/merge-order.d.ts +8 -0
- package/dist/plan/merge-order.d.ts.map +1 -0
- package/dist/plan/merge-order.js +32 -0
- package/dist/plan/merge-order.js.map +1 -0
- package/dist/plan/plan-problems.d.ts +8 -0
- package/dist/plan/plan-problems.d.ts.map +1 -0
- package/dist/plan/plan-problems.js +57 -0
- package/dist/plan/plan-problems.js.map +1 -0
- package/dist/plan/plan-waves.d.ts +16 -0
- package/dist/plan/plan-waves.d.ts.map +1 -0
- package/dist/plan/plan-waves.js +23 -0
- package/dist/plan/plan-waves.js.map +1 -0
- package/dist/plan/rows-to-plan.d.ts +7 -0
- package/dist/plan/rows-to-plan.d.ts.map +1 -0
- package/dist/plan/rows-to-plan.js +19 -0
- package/dist/plan/rows-to-plan.js.map +1 -0
- package/dist/plan/wave-numbers.d.ts +8 -0
- package/dist/plan/wave-numbers.d.ts.map +1 -0
- package/dist/plan/wave-numbers.js +27 -0
- package/dist/plan/wave-numbers.js.map +1 -0
- package/dist/plan/wave-plan.d.ts +48 -0
- package/dist/plan/wave-plan.d.ts.map +1 -0
- package/dist/plan/wave-plan.js +2 -0
- package/dist/plan/wave-plan.js.map +1 -0
- package/dist/progress/format-progress.d.ts.map +1 -1
- package/dist/progress/format-progress.js +16 -1
- package/dist/progress/format-progress.js.map +1 -1
- package/dist/progress/progress.d.ts +11 -1
- package/dist/progress/progress.d.ts.map +1 -1
- package/dist/progress/read-progress.d.ts +6 -2
- package/dist/progress/read-progress.d.ts.map +1 -1
- package/dist/progress/read-progress.js +10 -5
- package/dist/progress/read-progress.js.map +1 -1
- package/dist/progress/status-row-of.d.ts +16 -0
- package/dist/progress/status-row-of.d.ts.map +1 -0
- package/dist/progress/status-row-of.js +23 -0
- package/dist/progress/status-row-of.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/rows-on-branches.d.ts +8 -0
- package/dist/worker/rows-on-branches.d.ts.map +1 -0
- package/dist/worker/rows-on-branches.js +9 -0
- package/dist/worker/rows-on-branches.js.map +1 -0
- package/package.json +2 -2
- package/templates/e2e/e2e.spec.ts.tpl +2 -2
- package/templates/init/AGENTS.md.tpl +1 -1
- package/templates/init/e2e/start-application.database.ts.tpl +30 -1
- package/templates/init/e2e/start-application.memory.ts.tpl +30 -1
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +4 -0
- package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +18 -1
- package/templates/init/platform/database/open-test-database.knex.ts.tpl +18 -1
- package/templates/init/platform/database/open-test-database.prisma.ts.tpl +18 -1
- package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +18 -1
- package/templates/init/platform/database/test-database-template.ts.tpl +23 -0
- package/templates/init/rules/tests.md.tpl +3 -2
- package/templates/pipeline/knip.json.tpl +2 -0
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/pipeline/vitest.config.ts.tpl +6 -0
- package/templates/presets/identity/context/test/unit/accept-invitation.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/account-deactivated.integration-handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/change-member-role.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/deactivate-account.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/decline-invitation.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/grant-delegation.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/invite-member.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/member-joined.integration-handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/member-removed.integration-handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/open-organisation.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/organisation-opened.integration-handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/provision-account.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/remove-member.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/revoke-delegation.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/revoke-invitation.handler.spec.ts.tpl +1 -1
- package/templates/presets/identity/context/test/unit/search-members.handler.spec.ts.tpl +1 -1
- package/templates/test-world/world.buses.ts.tpl +33 -0
- package/templates/test-world/world.tsyringe.ts.tpl +53 -0
- /package/templates/presets/identity/context/test/{unit/identity-application.ts.tpl → worlds/__context__.world.ts.tpl} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,70 @@ What each version changes for someone who uses the kit. The packages of `package
|
|
|
4
4
|
together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
|
|
5
5
|
list the pull requests behind it.
|
|
6
6
|
|
|
7
|
+
## 0.25.0
|
|
8
|
+
|
|
9
|
+
**`generate test-world` gives the shared arrangement of a context its place, `test/worlds/`.**
|
|
10
|
+
`npx ddd-ts-kit generate test-world <context> [Name]` writes `test/worlds/<name>.world.ts`, the
|
|
11
|
+
name defaulting to the context: `a<Name>World({ now, idPrefix, given })` reads the fakes of
|
|
12
|
+
`test/fakes/` and the port each one implements, builds them, hands them to `given` so that a spec
|
|
13
|
+
stores what it starts from, then to the test application (`modules` adds the authorization of the
|
|
14
|
+
spec) or, wired by hand, to the buses of `createTestBuses`, each repository wrapped by
|
|
15
|
+
`dispatching`; it returns every fake under the name of its port. A fake that needs constructor
|
|
16
|
+
arguments, or, under a container, the fake of a port nothing binds or depends on yet, is left out
|
|
17
|
+
with a note. `test/worlds/` (`*.world.ts`) joins the canonical tree; `list` and `describe` name
|
|
18
|
+
the worlds of each context, and the import graph (rewritten by the next `generate`) and the knip
|
|
19
|
+
config of a new project keep a world no spec imports yet, as they keep a fake.
|
|
20
|
+
The identity preset writes its shared arrangement in `test/worlds/<context>.world.ts`, and three
|
|
21
|
+
handler specs of the example application use the world of `scheduling`.
|
|
22
|
+
|
|
23
|
+
**`test/helper-placed` (a warning).** A `.ts` file of a context's `test/unit/` or
|
|
24
|
+
`test/integration/` that is not a spec (`*.spec.ts`, `*.test.ts`) is reported: an arrangement
|
|
25
|
+
several specs share goes to `test/worlds/`, test data to `test/builders/`, an in-memory port to
|
|
26
|
+
`test/fakes/`.
|
|
27
|
+
|
|
28
|
+
To move: `npx ddd-ts-kit check --rule test/helper-placed` lists the helpers written among the
|
|
29
|
+
specs; move each to its place, or replace a shared arrange function by the world `generate
|
|
30
|
+
test-world` writes. A project created by the identity preset moves
|
|
31
|
+
`test/unit/identity-application.ts` to `test/worlds/<context>.world.ts` and updates the imports of
|
|
32
|
+
its specs.
|
|
33
|
+
|
|
34
|
+
## 0.24.0
|
|
35
|
+
|
|
36
|
+
**`plan-waves` orders the work, and `status` says when a row can start.** `npx ddd-ts-kit
|
|
37
|
+
plan-waves [<context>]` reads the rows of `slices.md` not done and gives waves (the rows whose
|
|
38
|
+
dependencies are done, then the rows waiting only for earlier waves), batches of one or two rows
|
|
39
|
+
per owner, the batches of one context and one wave that touch the same aggregate, the
|
|
40
|
+
`worker-scope` command that briefs each batch, and a merge order. A cycle, an unknown dependency,
|
|
41
|
+
a row without owner or an id used twice is reported alone. `status` gives each row not done its
|
|
42
|
+
readiness: on the trunk, on a branch (its dependencies are rows of a worker whose worktree has
|
|
43
|
+
commits), or waiting, with what it waits for.
|
|
44
|
+
|
|
45
|
+
**`drizzle-generate` formats, warns and replays.** After a migration, it formats the files it wrote
|
|
46
|
+
under `meta/` with the formatter the `format` script names (Biome or Prettier), and warns when the
|
|
47
|
+
SQL changes a primary key in an order PostgreSQL refuses. `npx ddd-ts-kit drizzle-generate --replay
|
|
48
|
+
[--base <ref>]`, run on a branch after merging the trunk, deletes the branch's migrations the base
|
|
49
|
+
does not have and generates them again on top of the trunk's last snapshot, with their names; the
|
|
50
|
+
`persistence` and `parallel-work` skills use it at the merge. It is Drizzle's only.
|
|
51
|
+
|
|
52
|
+
**Each spec opens a copy of a started test database.** With Vitest on an ORM, a global setup starts
|
|
53
|
+
PGlite once and saves it; every integration spec opens a copy and creates its tables there, so the
|
|
54
|
+
slow start is paid once per run and the code that creates the tables still counts in the coverage
|
|
55
|
+
of each context. `settled()` of `@ddd-ts-kit/testing/e2e`,
|
|
56
|
+
and `application.settled()` of the generated end-to-end support, wait until the outbox has nothing
|
|
57
|
+
pending instead of a fixed delay, and fail with what is still pending.
|
|
58
|
+
|
|
59
|
+
**`tree/documented-paths` (a warning).** A path of a context cited as code in a Markdown file of
|
|
60
|
+
`docs/architecture/` is judged as `tree/closed` judges a file: a plan, a design note or a review
|
|
61
|
+
that names a directory the canonical tree refuses describes a design the code no longer has. A path
|
|
62
|
+
that does not exist yet is not reported.
|
|
63
|
+
|
|
64
|
+
To move: `npx ddd-ts-kit check` reports, as a warning, the paths of `docs/architecture/` the tree
|
|
65
|
+
refuses: write the place the code has now. To take the test database template in an existing
|
|
66
|
+
project, regenerate `vitest.config.ts`, `vitest.e2e.config.ts`,
|
|
67
|
+
`src/platform/database/open-test-database.ts` and `test/e2e/support/start-application.ts`
|
|
68
|
+
(`npx ddd-ts-kit init --force`, which rewrites every file of the platform); plain `npx ddd-ts-kit
|
|
69
|
+
init` adds the setup file and the rest keeps working as before.
|
|
70
|
+
|
|
7
71
|
## 0.23.1
|
|
8
72
|
|
|
9
73
|
**`verify-slice` proposes to stage the paths of the slice only.** In 0.23.0 it listed every path
|
package/README.fr.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[English](README.md) · **Français**
|
|
2
|
-
<!-- translation-of: README.md sha256:
|
|
2
|
+
<!-- translation-of: README.md sha256:a26ab63fbcfd5e7c -->
|
|
3
3
|
|
|
4
4
|
# ddd-ts-kit
|
|
5
5
|
|
|
@@ -507,11 +507,11 @@ choix sont enregistrés sous `stack` dans la configuration, `docsUi`, `ci` et `l
|
|
|
507
507
|
| `--authn keycloak` | un service compose `keycloak` (Keycloak 26.8.0, `start-dev --import-realm`, profil `identity`) et `docker/keycloak/<project>-realm.json` : le client de l'API, un client public `<project>-local` avec l'octroi direct, ses *mappers* d'audience et de `tenant_id`, le rôle de realm `admin`, et les utilisateurs de démonstration `demo-admin` et `demo-user`, pour le développement local seulement |
|
|
508
508
|
| `--storage local\|s3` | enregistré comme `stack.storage` : où vit le contenu des fichiers, jamais dans la base de données. `src/platform/config/read-files.ts` et `src/platform/files/open-files.ts`, un par choix : `local`, un répertoire en développement (`FILES_DIRECTORY`, `.data/files`) et les liens signés servis par l'application sous `/files` (`FILES_PUBLIC_URL` et `FILES_SIGNING_SECRET` requises en production) ; `s3`, un bucket de n'importe quel fournisseur du protocole S3 au moyen de `@ddd-ts-kit/s3` (les variables `S3_*`, MinIO dans la stack compose) ; la mémoire du processus dans les tests et les outils, dans les deux cas. Avec `--di tsyringe` : `files/bind-files.ts`, `files/files.module.ts` et `files/staging-uploads.ts` ; en câblage manuel, `files/create-files.ts` ; avec une *stack* HTTP, `files/file-routes.ts`. Ils lient `FileStorage`, `FileKeys`, `FileScanner` et `FileStaging`, enregistrent la purge horaire des fichiers en attente et mettent en attente le fichier que porte une commande avant sa transaction ; `generate file-upload` en a besoin. `--storage none` n'écrit rien de tout cela ([Stockage de fichiers](../../docs/concepts/file-storage.fr.md)) |
|
|
509
509
|
| `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, et pour `--broker` `create-event-provider.ts` : `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, avec `aggregate-key-of.ts` pour l'ordre par agrégat), `NatsEventBus` (`NATS_URL`) ou `RedisStreamsEventBus` de `@ddd-ts-kit/redis/event-bus` (`REDIS_URL` : Redis, Dragonfly ou Valkey), chacun avec un abonné par contexte consommateur (`forConsumer`), `assertTopology` au démarrage, son adresse validée et un service compose avec un contrôle de santé ; ou `custom-event-bus.ts` avec sa *spec* `eventBusContract`. `start-outbox-relay.ts` avec l'outbox. `--broker redis` avec `--cache redis` fait un seul serveur et un seul service compose, `cache` ; seul, le service s'appelle `streams` |
|
|
510
|
-
| `src/platform/database/` | `persistence.ts` (`interface Persistence` : unité de travail, magasins de l'outbox et des événements traités du *package* de l'ORM, la poignée de stockage), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, la connexion (`connect-to-database.ts`, `create-client.ts` ou `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL dans le processus, ou le serveur nommé par une URL). La classe de stockage qu'un adaptateur de *repository* nomme dans sa liste de dépendances : `database.ts` avec drizzle et prisma (`abstract class Database extends` le type de contexte du *package* de l'ORM), `KnexContext` de `@ddd-ts-kit/knex`, `TypeOrmContext` de `@ddd-ts-kit/typeorm` |
|
|
510
|
+
| `src/platform/database/` | `persistence.ts` (`interface Persistence` : unité de travail, magasins de l'outbox et des événements traités du *package* de l'ORM, la poignée de stockage), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, la connexion (`connect-to-database.ts`, `create-client.ts` ou `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL dans le processus, ou le serveur nommé par une URL ; avec Vitest chaque *spec* ouvre une copie du cluster que `test/support/test-database-template.ts`, la mise en place globale de l'exécution, initialise une fois, et y crée ses tables). La classe de stockage qu'un adaptateur de *repository* nomme dans sa liste de dépendances : `database.ts` avec drizzle et prisma (`abstract class Database extends` le type de contexte du *package* de l'ORM), `KnexContext` de `@ddd-ts-kit/knex`, `TypeOrmContext` de `@ddd-ts-kit/typeorm` |
|
|
511
511
|
| outillage des migrations | `drizzle.config.ts`, `knexfile.js` et `migrations/00000000000000_initial.js`, `prisma/schema.prisma` et `prisma.config.ts`, ou `data-source.ts` |
|
|
512
512
|
| `scripts/openapi.ts`, `scripts/events.ts` | écrivent `openapi/openapi.yaml` (un fichier par document de `openapi.documents`), `docs/integration/asyncapi.yaml` et `docs/integration/event-catalog.md`, en JSON sous `openapi.format: json` ; `--check` échoue sur une différence |
|
|
513
513
|
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | la base de données avec un contrôle de santé et un volume nommé, `jaegertracing/jaeger:2.22.0` derrière le profil `observability` (son interface et son port OTLP liés à 127.0.0.1), les ports depuis `.env` ; une image multi-étapes, sans root, avec les seules dépendances de production |
|
|
514
|
-
| `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (l'application entière sur un port libre, sur une base de données dans le processus sauf si `DATABASE_URL` est définie, aucun *job* lancé par le temps), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)` : une trace sans les appels qu'un adaptateur fait sur lui-même, la forme que vérifie `expectSpanTree`) |
|
|
514
|
+
| `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (l'application entière sur un port libre, sur une base de données dans le processus sauf si `DATABASE_URL` est définie, aucun *job* lancé par le temps ; `settled()` se résout quand l'outbox a relayé ce que les requêtes HTTP ont enregistré), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)` : une trace sans les appels qu'un adaptateur fait sur lui-même, la forme que vérifie `expectSpanTree`) |
|
|
515
515
|
| `docs/context-map.md`, `docs/integration/README.md` | voir `docs` |
|
|
516
516
|
| `test/architecture/extractable.spec.ts` | écrit avec le premier contexte : démarre chaque contexte seul sur le kernel et la plateforme, ses *jobs* compris |
|
|
517
517
|
| `eslint.config.mjs` | le preset `dddTsKit` de `@ddd-ts-kit/eslint-plugin`, lint typé sur le tsconfig du projet |
|
|
@@ -633,6 +633,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
633
633
|
| `context` | `<name> --classification <c> [--purpose "<two sentences>"] [--term ...]... [--upstream <ctx>[:relationship]]... [--preset identity]` | `CONTEXT.md` avec son glossaire, `published-language/index.ts`, l'entrée de configuration, l'enregistrement dans `platform/compose-application.ts` et dans `test/architecture/extractable.spec.ts` ; sur tsyringe, avec HTTP, `presentation/http/<name>.routes.ts` (une fonction des deux bus, dans les deux styles) ; déclaré : le barrel `<name>.declarations.ts` ; explicite et câblage manuel : `<name>.module.ts`. `application/authorization/<name>.permissions.ts` naît avec la première permission, ou tout de suite quand `platform/auth/permissions.ts` liste les ensembles de permissions (rebac, custom). Avec `--preset`, le contexte est ensuite écrit en entier depuis ce *preset*, sa classification et son objet étant ceux du *preset* sauf si les options disent autre chose ([Presets](#presets)) |
|
|
634
634
|
| `aggregate` | `<context> <Name> [--event-sourced]` | agrégat, *builder*, *spec* sur le modèle étant donné / quand / alors ; avec `--event-sourced`, un agrégat sur `EventSourcedAggregate` dont l'état est le rejeu de ses événements, né avec son événement du domaine `Created`, le codec de ses événements stockés dans `infrastructure/persistence/<name>-events.mapper.ts`, un *builder* qui rejoue un historique et une *spec* à partir d'événements donnés, et une note qui nomme le `EventSourcedRepository` auquel délègue son adaptateur de *repository* |
|
|
635
635
|
| `builder` | `<context> <Aggregate>` | `test/builders/<name>.builder.ts`, une classe qui étend `Builder` |
|
|
636
|
+
| `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (le nom est par défaut celui du contexte) : `a<Name>World({ now, idPrefix, given })`, la mise en place que partagent plusieurs *specs* du contexte. Il lit les *fakes* de `test/fakes/` et le port que chacun implémente, les construit, les passe à `given` pour que la *spec* enregistre ce dont elle part, puis à l'application de test (avec `modules`, l'autorisation de la *spec*) ou, câblé à la main, enveloppe les *repositories* des bus de `createTestBuses` par `dispatching` ; il rend chaque *fake* sous le nom de son port. Un *fake* qui attend des arguments de constructeur, ou, avec un conteneur, celui d'un port que rien ne lie ni n'utilise encore, est laissé de côté avec une note |
|
|
636
637
|
| `entity` | `<context> <Name>` | entité, *spec* |
|
|
637
638
|
| `value-object` (`vo`) | `<context> <Name>` | objet-valeur, *spec* |
|
|
638
639
|
| `vocabulary` | `<context> <Name> --value <value> [--value <value>]...` | `domain/vocabularies/<name>.vocabulary.ts` : un objet `as const` des valeurs, indexé par chaque valeur en PascalCase, et le type union du même nom ; relancé, ajoute les valeurs que le fichier ne contient pas |
|
|
@@ -786,7 +787,8 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
786
787
|
`createTestApplication` de `@ddd-ts-kit/di` et observe les faits annoncés avec la sauvegarde
|
|
787
788
|
par `application.domainEvents.on('<name>', ...)` ; en câblage manuel, elle passe par
|
|
788
789
|
`createTestBuses()` de `@ddd-ts-kit/testing`, dont `dispatching(fake)` fait que la sauvegarde
|
|
789
|
-
d'un *fake* annonce ses événements à `domainEvents`.
|
|
790
|
+
d'un *fake* annonce ses événements à `domainEvents`. La mise en place que partagent plusieurs
|
|
791
|
+
*specs* d'un contexte se génère une fois, `generate test-world`, dans `test/worlds/`.
|
|
790
792
|
- `--json` affiche `{ dryRun, created, updated, skipped, next, todos, notes }`. `next` liste les
|
|
791
793
|
endroits `TODO(domain)` en `file:line`, le glossaire d'abord, puis les lignes qu'une commande a
|
|
792
794
|
écrites pour que l'équipe les vérifie (l'autorisation d'un *job*) ; `todos` ajoute leur texte.
|
|
@@ -1024,7 +1026,7 @@ ddd-ts-kit list [--context <name>]
|
|
|
1024
1026
|
`--context` restreint la réponse à un contexte. Les contextes avec leur classification, la
|
|
1025
1027
|
taille de leur glossaire, leurs amonts, agrégats, commandes, requêtes, événements du domaine,
|
|
1026
1028
|
événements publiés, gestionnaires d'événements d'intégration, *jobs* planifiés (nom, planning, la
|
|
1027
|
-
commande que chacun envoie ; `jobs` en `--json`), *builders*, permissions, politiques, *gateways*
|
|
1029
|
+
commande que chacun envoie ; `jobs` en `--json`), *builders*, mondes, permissions, politiques, *gateways*
|
|
1028
1030
|
et s'ils sont déployables seuls, puis les *specs* de bout en bout. Dans le style déclaré, les cas
|
|
1029
1031
|
d'usage, les gestionnaires, les politiques, les *gateways* et les adaptateurs sont lus dans les
|
|
1030
1032
|
décorateurs : une commande ou une requête montre ce qu'elle exige (ou `public`), un gestionnaire
|
|
@@ -1074,10 +1076,16 @@ ddd-ts-kit todo [<context>]
|
|
|
1074
1076
|
`status` affiche la ligne `Next:` de `docs/architecture/plan.md`, les lignes de
|
|
1075
1077
|
`docs/architecture/slices.md` par statut et par responsable, et par contexte les `TODO(domain)`,
|
|
1076
1078
|
`TODO(platform)` et `it.todo` restants, puis ceux hors des contextes. Un fichier manquant n'est
|
|
1077
|
-
pas une erreur.
|
|
1078
|
-
quand
|
|
1079
|
-
|
|
1080
|
-
|
|
1079
|
+
pas une erreur. Chaque ligne qui n'est pas faite dit si elle peut commencer : prête sur le tronc
|
|
1080
|
+
quand toutes ses dépendances sont faites, prête sur une branche quand chaque dépendance non faite
|
|
1081
|
+
est une ligne confiée à un *worker* dont le *worktree* a des *commits* d'avance sur sa base (les
|
|
1082
|
+
`rows` de son `.ddd-ts-kit/worker.json`, tels que `status --workers` les lit), et en attente
|
|
1083
|
+
sinon, avec les identifiants qu'elle attend. `--json` affiche `{ next, slices, remaining }` :
|
|
1084
|
+
`next` et `slices` valent `null` quand leur fichier manque, `slices` contient
|
|
1085
|
+
`{ file, rows, byStatus, byOwner }`, une ligne non faite portant
|
|
1086
|
+
`ready: 'trunk' | 'branch' | 'waiting'` et `waitingFor` (ses dépendances non faites),
|
|
1087
|
+
`remaining` un `{ context, domain, platform, test }` par contexte, et un avec un `context` vide
|
|
1088
|
+
pour ce qui reste hors d'eux.
|
|
1081
1089
|
|
|
1082
1090
|
`status --workers` affiche à la place les *workers* d'une construction en parallèle : chaque
|
|
1083
1091
|
*worktree* du dépôt dont la copie du projet porte `.ddd-ts-kit/worker.json`, avec sa branche,
|
|
@@ -1094,6 +1102,35 @@ commités. `--json` affiche
|
|
|
1094
1102
|
`todo` liste ces marqueurs en `file:line` avec leur genre et leur texte, dans le projet ou dans
|
|
1095
1103
|
un contexte ; `--json` affiche `{ count, remaining: [{ kind, context, file, line, text }] }`.
|
|
1096
1104
|
|
|
1105
|
+
## plan-waves
|
|
1106
|
+
|
|
1107
|
+
```
|
|
1108
|
+
ddd-ts-kit plan-waves [<context>]
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
Ordonne les lignes de `docs/architecture/slices.md` qui ne sont pas `done`, pour une construction
|
|
1112
|
+
répartie entre des *workers*. La vague 1 porte les lignes dont toutes les dépendances sont faites ;
|
|
1113
|
+
la vague n les lignes dont les dépendances sont faites ou dans des vagues antérieures, de sorte
|
|
1114
|
+
qu'une ligne n'attend jamais une ligne de sa propre vague. Chaque vague est découpée en lots : un
|
|
1115
|
+
responsable et un contexte par lot, deux lignes au plus (ce que tient un agent), et deux lignes
|
|
1116
|
+
ensemble seulement quand leur `Start with` nomme le même agrégat. L'agrégat d'une ligne est lu dans
|
|
1117
|
+
ses commandes de générateur : `--aggregate <Name>`, `aggregate <context> <Name>` et
|
|
1118
|
+
`repository <context> <Name>`. Deux lots d'un contexte dans une vague sont dits susceptibles de
|
|
1119
|
+
toucher les mêmes fichiers quand ils nomment le même agrégat ; quand l'un d'eux n'en nomme aucun,
|
|
1120
|
+
le chevauchement est dit inconnu plutôt que deviné. Chaque lot du *worker* d'un contexte vient avec
|
|
1121
|
+
la commande qui le consigne, `npx ddd-ts-kit worker-scope <context> --base origin/main --rows <ids>`,
|
|
1122
|
+
avec ses propres `--worktree` et `--branch` quand sa vague porte un autre lot de ce contexte ; un
|
|
1123
|
+
lot du chef d'orchestre se construit sur le tronc ; une personne reçoit sa consigne à la main.
|
|
1124
|
+
Puis l'ordre des fusions : par vague, et dans une vague d'abord le lot que le plus de lignes
|
|
1125
|
+
attendent, directement ou non. Avec un contexte, seules ses lignes sont montrées ; les lignes
|
|
1126
|
+
d'autres contextes qu'elles attendent comptent dans la numérotation des vagues.
|
|
1127
|
+
|
|
1128
|
+
Un cycle dans `Depends on`, une dépendance vers un identifiant qu'aucune ligne ne porte, une ligne
|
|
1129
|
+
sans responsable et un identifiant que portent deux lignes rendent les lignes impossibles à
|
|
1130
|
+
ordonner : ils sont signalés seuls, sans vagues, et la commande sort avec 1. Un fichier sans table
|
|
1131
|
+
de tranches, ou un contexte qu'aucune ligne ne nomme, est refusé. `--json` affiche
|
|
1132
|
+
`{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, waitingFor }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder }`.
|
|
1133
|
+
|
|
1097
1134
|
## worker-scope
|
|
1098
1135
|
|
|
1099
1136
|
```
|
|
@@ -1288,6 +1325,7 @@ règle.
|
|
|
1288
1325
|
| `test/spec-required` | un agrégat, un objet-valeur, un service du domaine, un gestionnaire, un gestionnaire d'événement du domaine, un gestionnaire d'événement d'intégration ou un *job* sans *spec* (un `*.result.ts` n'en a pas besoin) |
|
|
1289
1326
|
| `test/no-mocks` | `vi.mock`, `vi.fn`, `vi.spyOn`, leurs jumeaux `jest`, ou une bibliothèque de *mocks* dans les tests d'un contexte |
|
|
1290
1327
|
| `test/builder-required` | un agrégat sans `test/builders/<name>.builder.ts` |
|
|
1328
|
+
| `test/helper-placed` | un fichier du `test/unit/` ou du `test/integration/` d'un contexte qui n'est pas une *spec* (`*.spec.ts`, `*.test.ts`) : il va dans `test/worlds/`, `test/builders/` ou `test/fakes/` |
|
|
1291
1329
|
| `events/name-format` | un nom d'événement qui n'est pas `<context>.<aggregate>.<fact>` en kebab-case avec le bon contexte |
|
|
1292
1330
|
| `events/name-declared-once` | une classe de `domain/events/` sans `static readonly eventName`, ou dont le `readonly name` écrit le nom une seconde fois au lieu de le lire |
|
|
1293
1331
|
| `events/defined-in-published-language` | `defineIntegrationEvent` hors d'un langage publié, sans charge utile, deux fois pour une même version ; un événement décrit à la main |
|
package/README.md
CHANGED
|
@@ -491,11 +491,11 @@ config, `docsUi`, `ci` and `logger` included.
|
|
|
491
491
|
| `--authn keycloak` | a compose service `keycloak` (Keycloak 26.8.0, `start-dev --import-realm`, profile `identity`) and `docker/keycloak/<project>-realm.json`: the API client, a public client `<project>-local` with the direct grant, its audience and `tenant_id` mappers, the realm role `admin`, and the demo users `demo-admin` and `demo-user`, for local development only |
|
|
492
492
|
| `--storage local\|s3` | recorded as `stack.storage`: where the content of files lives, never in the database. `src/platform/config/read-files.ts` and `src/platform/files/open-files.ts`, one per choice: `local`, a directory in development (`FILES_DIRECTORY`, `.data/files`) and the signed links answered by the application under `/files` (`FILES_PUBLIC_URL` and `FILES_SIGNING_SECRET` required in production); `s3`, a bucket of any provider of the S3 protocol through `@ddd-ts-kit/s3` (the `S3_*` variables, MinIO in the compose stack); the memory of the process in the tests and the tools, either way. With `--di tsyringe`: `files/bind-files.ts`, `files/files.module.ts` and `files/staging-uploads.ts`; with hand wiring `files/create-files.ts`; with an HTTP stack `files/file-routes.ts`. They bind `FileStorage`, `FileKeys`, `FileScanner` and `FileStaging`, register the hourly purge of staged files and stage the file a command carries before its transaction; `generate file-upload` needs them. `--storage none` writes none of this ([File storage](../../docs/concepts/file-storage.md)) |
|
|
493
493
|
| `src/platform/events/` | `event-provider.ts` (`bus`, `forConsumer(name)`, `start()`, `close()`), `in-process-events.ts`, and for `--broker` `create-event-provider.ts`: `RabbitMqEventBus` (`AMQP_URL`), `KafkaEventBus` (`KAFKA_BROKERS`, with `aggregate-key-of.ts` for per-aggregate order), `NatsEventBus` (`NATS_URL`) or `RedisStreamsEventBus` of `@ddd-ts-kit/redis/event-bus` (`REDIS_URL`: Redis, Dragonfly or Valkey), each with one subscriber per consuming context (`forConsumer`), `assertTopology` at start, its address validated and a compose service with a healthcheck; or `custom-event-bus.ts` with its `eventBusContract` spec. `start-outbox-relay.ts` with the outbox. `--broker redis` with `--cache redis` is one server and one compose service, `cache`; alone, the service is `streams` |
|
|
494
|
-
| `src/platform/database/` | `persistence.ts` (`interface Persistence`: unit of work, outbox and processed-event stores of the ORM package, the storage handle), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, the connection (`connect-to-database.ts`, `create-client.ts` or `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL in process, or the server named by a URL). The storage class a repository adapter names in its dependency list: `database.ts` with drizzle and prisma (`abstract class Database extends` the context type of the ORM package), `KnexContext` of `@ddd-ts-kit/knex`, `TypeOrmContext` of `@ddd-ts-kit/typeorm` |
|
|
494
|
+
| `src/platform/database/` | `persistence.ts` (`interface Persistence`: unit of work, outbox and processed-event stores of the ORM package, the storage handle), `open-persistence.ts`, `persistence-over.ts`, `inert-persistence.ts`, the connection (`connect-to-database.ts`, `create-client.ts` or `create-data-source.ts`), `schema.ts`, `open-test-database.ts` (PostgreSQL in process, or the server named by a URL; with Vitest each spec opens a copy of the cluster `test/support/test-database-template.ts`, the global setup of the run, initialised once, and creates its tables there). The storage class a repository adapter names in its dependency list: `database.ts` with drizzle and prisma (`abstract class Database extends` the context type of the ORM package), `KnexContext` of `@ddd-ts-kit/knex`, `TypeOrmContext` of `@ddd-ts-kit/typeorm` |
|
|
495
495
|
| migration tooling | `drizzle.config.ts`, `knexfile.js` and `migrations/00000000000000_initial.js`, `prisma/schema.prisma` and `prisma.config.ts`, or `data-source.ts` |
|
|
496
496
|
| `scripts/openapi.ts`, `scripts/events.ts` | write `openapi/openapi.yaml` (one file per document of `openapi.documents`), `docs/integration/asyncapi.yaml` and `docs/integration/event-catalog.md`, in JSON under `openapi.format: json`; `--check` fails on a difference |
|
|
497
497
|
| `docker-compose.yml`, `.env.example`, `Dockerfile`, `.dockerignore` | the database with a healthcheck and a named volume, `jaegertracing/jaeger:2.22.0` behind the `observability` profile (its UI and its OTLP port bound to 127.0.0.1), ports from `.env`; a multi-stage, non-root image with production dependencies only |
|
|
498
|
-
| `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (the whole application on a free port, on an in-process database unless `DATABASE_URL` is set, no job run by time), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)`: a trace without the calls an adapter makes on itself, the form `expectSpanTree` asserts) |
|
|
498
|
+
| `vitest.e2e.config.ts`, `test/e2e/support/` | `start-application.ts` (the whole application on a free port, on an in-process database unless `DATABASE_URL` is set, no job run by time; `settled()` resolves once the outbox has relayed what the requests stored), `create-credentials.ts`, `auth-environment.ts`, `test-environment.ts`, `story-of.ts` (`storyOf(trace)`: a trace without the calls an adapter makes on itself, the form `expectSpanTree` asserts) |
|
|
499
499
|
| `docs/context-map.md`, `docs/integration/README.md` | see `docs` |
|
|
500
500
|
| `test/architecture/extractable.spec.ts` | written with the first context: boots each context alone on the kernel and the platform, its jobs included |
|
|
501
501
|
| `eslint.config.mjs` | the `dddTsKit` preset of `@ddd-ts-kit/eslint-plugin`, typed linting on the project's tsconfig |
|
|
@@ -613,6 +613,7 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
613
613
|
| `context` | `<name> --classification <c> [--purpose "<two sentences>"] [--term ...]... [--upstream <ctx>[:relationship]]... [--preset identity]` | `CONTEXT.md` with its glossary, `published-language/index.ts`, config entry, registration in `platform/compose-application.ts` and in `test/architecture/extractable.spec.ts`; on tsyringe, with HTTP, `presentation/http/<name>.routes.ts` (a function of the two buses, in both styles); declared: the barrel `<name>.declarations.ts`; explicit and hand wiring: `<name>.module.ts`. `application/authorization/<name>.permissions.ts` is born with the first permission, or at once when `platform/auth/permissions.ts` lists the permission sets (rebac, custom). With `--preset`, the context is then written whole from that preset, its classification and purpose those of the preset unless the flags say otherwise ([Presets](#presets)) |
|
|
614
614
|
| `aggregate` | `<context> <Name> [--event-sourced]` | aggregate, builder, spec in given / when / then; with `--event-sourced`, an aggregate on `EventSourcedAggregate` whose state is the replay of its events, born with its `Created` domain event, the codec of its stored events in `infrastructure/persistence/<name>-events.mapper.ts`, a builder that replays a history and a spec given events, and a note naming the `EventSourcedRepository` its repository adapter delegates to |
|
|
615
615
|
| `builder` | `<context> <Aggregate>` | `test/builders/<name>.builder.ts`, a class extending `Builder` |
|
|
616
|
+
| `test-world` | `<context> [Name]` | `test/worlds/<name>.world.ts` (the name defaults to the context): `a<Name>World({ now, idPrefix, given })`, the arrangement several specs of the context share. It reads the fakes of `test/fakes/` and the port each one implements, builds them, hands them to `given` so that the spec stores what it starts from, then to the test application (with `modules`, the authorization of the spec) or, wired by hand, wraps the repositories of the buses of `createTestBuses` with `dispatching`; it returns every fake under the name of its port. A fake that needs constructor arguments, or, under a container, stands for a port nothing binds or depends on yet, is left out with a note |
|
|
616
617
|
| `entity` | `<context> <Name>` | entity, spec |
|
|
617
618
|
| `value-object` (`vo`) | `<context> <Name>` | value object, spec |
|
|
618
619
|
| `vocabulary` | `<context> <Name> --value <value> [--value <value>]...` | `domain/vocabularies/<name>.vocabulary.ts`: an object `as const` of the values, keyed by each value in PascalCase, and the union type of the same name; run again, adds the values the file does not hold |
|
|
@@ -751,7 +752,8 @@ Next, in this order: the language of the context first, then the business decisi
|
|
|
751
752
|
handler spec goes through `createTestApplication` of `@ddd-ts-kit/di` and observes the facts
|
|
752
753
|
announced with the save with `application.domainEvents.on('<name>', ...)`; with hand wiring it
|
|
753
754
|
goes through `createTestBuses()` of `@ddd-ts-kit/testing`, whose `dispatching(fake)` makes the
|
|
754
|
-
save of a fake announce its events to `domainEvents`.
|
|
755
|
+
save of a fake announce its events to `domainEvents`. The arrangement several specs of a
|
|
756
|
+
context share is generated once, `generate test-world`, in `test/worlds/`.
|
|
755
757
|
- `--json` prints `{ dryRun, created, updated, skipped, next, todos, notes }`. `next` lists the
|
|
756
758
|
`TODO(domain)` places as `file:line`, the glossary first, then the lines a command wrote for the
|
|
757
759
|
team to check (the grant of a job); `todos` adds their text.
|
|
@@ -976,7 +978,7 @@ ddd-ts-kit list [--context <name>]
|
|
|
976
978
|
|
|
977
979
|
`--context` restricts the answer to one context. Contexts with their classification, glossary size, upstreams, aggregates, commands, queries,
|
|
978
980
|
domain events, published events, integration event handlers, scheduled jobs (name, schedule, the
|
|
979
|
-
command each sends; `jobs` in `--json`), builders, permissions, policies, gateways and whether the
|
|
981
|
+
command each sends; `jobs` in `--json`), builders, worlds, permissions, policies, gateways and whether the
|
|
980
982
|
context is deployable alone, then the end-to-end specs. In the declared style the use cases, the
|
|
981
983
|
handlers, the policies, the gateways and the adapters are read from the decorators: a command or a
|
|
982
984
|
query shows what it requires (or `public`), a handler its consumer name and its event, a policy its
|
|
@@ -1023,10 +1025,15 @@ ddd-ts-kit todo [<context>]
|
|
|
1023
1025
|
`status` prints the `Next:` line of `docs/architecture/plan.md`, the rows of
|
|
1024
1026
|
`docs/architecture/slices.md` by status and by owner, and per context the `TODO(domain)`,
|
|
1025
1027
|
`TODO(platform)` and `it.todo` left, then those outside the contexts. A missing file is not an
|
|
1026
|
-
error.
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1028
|
+
error. Each row not done says whether it can start: ready on the trunk when every dependency is
|
|
1029
|
+
done, ready on a branch when each dependency not done is a row briefed to a worker whose worktree
|
|
1030
|
+
has commits ahead of its base (the `rows` of its `.ddd-ts-kit/worker.json`, as `status --workers`
|
|
1031
|
+
reads them), and waiting otherwise, with the ids it waits for. `--json` prints
|
|
1032
|
+
`{ next, slices, remaining }`: `next` and `slices` are `null` when their file is missing,
|
|
1033
|
+
`slices` holds `{ file, rows, byStatus, byOwner }`, a row not done carrying
|
|
1034
|
+
`ready: 'trunk' | 'branch' | 'waiting'` and `waitingFor` (its dependencies not done),
|
|
1035
|
+
`remaining` one `{ context, domain, platform, test }` per context, and one with an empty
|
|
1036
|
+
`context` for what is left outside them.
|
|
1030
1037
|
|
|
1031
1038
|
`status --workers` prints the workers of a parallel build instead: each worktree of the
|
|
1032
1039
|
repository whose copy of the project holds `.ddd-ts-kit/worker.json`, with its branch, its
|
|
@@ -1042,6 +1049,33 @@ base and its commits ahead, and its files are the uncommitted ones. `--json` pri
|
|
|
1042
1049
|
`todo` lists those markers as `file:line` with their kind and their text, in the project or in one
|
|
1043
1050
|
context; `--json` prints `{ count, remaining: [{ kind, context, file, line, text }] }`.
|
|
1044
1051
|
|
|
1052
|
+
## plan-waves
|
|
1053
|
+
|
|
1054
|
+
```
|
|
1055
|
+
ddd-ts-kit plan-waves [<context>]
|
|
1056
|
+
```
|
|
1057
|
+
|
|
1058
|
+
Orders the rows of `docs/architecture/slices.md` that are not `done`, for a build split between
|
|
1059
|
+
workers. Wave 1 holds the rows whose dependencies are all done; wave n the rows whose dependencies
|
|
1060
|
+
are done or in earlier waves, so that a row never waits for a row of its own wave. Each wave is cut
|
|
1061
|
+
into batches: one owner and one context per batch, two rows at most (what an agent holds), and two
|
|
1062
|
+
rows together only when their `Start with` names the same aggregate. The aggregate of a row is read
|
|
1063
|
+
from its generator commands: `--aggregate <Name>`, `aggregate <context> <Name>` and
|
|
1064
|
+
`repository <context> <Name>`. Two batches of one context in one wave are said likely to touch the
|
|
1065
|
+
same files when they name the same aggregate; when one of them names none, the overlap is said to
|
|
1066
|
+
be unknown rather than guessed. Each batch of a context's worker comes with the command that briefs
|
|
1067
|
+
it, `npx ddd-ts-kit worker-scope <context> --base origin/main --rows <ids>`, with its own
|
|
1068
|
+
`--worktree` and `--branch` when its wave holds another batch of that context; a batch of the
|
|
1069
|
+
conductor is built on the trunk; a person is briefed by hand. Then the merge order: by wave, and in
|
|
1070
|
+
a wave the batch that the most rows wait for, directly or not, first. With a context, only its rows
|
|
1071
|
+
are shown; the rows of other contexts it waits for count in the numbering of the waves.
|
|
1072
|
+
|
|
1073
|
+
A cycle in `Depends on`, a dependency on an id no row carries, a row without owner and an id two
|
|
1074
|
+
rows carry make the rows impossible to order: they are reported alone, without waves, and the
|
|
1075
|
+
command exits 1. A file without a slices table, or a context no row names, is refused. `--json`
|
|
1076
|
+
prints
|
|
1077
|
+
`{ file, context, problems: [{ kind, rows, message }], waves: [{ wave, batches: [{ id, owner, context, rows: [{ id, kind, slice, status, waitingFor }], aggregates, brief, sameFiles, unknownOverlap }] }], mergeOrder }`.
|
|
1078
|
+
|
|
1045
1079
|
## worker-scope
|
|
1046
1080
|
|
|
1047
1081
|
```
|
|
@@ -1228,6 +1262,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
|
|
|
1228
1262
|
| `test/spec-required` | an aggregate, value object, domain service, handler, domain event handler, integration event handler or job without a spec (a `*.result.ts` needs none) |
|
|
1229
1263
|
| `test/no-mocks` | `vi.mock`, `vi.fn`, `vi.spyOn`, their `jest` twins, or a mocking library in a context's tests |
|
|
1230
1264
|
| `test/builder-required` | an aggregate without `test/builders/<name>.builder.ts` |
|
|
1265
|
+
| `test/helper-placed` | a file of a context's `test/unit/` or `test/integration/` that is not a spec (`*.spec.ts`, `*.test.ts`): it goes to `test/worlds/`, `test/builders/` or `test/fakes/` |
|
|
1231
1266
|
| `events/name-format` | an event name that is not `<context>.<aggregate>.<fact>` in kebab-case with the right context |
|
|
1232
1267
|
| `events/name-declared-once` | a class of `domain/events/` without `static readonly eventName`, or whose `readonly name` writes the name again instead of reading it |
|
|
1233
1268
|
| `events/defined-in-published-language` | `defineIntegrationEvent` outside a published language, without a payload, twice for one version; an event described by hand |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-directories.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/open-directories.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"open-directories.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/open-directories.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAM7C,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/** Everything below these is free: tests may mirror the production tree. */
|
|
2
|
-
export const OPEN_DIRECTORIES = [
|
|
2
|
+
export const OPEN_DIRECTORIES = [
|
|
3
|
+
'test/unit',
|
|
4
|
+
'test/integration',
|
|
5
|
+
'test/fakes',
|
|
6
|
+
'test/builders',
|
|
7
|
+
'test/worlds',
|
|
8
|
+
];
|
|
3
9
|
//# sourceMappingURL=open-directories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-directories.js","sourceRoot":"","sources":["../../../src/check/canonical/open-directories.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAsB,
|
|
1
|
+
{"version":3,"file":"open-directories.js","sourceRoot":"","sources":["../../../src/check/canonical/open-directories.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,WAAW;IACX,kBAAkB;IAClB,YAAY;IACZ,eAAe;IACf,aAAa;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAsFhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../src/check/canonical/roles.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAAoB;IACpC,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjD,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE;IAC7G,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE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AAU;YACV,cAAc;YACd,YAAY;YACZ,UAAU;YACV,YAAY;YACZ,gBAAgB;SACjB;KACF;IACD,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/C,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;IACzD,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE;CACtD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Config } from '../../config/index.js';
|
|
2
|
+
import type { Flaw } from '../model/flaw.js';
|
|
3
|
+
/**
|
|
4
|
+
* Why an entry of a context, a directory (ending with `/`) or a file, has no place in the
|
|
5
|
+
* canonical tree; undefined when it has one, or when it is the context itself.
|
|
6
|
+
*/
|
|
7
|
+
export declare function strayEntry(entry: string, config: Config): Flaw | undefined;
|
|
8
|
+
//# sourceMappingURL=stray-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stray-entry.d.ts","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAc7C;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAQ1E"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { barrelFile, dependenciesFile } from '../../declared/index.js';
|
|
3
|
+
import { isCanonicalDirectory } from './is-canonical-directory.js';
|
|
4
|
+
import { OPEN_DIRECTORIES } from './open-directories.js';
|
|
5
|
+
import { roleOf } from './role-of.js';
|
|
6
|
+
/**
|
|
7
|
+
* Why an entry of a context, a directory (ending with `/`) or a file, has no place in the
|
|
8
|
+
* canonical tree; undefined when it has one, or when it is the context itself.
|
|
9
|
+
*/
|
|
10
|
+
export function strayEntry(entry, config) {
|
|
11
|
+
const placed = place(entry, config);
|
|
12
|
+
if (placed === undefined) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
return entry.endsWith('/') ? strayDirectory(placed) : straySource(placed);
|
|
16
|
+
}
|
|
17
|
+
function place(entry, { contextsDir, contexts, stack }) {
|
|
18
|
+
const [context = '', ...rest] = entry
|
|
19
|
+
.slice(contextsDir.length + 1)
|
|
20
|
+
.replace(/\/$/, '')
|
|
21
|
+
.split('/');
|
|
22
|
+
if (rest.length === 0) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
context,
|
|
27
|
+
declared: stack.style === 'declared',
|
|
28
|
+
inside: rest.join('/'),
|
|
29
|
+
extras: contexts[context]?.extraDirectories ?? [],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function strayDirectory({ context, inside, extras }) {
|
|
33
|
+
if (isCanonicalDirectory(inside) || coveredByExtra(extras, inside)) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
message: `"${inside}" is not a directory of the canonical tree.`,
|
|
38
|
+
fix: `Move its files to the canonical directory of their role (see \`ddd-ts-kit explain tree/closed\`), or, if this is a design decision, add "${inside}" to contexts.${context}.extraDirectories in ddd-ts-kit.config.json.`,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function straySource(placed) {
|
|
42
|
+
const { inside, extras } = placed;
|
|
43
|
+
if (!inside.endsWith('.ts')) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
const directory = path.posix.dirname(inside);
|
|
47
|
+
if (directory === '.') {
|
|
48
|
+
return atContextRoot(placed);
|
|
49
|
+
}
|
|
50
|
+
const open = OPEN_DIRECTORIES.some((root) => directory === root || directory.startsWith(`${root}/`));
|
|
51
|
+
if (open || roleOf(directory) !== undefined || coveredByExtra(extras, directory)) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
message: `"${inside}" is not in a role directory.`,
|
|
56
|
+
fix: `Move it one level down into the directory of its role (for example ${directory.split('/')[0] ?? directory}/<role>/), so that its suffix and its tests can be checked.`,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function atContextRoot({ context, declared, inside: file }) {
|
|
60
|
+
const generated = [barrelFile(context), dependenciesFile(context)];
|
|
61
|
+
if (file === `${context}.module.ts` || (declared && generated.includes(file))) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
const allowed = declared
|
|
65
|
+
? `CONTEXT.md, the generated ${generated.join(' or ')} and ${context}.module.ts`
|
|
66
|
+
: `CONTEXT.md and ${context}.module.ts`;
|
|
67
|
+
return {
|
|
68
|
+
message: `"${file}" sits at the root of the context.`,
|
|
69
|
+
fix: `Move it into the directory of its role; only ${allowed} live at the root of a context.`,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function coveredByExtra(extras, directory) {
|
|
73
|
+
return extras.some((extra) => directory === extra || directory.startsWith(`${extra}/`) || extra.startsWith(`${directory}/`));
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=stray-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stray-entry.js","sourceRoot":"","sources":["../../../src/check/canonical/stray-entry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAWtC;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE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BAA6B,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,OAAO,YAAY;QAChF,CAAC,CAAC,kBAAkB,OAAO,YAAY,CAAC;IAE1C,OAAO;QACL,OAAO,EAAE,IAAI,IAAI,oCAAoC;QACrD,GAAG,EAAE,gDAAgD,OAAO,iCAAiC;KAC9F,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,MAAyB,EAAE,SAAiB;IAClE,OAAO,MAAM,CAAC,IAAI,CAChB,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,CAAC,CACzG,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAwF7C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAuF7C,CAAC"}
|
|
@@ -76,11 +76,13 @@ import { schemaPresentationOnly } from '../rules/schema-presentation-only.js';
|
|
|
76
76
|
import { standardNoParallelInterface } from '../rules/standard-no-parallel-interface.js';
|
|
77
77
|
import { tenancyScopedStatement } from '../rules/tenancy-scoped-statement.js';
|
|
78
78
|
import { testBuilderRequired } from '../rules/test-builder-required.js';
|
|
79
|
+
import { testHelperPlaced } from '../rules/test-helper-placed.js';
|
|
79
80
|
import { testCoverageGoverned } from '../rules/test-coverage-governed.js';
|
|
80
81
|
import { testNoMocks } from '../rules/test-no-mocks.js';
|
|
81
82
|
import { testSpecRequired } from '../rules/test-spec-required.js';
|
|
82
83
|
import { tracingPlatformOnly } from '../rules/tracing-platform-only.js';
|
|
83
84
|
import { treeClosed } from '../rules/tree-closed.js';
|
|
85
|
+
import { treeDocumentedPaths } from '../rules/tree-documented-paths.js';
|
|
84
86
|
import { treeContextDoc } from '../rules/tree-context-doc.js';
|
|
85
87
|
/** The rules of docs/ARCHITECTURE.md section 3 this checker holds, `config/valid` aside: it needs their ids. */
|
|
86
88
|
export const ARCHITECTURE_RULES = [
|
|
@@ -94,6 +96,7 @@ export const ARCHITECTURE_RULES = [
|
|
|
94
96
|
contextNoCycle,
|
|
95
97
|
treeClosed,
|
|
96
98
|
treeContextDoc,
|
|
99
|
+
treeDocumentedPaths,
|
|
97
100
|
namingSuffix,
|
|
98
101
|
namingOneConceptPerFile,
|
|
99
102
|
namingSearchNotList,
|
|
@@ -106,6 +109,7 @@ export const ARCHITECTURE_RULES = [
|
|
|
106
109
|
eventsDefinedInPublishedLanguage,
|
|
107
110
|
testNoMocks,
|
|
108
111
|
testBuilderRequired,
|
|
112
|
+
testHelperPlaced,
|
|
109
113
|
testCoverageGoverned,
|
|
110
114
|
languageGlossaryTerm,
|
|
111
115
|
languageNoTechnicalName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAA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AmB;IACnB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,qBAAqB;CACtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAm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AAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,qBAAqB;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-severities.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"default-severities.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAYjE,CAAC"}
|
|
@@ -9,5 +9,7 @@ export const DEFAULT_SEVERITIES = {
|
|
|
9
9
|
'application/command-query-separation': 'warn',
|
|
10
10
|
'standard/no-parallel-interface': 'warn',
|
|
11
11
|
'config/rule-off-everywhere': 'warn',
|
|
12
|
+
'tree/documented-paths': 'warn',
|
|
13
|
+
'test/helper-placed': 'warn',
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=default-severities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-severities.js","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IACpE,eAAe,EAAE,MAAM;IACvB,eAAe,EAAE,MAAM;IACvB,uBAAuB,EAAE,MAAM;IAC/B,qBAAqB,EAAE,MAAM;IAC7B,wBAAwB,EAAE,MAAM;IAChC,wBAAwB,EAAE,MAAM;IAChC,sCAAsC,EAAE,MAAM;IAC9C,gCAAgC,EAAE,MAAM;IACxC,4BAA4B,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"default-severities.js","sourceRoot":"","sources":["../../../src/check/catalogue/default-severities.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IACpE,eAAe,EAAE,MAAM;IACvB,eAAe,EAAE,MAAM;IACvB,uBAAuB,EAAE,MAAM;IAC/B,qBAAqB,EAAE,MAAM;IAC7B,wBAAwB,EAAE,MAAM;IAChC,wBAAwB,EAAE,MAAM;IAChC,sCAAsC,EAAE,MAAM;IAC9C,gCAAgC,EAAE,MAAM;IACxC,4BAA4B,EAAE,MAAM;IACpC,uBAAuB,EAAE,MAAM;IAC/B,oBAAoB,EAAE,MAAM;CAC7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const PERSISTENCE_DOCS = {
|
|
2
2
|
'persistence/migration-history': {
|
|
3
|
-
why: 'Migrations are applied in the order of their names, and several people add them at the same time. Numbered by an index, two branches each write `0002_...` and the order between them is a guess; named by a random word, nobody knows what a migration does. A timestamp and a description, `20261012093000_add-invoices`, keep every branch apart. drizzle-kit adds a journal and a chain of snapshots on top: its migrator applies only the entries newer than the last one a database applied, so an entry merged out of order is skipped without a word, and a snapshot generated from the same parent as another makes the next migration miss a change. After a merge, the migration of the branch is generated again on top of the main branch. A worker of a parallel build names the migration it needs `working-<what-it-does>`: its branch runs green in its worktree, and the conductor generates the real one on the trunk, so a working migration found outside a worktree is one that was merged as is.',
|
|
3
|
+
why: 'Migrations are applied in the order of their names, and several people add them at the same time. Numbered by an index, two branches each write `0002_...` and the order between them is a guess; named by a random word, nobody knows what a migration does. A timestamp and a description, `20261012093000_add-invoices`, keep every branch apart. drizzle-kit adds a journal and a chain of snapshots on top: its migrator applies only the entries newer than the last one a database applied, so an entry merged out of order is skipped without a word, and a snapshot generated from the same parent as another makes the next migration miss a change. After a merge, the migration of the branch is generated again on top of the main branch (under drizzle-kit, `npx ddd-ts-kit drizzle-generate --replay` deletes and generates them again). A worker of a parallel build names the migration it needs `working-<what-it-does>`: its branch runs green in its worktree, and the conductor generates the real one on the trunk, so a working migration found outside a worktree is one that was merged as is.',
|
|
4
4
|
bad: `migrations/
|
|
5
5
|
0002_brave_falcon.sql # an index, a random name
|
|
6
6
|
0002_quiet_owl.sql # the same index, from another branch
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,0jCAA0jC;QAC/jC,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"tree-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/tree-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwGvD,CAAC"}
|