ddd-ts-kit 0.104.0 → 0.106.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 +122 -6
- package/README.fr.md +33 -25
- package/README.md +30 -23
- package/dist/check/baseline/renamed-files.d.ts.map +1 -1
- package/dist/check/baseline/renamed-files.js +2 -1
- package/dist/check/baseline/renamed-files.js.map +1 -1
- package/dist/check/canonical/earlier-context-file.d.ts +1 -6
- package/dist/check/canonical/earlier-context-file.d.ts.map +1 -1
- package/dist/check/canonical/earlier-context-file.js +4 -10
- package/dist/check/canonical/earlier-context-file.js.map +1 -1
- package/dist/check/commands/changed-files.d.ts.map +1 -1
- package/dist/check/commands/changed-files.js +2 -1
- package/dist/check/commands/changed-files.js.map +1 -1
- package/dist/check/events/domain-event-names.d.ts +1 -1
- package/dist/check/events/domain-event-names.js +1 -1
- package/dist/check/explain/errors-docs.d.ts.map +1 -1
- package/dist/check/explain/errors-docs.js +10 -18
- package/dist/check/explain/errors-docs.js.map +1 -1
- package/dist/check/explain/module-docs.js +1 -1
- package/dist/check/explain/module-docs.js.map +1 -1
- package/dist/check/explain/standard-docs.js +2 -2
- package/dist/check/explain/standard-docs.js.map +1 -1
- package/dist/check/explain/wiring-docs.js +1 -1
- package/dist/check/explain/wiring-docs.js.map +1 -1
- package/dist/check/fixtures/context-file-fixtures.d.ts +1 -1
- package/dist/check/fixtures/context-file-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/context-file-fixtures.js +4 -6
- package/dist/check/fixtures/context-file-fixtures.js.map +1 -1
- package/dist/check/fixtures/earlier-declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/earlier-declarations-fixtures.js +2 -4
- package/dist/check/fixtures/earlier-declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/module-fixtures.js +2 -2
- package/dist/check/fixtures/module-fixtures.js.map +1 -1
- package/dist/check/project/git-ignored.d.ts.map +1 -1
- package/dist/check/project/git-ignored.js +2 -1
- package/dist/check/project/git-ignored.js.map +1 -1
- package/dist/check/rules/authz-declared.d.ts.map +1 -1
- package/dist/check/rules/authz-declared.js +2 -1
- package/dist/check/rules/authz-declared.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +3 -12
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +6 -2
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +1 -2
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +9 -16
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +6 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/json-report.d.ts +8 -0
- package/dist/commands/json-report.d.ts.map +1 -0
- package/dist/commands/json-report.js +42 -0
- package/dist/commands/json-report.js.map +1 -0
- package/dist/commands/lint.d.ts +2 -3
- package/dist/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +2 -4
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/plan-waves.d.ts +2 -1
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +6 -3
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/print-report.d.ts.map +1 -1
- package/dist/commands/print-report.js +2 -1
- package/dist/commands/print-report.js.map +1 -1
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +16 -3
- package/dist/commands/status.js.map +1 -1
- package/dist/commit/git-arguments.d.ts +9 -0
- package/dist/commit/git-arguments.d.ts.map +1 -0
- package/dist/commit/git-arguments.js +46 -0
- package/dist/commit/git-arguments.js.map +1 -0
- package/dist/commit/run-git.d.ts.map +1 -1
- package/dist/commit/run-git.js +2 -1
- package/dist/commit/run-git.js.map +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/kit-container.d.ts +6 -0
- package/dist/config/kit-container.d.ts.map +1 -0
- package/dist/config/kit-container.js +10 -0
- package/dist/config/kit-container.js.map +1 -0
- package/dist/config/stack.d.ts +1 -1
- package/dist/config/stack.d.ts.map +1 -1
- package/dist/config/stack.js +1 -1
- package/dist/config/stack.js.map +1 -1
- package/dist/context-files/context-file.d.ts +1 -1
- package/dist/declared/earlier-layout-notice.d.ts +1 -1
- package/dist/declared/earlier-layout-notice.js +1 -1
- package/dist/declared/earlier-layout-notice.js.map +1 -1
- package/dist/declared/keeps-role-folder-files.d.ts +1 -2
- package/dist/declared/keeps-role-folder-files.d.ts.map +1 -1
- package/dist/declared/keeps-role-folder-files.js +1 -2
- package/dist/declared/keeps-role-folder-files.js.map +1 -1
- package/dist/declared/keeps-single-file.d.ts +2 -3
- package/dist/declared/keeps-single-file.d.ts.map +1 -1
- package/dist/declared/keeps-single-file.js +2 -3
- package/dist/declared/keeps-single-file.js.map +1 -1
- package/dist/docs/spec-heading.d.ts +5 -1
- package/dist/docs/spec-heading.d.ts.map +1 -1
- package/dist/docs/spec-heading.js +8 -2
- package/dist/docs/spec-heading.js.map +1 -1
- package/dist/doctor/format-diagnosis.js +3 -0
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/doctor/hook-findings.d.ts +2 -1
- package/dist/doctor/hook-findings.d.ts.map +1 -1
- package/dist/doctor/hook-findings.js +10 -2
- package/dist/doctor/hook-findings.js.map +1 -1
- package/dist/doctor/permission-findings.js +1 -0
- package/dist/doctor/permission-findings.js.map +1 -1
- package/dist/generate/di-entry.d.ts +4 -0
- package/dist/generate/di-entry.d.ts.map +1 -0
- package/dist/generate/di-entry.js +5 -0
- package/dist/generate/di-entry.js.map +1 -0
- package/dist/generate/di-imports.d.ts +4 -0
- package/dist/generate/di-imports.d.ts.map +1 -0
- package/dist/generate/di-imports.js +12 -0
- package/dist/generate/di-imports.js.map +1 -0
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +3 -2
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/background/spec-family.d.ts +1 -1
- package/dist/generate/kinds/background/spec-family.d.ts.map +1 -1
- package/dist/generate/kinds/background/spec-family.js +2 -1
- package/dist/generate/kinds/background/spec-family.js.map +1 -1
- package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/background-job-kind.js +8 -1
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/command-outputs.d.ts.map +1 -1
- package/dist/generate/kinds/command-outputs.js +2 -1
- package/dist/generate/kinds/command-outputs.js.map +1 -1
- package/dist/generate/kinds/extraction/service-selection.d.ts.map +1 -1
- package/dist/generate/kinds/extraction/service-selection.js +2 -1
- package/dist/generate/kinds/extraction/service-selection.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +1 -1
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/import-assembler.d.ts.map +1 -1
- package/dist/generate/kinds/import-assembler.js +11 -2
- package/dist/generate/kinds/import-assembler.js.map +1 -1
- package/dist/generate/kinds/job/grant-system-actor.d.ts.map +1 -1
- package/dist/generate/kinds/job/grant-system-actor.js +8 -4
- package/dist/generate/kinds/job/grant-system-actor.js.map +1 -1
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +2 -1
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/personal-data/declare-personal-data.js +1 -1
- package/dist/generate/kinds/personal-data/declare-personal-data.js.map +1 -1
- package/dist/generate/kinds/process-kind.d.ts.map +1 -1
- package/dist/generate/kinds/process-kind.js +8 -1
- package/dist/generate/kinds/process-kind.js.map +1 -1
- package/dist/generate/kinds/query-outputs.d.ts.map +1 -1
- package/dist/generate/kinds/query-outputs.js +2 -1
- package/dist/generate/kinds/query-outputs.js.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.js +3 -2
- package/dist/generate/kinds/test-world-kind.js.map +1 -1
- package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
- package/dist/generate/kinds/world/context-fakes.js +2 -1
- package/dist/generate/kinds/world/context-fakes.js.map +1 -1
- package/dist/generate/kinds/world/world-arrangement.d.ts.map +1 -1
- package/dist/generate/kinds/world/world-arrangement.js +2 -1
- package/dist/generate/kinds/world/world-arrangement.js.map +1 -1
- package/dist/generate/kinds/world/world-vars.d.ts.map +1 -1
- package/dist/generate/kinds/world/world-vars.js +2 -1
- package/dist/generate/kinds/world/world-vars.js.map +1 -1
- package/dist/generate/spec-vars.d.ts.map +1 -1
- package/dist/generate/spec-vars.js +2 -1
- package/dist/generate/spec-vars.js.map +1 -1
- package/dist/generate/wiring-family.d.ts +1 -1
- package/dist/generate/wiring-family.d.ts.map +1 -1
- package/dist/generate/wiring-family.js +2 -1
- package/dist/generate/wiring-family.js.map +1 -1
- package/dist/generate/wirings.js +2 -2
- package/dist/generate/wirings.js.map +1 -1
- package/dist/help/flag-notes.d.ts.map +1 -1
- package/dist/help/flag-notes.js +8 -0
- package/dist/help/flag-notes.js.map +1 -1
- package/dist/help/reading-notes.d.ts.map +1 -1
- package/dist/help/reading-notes.js +4 -2
- package/dist/help/reading-notes.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +1 -2
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage.js +4 -4
- package/dist/init/add-presets.d.ts +8 -0
- package/dist/init/add-presets.d.ts.map +1 -0
- package/dist/init/add-presets.js +17 -0
- package/dist/init/add-presets.js.map +1 -0
- package/dist/init/agent-permissions.js +2 -0
- package/dist/init/agent-permissions.js.map +1 -1
- package/dist/init/files/audit-files.js +1 -1
- package/dist/init/files/audit-files.js.map +1 -1
- package/dist/init/files/auth-files.js +2 -2
- package/dist/init/files/auth-files.js.map +1 -1
- package/dist/init/files/event-sourcing-files.js +1 -1
- package/dist/init/files/event-sourcing-files.js.map +1 -1
- package/dist/init/files/family-of.d.ts +1 -1
- package/dist/init/files/family-of.d.ts.map +1 -1
- package/dist/init/files/family-of.js +2 -1
- package/dist/init/files/family-of.js.map +1 -1
- package/dist/init/files/persistence-files.d.ts.map +1 -1
- package/dist/init/files/persistence-files.js +2 -1
- package/dist/init/files/persistence-files.js.map +1 -1
- package/dist/init/files/platform-files.js +2 -2
- package/dist/init/files/platform-files.js.map +1 -1
- package/dist/init/files/privacy-files.js +1 -1
- package/dist/init/files/privacy-files.js.map +1 -1
- package/dist/init/manifest/dependencies-against-stack.d.ts.map +1 -1
- package/dist/init/manifest/dependencies-against-stack.js +5 -1
- package/dist/init/manifest/dependencies-against-stack.js.map +1 -1
- package/dist/init/manifest/dependencies-for.d.ts.map +1 -1
- package/dist/init/manifest/dependencies-for.js +4 -0
- package/dist/init/manifest/dependencies-for.js.map +1 -1
- package/dist/init/manifest/versions.d.ts.map +1 -1
- package/dist/init/manifest/versions.js +28 -24
- package/dist/init/manifest/versions.js.map +1 -1
- package/dist/init/manifest/write-manifest.js +1 -1
- package/dist/init/manifest/write-manifest.js.map +1 -1
- package/dist/init/regulated-sandbox.d.ts +5 -3
- package/dist/init/regulated-sandbox.d.ts.map +1 -1
- package/dist/init/regulated-sandbox.js +6 -3
- package/dist/init/regulated-sandbox.js.map +1 -1
- package/dist/init/rewire-personal-data.js +1 -1
- package/dist/init/rewire-personal-data.js.map +1 -1
- package/dist/init/rewire-preset.d.ts +1 -1
- package/dist/init/rewire-preset.d.ts.map +1 -1
- package/dist/init/rewire-preset.js +5 -2
- package/dist/init/rewire-preset.js.map +1 -1
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +7 -7
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/resolve-stack.js +1 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/stack/resolve-style.d.ts +1 -1
- package/dist/init/stack/resolve-style.js +4 -4
- package/dist/init/stack/resolve-style.js.map +1 -1
- package/dist/init/validation-dependencies.d.ts.map +1 -1
- package/dist/init/validation-dependencies.js +3 -1
- package/dist/init/validation-dependencies.js.map +1 -1
- package/dist/layout/fit-statement.js +16 -2
- package/dist/layout/fit-statement.js.map +1 -1
- package/dist/lint/eslint-in-project.d.ts +1 -1
- package/dist/lint/eslint-in-project.d.ts.map +1 -1
- package/dist/lint/eslint-in-project.js +1 -6
- package/dist/lint/eslint-in-project.js.map +1 -1
- package/dist/lint/format-verdict.d.ts +2 -2
- package/dist/lint/format-verdict.d.ts.map +1 -1
- package/dist/lint/format-verdict.js +3 -4
- package/dist/lint/format-verdict.js.map +1 -1
- package/dist/lint/lint-verdict.d.ts +2 -13
- package/dist/lint/lint-verdict.d.ts.map +1 -1
- package/dist/lint/lint-verdict.js +4 -22
- package/dist/lint/lint-verdict.js.map +1 -1
- package/dist/lint/parse-lint-answer.d.ts +1 -3
- package/dist/lint/parse-lint-answer.d.ts.map +1 -1
- package/dist/lint/parse-lint-answer.js +0 -2
- package/dist/lint/parse-lint-answer.js.map +1 -1
- package/dist/merge/git-process.d.ts.map +1 -1
- package/dist/merge/git-process.js +2 -1
- package/dist/merge/git-process.js.map +1 -1
- package/dist/merge/lost/revision-files.d.ts.map +1 -1
- package/dist/merge/lost/revision-files.js +6 -1
- package/dist/merge/lost/revision-files.js.map +1 -1
- package/dist/merge/lost/side-hunks.d.ts.map +1 -1
- package/dist/merge/lost/side-hunks.js +2 -1
- package/dist/merge/lost/side-hunks.js.map +1 -1
- package/dist/merge/merge-in-progress.d.ts +7 -0
- package/dist/merge/merge-in-progress.d.ts.map +1 -0
- package/dist/merge/merge-in-progress.js +22 -0
- package/dist/merge/merge-in-progress.js.map +1 -0
- package/dist/merge/object-bytes.d.ts.map +1 -1
- package/dist/merge/object-bytes.js +2 -1
- package/dist/merge/object-bytes.js.map +1 -1
- package/dist/model-modules/module-layers.d.ts +1 -1
- package/dist/model-modules/module-layers.d.ts.map +1 -1
- package/dist/model-modules/module-layers.js +1 -1
- package/dist/model-modules/module-layers.js.map +1 -1
- package/dist/model-modules/role-folders-of.js +1 -1
- package/dist/model-modules/role-folders-of.js.map +1 -1
- package/dist/package-manager/package-manager-vars.d.ts +1 -1
- package/dist/package-manager/package-manager-vars.js +2 -2
- package/dist/package-manager/package-manager-vars.js.map +1 -1
- package/dist/package-manager/pinned-package-managers.d.ts +2 -2
- package/dist/package-manager/pinned-package-managers.js +2 -2
- package/dist/plan/copy-of-project.d.ts.map +1 -1
- package/dist/plan/copy-of-project.js +2 -1
- package/dist/plan/copy-of-project.js.map +1 -1
- package/dist/plan/format-plan.d.ts.map +1 -1
- package/dist/plan/format-plan.js +12 -2
- package/dist/plan/format-plan.js.map +1 -1
- package/dist/plan/ready-now.d.ts +8 -0
- package/dist/plan/ready-now.d.ts.map +1 -0
- package/dist/plan/ready-now.js +25 -0
- package/dist/plan/ready-now.js.map +1 -0
- package/dist/plan/wave-plan.d.ts +8 -0
- package/dist/plan/wave-plan.d.ts.map +1 -1
- package/dist/presets/apply-preset.d.ts.map +1 -1
- package/dist/presets/apply-preset.js +2 -0
- package/dist/presets/apply-preset.js.map +1 -1
- package/dist/presets/identity-refusal.d.ts.map +1 -1
- package/dist/presets/identity-refusal.js +4 -3
- package/dist/presets/identity-refusal.js.map +1 -1
- package/dist/presets/organisations-as-audit-chains.d.ts +10 -0
- package/dist/presets/organisations-as-audit-chains.d.ts.map +1 -0
- package/dist/presets/organisations-as-audit-chains.js +30 -0
- package/dist/presets/organisations-as-audit-chains.js.map +1 -0
- package/dist/progress/format-progress.js +10 -1
- package/dist/progress/format-progress.js.map +1 -1
- package/dist/progress/progress.d.ts +2 -0
- package/dist/progress/progress.d.ts.map +1 -1
- package/dist/progress/ready-rows.d.ts +7 -0
- package/dist/progress/ready-rows.d.ts.map +1 -0
- package/dist/progress/ready-rows.js +14 -0
- package/dist/progress/ready-rows.js.map +1 -0
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +7 -2
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -5
- package/templates/acl/translator.spec.ts.tpl +3 -3
- package/templates/adapter/adapter.spec.ts.tpl +2 -7
- package/templates/adapter/simulated.spec.ts.tpl +1 -1
- package/templates/aggregate/aggregate.spec.ts.tpl +1 -9
- package/templates/architecture/{extractable.tsyringe.spec.ts.tpl → extractable.container.spec.ts.tpl} +2 -1
- package/templates/architecture/extractable.declared.spec.ts.tpl +2 -1
- package/templates/background-job/background-job.spec.buses.ts.tpl +19 -3
- package/templates/background-job/{background-job.spec.tsyringe.ts.tpl → background-job.spec.container.ts.tpl} +42 -12
- package/templates/controller/guard.spec.ts.tpl +22 -17
- package/templates/controller/guard.ts.tpl +3 -5
- package/templates/domain-service/domain-service.spec.ts.tpl +2 -2
- package/templates/init/README.md.tpl +8 -6
- package/templates/init/docker/Dockerfile.tpl +7 -7
- package/templates/init/docker/env.example.tpl +2 -0
- package/templates/init/e2e/start-application.database.ts.tpl +5 -5
- package/templates/init/e2e/start-application.memory.ts.tpl +5 -5
- package/templates/init/main.ts.tpl +1 -0
- package/templates/init/platform/composition/{compose-application.tsyringe.ts.tpl → compose-application.container.ts.tpl} +4 -7
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +2 -0
- package/templates/init/platform/events/start-outbox-relay.ts.tpl +5 -1
- package/templates/init/platform/observability/create-logger.stdout.ts.tpl +2 -2
- package/templates/init/platform/observability/create-metrics.ts.tpl +6 -3
- package/templates/init/platform/resilience/adapters-with-own-policy.ts.tpl +1 -1
- package/templates/init/platform/resilience/default-policy.ts.tpl +1 -1
- package/templates/init/rules/application.md.tpl +2 -0
- package/templates/init/rules/domain.md.tpl +2 -0
- package/templates/init/rules/infrastructure.md.tpl +2 -0
- package/templates/init/rules/platform.md.tpl +3 -3
- package/templates/init/rules/tests.md.tpl +2 -2
- package/templates/pipeline/biome.json.tpl +1 -1
- package/templates/pipeline/github/actions/setup/action.yml.tpl +3 -2
- package/templates/pipeline/gitlab/gitlab-ci.yml.tpl +2 -2
- package/templates/pipeline/lefthook.yml +4 -0
- package/templates/pipeline/package-scripts.json +2 -2
- package/templates/pipeline/vitest.config.ts.tpl +2 -0
- package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.handler.ts.tpl +6 -4
- package/templates/presets/identity/context/test/integration/organisation-tenant-directory.spec.ts.tpl +7 -6
- package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +2 -1
- package/templates/presets/identity/design.md.tpl +4 -2
- package/templates/presets/identity/e2e/support.wiring.tpl +4 -4
- package/templates/presets/identity/platform/organisation-of-command.ts.tpl +36 -0
- package/templates/process/timeout-job.spec.buses.ts.tpl +15 -2
- package/templates/process/{timeout-job.spec.tsyringe.ts.tpl → timeout-job.spec.container.ts.tpl} +21 -2
- package/templates/query/search.reader.spec.ts.tpl +1 -1
- package/templates/repository/knex/mapper.ts.tpl +1 -1
- package/templates/service/main.ts.tpl +1 -0
- package/templates/value-object/value-object.spec.ts.tpl +1 -5
- /package/templates/adapter/{simulated.wiring.tsyringe.tpl → simulated.wiring.container.tpl} +0 -0
- /package/templates/adapter/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/architecture/{hosting.tsyringe.spec.ts.tpl → hosting.container.spec.ts.tpl} +0 -0
- /package/templates/architecture/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/background-job/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/command/{handler.spec.tsyringe.ts.tpl → handler.spec.container.ts.tpl} +0 -0
- /package/templates/command/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/context/{module.tsyringe.ts.tpl → module.container.ts.tpl} +0 -0
- /package/templates/context/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/controller/{routes.tsyringe.tpl → routes.container.tpl} +0 -0
- /package/templates/erasure-handler/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/event-handler/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/file-upload/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/gateway/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/init/platform/audit/{audit.module.tsyringe.ts.tpl → audit.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/auth/authorization/{authorization.tsyringe.ts.tpl → authorization.container.ts.tpl} +0 -0
- /package/templates/init/platform/buses/{create-command-bus.tsyringe.ts.tpl → create-command-bus.container.ts.tpl} +0 -0
- /package/templates/init/platform/buses/{create-query-bus.tsyringe.ts.tpl → create-query-bus.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{context-selection.tsyringe.ts.tpl → context-selection.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{lay-foundations.tsyringe.ts.tpl → lay-foundations.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{platform-test.module.tsyringe.ts.tpl → platform-test.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{platform.module.tsyringe.ts.tpl → platform.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/composition/{routes-of.tsyringe.ts.tpl → routes-of.container.ts.tpl} +0 -0
- /package/templates/init/platform/files/{bind-files.tsyringe.ts.tpl → bind-files.container.ts.tpl} +0 -0
- /package/templates/init/platform/files/{files.module.tsyringe.ts.tpl → files.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/files/{staging-uploads.tsyringe.ts.tpl → staging-uploads.container.ts.tpl} +0 -0
- /package/templates/init/platform/jobs/{housekeeping.module.tsyringe.ts.tpl → housekeeping.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{data-subject-copies.tsyringe.ts.tpl → data-subject-copies.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{data-subject-exports.tsyringe.ts.tpl → data-subject-exports.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{privacy.module.tsyringe.ts.tpl → privacy.module.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{run-erasure.tsyringe.ts.tpl → run-erasure.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{run-export.tsyringe.ts.tpl → run-export.container.ts.tpl} +0 -0
- /package/templates/init/platform/privacy/{run-purge.tsyringe.ts.tpl → run-purge.container.ts.tpl} +0 -0
- /package/templates/init/scripts/{privacy-erase.tsyringe.ts.tpl → privacy-erase.container.ts.tpl} +0 -0
- /package/templates/init/scripts/{privacy-export.tsyringe.ts.tpl → privacy-export.container.ts.tpl} +0 -0
- /package/templates/init/scripts/{privacy-purge.tsyringe.ts.tpl → privacy-purge.container.ts.tpl} +0 -0
- /package/templates/integration-event/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/integration-handler/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/job/{job.spec.tsyringe.ts.tpl → job.spec.container.ts.tpl} +0 -0
- /package/templates/job/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/module/{module-file.tsyringe.ts.tpl → module-file.container.ts.tpl} +0 -0
- /package/templates/module/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/personal-data/{copies.tsyringe.tpl → copies.container.tpl} +0 -0
- /package/templates/personal-data/{exports.tsyringe.tpl → exports.container.tpl} +0 -0
- /package/templates/personal-data/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/process/{timeout-job.wiring.tsyringe.tpl → timeout-job.wiring.container.tpl} +0 -0
- /package/templates/projection/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/query/{handler.spec.tsyringe.ts.tpl → handler.spec.container.ts.tpl} +0 -0
- /package/templates/query/{search.handler.spec.tsyringe.ts.tpl → search.handler.spec.container.ts.tpl} +0 -0
- /package/templates/query/{search.wiring.tsyringe.tpl → search.wiring.container.tpl} +0 -0
- /package/templates/query/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/repository/{event-sourced.wiring.tsyringe.tpl → event-sourced.wiring.container.tpl} +0 -0
- /package/templates/repository/{wiring.tsyringe.tpl → wiring.container.tpl} +0 -0
- /package/templates/route/{routes.on-tsyringe.tpl → routes.on-container.tpl} +0 -0
- /package/templates/service/{extracted.tsyringe.tpl → extracted.container.tpl} +0 -0
- /package/templates/test-world/{world.tsyringe.ts.tpl → world.container.ts.tpl} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-waves.d.ts","sourceRoot":"","sources":["../../src/commands/plan-waves.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan-waves.d.ts","sourceRoot":"","sources":["../../src/commands/plan-waves.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAyB9B,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { resolvedTrunk } from '../commit/resolved-trunk.js';
|
|
|
3
3
|
import { readConfig } from '../config/index.js';
|
|
4
4
|
import { formatPlan } from '../plan/format-plan.js';
|
|
5
5
|
import { planWaves } from '../plan/plan-waves.js';
|
|
6
|
+
import { readyNow } from '../plan/ready-now.js';
|
|
6
7
|
import { replayPlan } from '../plan/replay-plan.js';
|
|
7
8
|
import { readSlices, SLICES_FILE } from '../progress/read-slices.js';
|
|
8
9
|
import { Workspace } from '../workspace/index.js';
|
|
@@ -15,10 +16,11 @@ import { stdoutJson } from '../json/stdout-json.js';
|
|
|
15
16
|
* merges. Exits 1, without waves, while a cycle, an unknown dependency, a row without owner or a row whose id or context is not one a command can carry
|
|
16
17
|
* keeps the rows from being ordered, or while a planned command, replayed in a copy of the
|
|
17
18
|
* project, introduces a name the glossary of its context does not hold or is refused by the
|
|
18
|
-
* generator for any other reason.
|
|
19
|
+
* generator for any other reason. With `--ready`, only the first wave, whose dependencies are all done,
|
|
20
|
+
* and the later ones counted.
|
|
19
21
|
*/
|
|
20
22
|
export const planWavesCommand = (argv, io) => {
|
|
21
|
-
const args = Arguments.parse(argv, {});
|
|
23
|
+
const args = Arguments.parse(argv, { ready: { type: 'boolean', default: false } });
|
|
22
24
|
const root = args.projectRoot;
|
|
23
25
|
const rows = readSlices(new Workspace(root, false));
|
|
24
26
|
if (rows === undefined) {
|
|
@@ -26,7 +28,8 @@ export const planWavesCommand = (argv, io) => {
|
|
|
26
28
|
}
|
|
27
29
|
const context = contextOf(rows, args.positionals[0]);
|
|
28
30
|
const plan = withReplay(root, rows, planWaves(rows, { context, contexts: Object.keys(readConfig(root).config.contexts), trunk: resolvedTrunk(root) }));
|
|
29
|
-
|
|
31
|
+
const shown = args.flag('ready') ? readyNow(plan) : plan;
|
|
32
|
+
io.out(args.json ? stdoutJson(shown) : formatPlan(shown));
|
|
30
33
|
return plan.problems.length === 0 ? 0 : 1;
|
|
31
34
|
};
|
|
32
35
|
/** The plan, once the rows can be ordered, with what the replay of its commands found: no waves while a worker would be refused. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-waves.js","sourceRoot":"","sources":["../../src/commands/plan-waves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,WAA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A,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"print-report.d.ts","sourceRoot":"","sources":["../../src/commands/print-report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAI/B,mIAAmI;AACnI,wBAAgB,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,CA8BpF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { exitCodeOf } from '../workspace/index.js';
|
|
2
2
|
import { stdoutJson } from '../json/stdout-json.js';
|
|
3
|
+
import { jsonReport } from './json-report.js';
|
|
3
4
|
/** Prints what a command wrote (or would write), then where the next human decisions are, one line each; answers its exit code. */
|
|
4
5
|
export function printReport(io, args, report) {
|
|
5
6
|
const dryRun = args.flag('dry-run');
|
|
6
7
|
if (args.json) {
|
|
7
|
-
io.out(stdoutJson(
|
|
8
|
+
io.out(stdoutJson(jsonReport(report, dryRun)));
|
|
8
9
|
return exitCodeOf(report);
|
|
9
10
|
}
|
|
10
11
|
const lines = fileLines(report, dryRun);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print-report.js","sourceRoot":"","sources":["../../src/commands/print-report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,cAAc,CAAC;AAGhE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"print-report.js","sourceRoot":"","sources":["../../src/commands/print-report.ts"],"names":[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AAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,cAAc,CAAC,MAAuB,EAAE,IAAY;IAC3D,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,OAAO,uEAAuE,CAAC;IACjF,CAAC;IAED,0DAA0D;IAC1D,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC/B,CAAC,CAAC,2CAA2C;QAC7C,CAAC,CAAC,wDAAwD,CAAC;AAC/D,CAAC"}
|
|
@@ -2,6 +2,7 @@ import type { Command } from './command.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Prints where the work stands: the next step of the plan, the slices by status and by owner, the markers left in each context.
|
|
4
4
|
* Each slice not done says whether it is ready on the trunk, ready once a worker's branch merges, or waiting.
|
|
5
|
+
* With `--ready`, only the rows a conductor can start now: not started, every dependency done.
|
|
5
6
|
* With `--workers`, the workers of a parallel build instead: who builds what in which worktree, and the files two of them change.
|
|
6
7
|
*/
|
|
7
8
|
export declare const statusCommand: Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,OA8B3B,CAAC"}
|
package/dist/commands/status.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { readConfig } from '../config/index.js';
|
|
2
|
+
import { mergeInProgress } from '../merge/merge-in-progress.js';
|
|
3
|
+
import { inDialect } from '../package-manager/in-dialect.js';
|
|
2
4
|
import { formatProgress } from '../progress/format-progress.js';
|
|
5
|
+
import { readyRows } from '../progress/ready-rows.js';
|
|
3
6
|
import { readProgress } from '../progress/read-progress.js';
|
|
4
7
|
import { formatWorkers } from '../worker/format-workers.js';
|
|
5
8
|
import { landedRows } from '../worker/landed-rows.js';
|
|
@@ -11,10 +14,14 @@ import { stdoutJson } from '../json/stdout-json.js';
|
|
|
11
14
|
/**
|
|
12
15
|
* Prints where the work stands: the next step of the plan, the slices by status and by owner, the markers left in each context.
|
|
13
16
|
* Each slice not done says whether it is ready on the trunk, ready once a worker's branch merges, or waiting.
|
|
17
|
+
* With `--ready`, only the rows a conductor can start now: not started, every dependency done.
|
|
14
18
|
* With `--workers`, the workers of a parallel build instead: who builds what in which worktree, and the files two of them change.
|
|
15
19
|
*/
|
|
16
20
|
export const statusCommand = (argv, io) => {
|
|
17
|
-
const args = Arguments.parse(argv, {
|
|
21
|
+
const args = Arguments.parse(argv, {
|
|
22
|
+
workers: { type: 'boolean', default: false },
|
|
23
|
+
ready: { type: 'boolean', default: false },
|
|
24
|
+
});
|
|
18
25
|
const root = args.projectRoot;
|
|
19
26
|
const workers = readWorkers(root);
|
|
20
27
|
if (args.flag('workers')) {
|
|
@@ -22,8 +29,14 @@ export const statusCommand = (argv, io) => {
|
|
|
22
29
|
return 0;
|
|
23
30
|
}
|
|
24
31
|
const rows = { onBranches: rowsOnBranches(workers), landed: landedRows(workers) };
|
|
25
|
-
const
|
|
26
|
-
|
|
32
|
+
const { config } = readConfig(root);
|
|
33
|
+
const all = readProgress(new Workspace(root, false), config, rows);
|
|
34
|
+
const progress = args.flag('ready') ? readyRows(all) : all;
|
|
35
|
+
const merge = mergeInProgress(root);
|
|
36
|
+
const line = merge === undefined ? undefined : inDialect(merge, config.stack.packageManager);
|
|
37
|
+
io.out(args.json
|
|
38
|
+
? stdoutJson(line === undefined ? progress : { mergeInProgress: line, ...progress })
|
|
39
|
+
: `${line === undefined ? '' : `${line}\n\n`}${formatProgress(progress)}`);
|
|
27
40
|
return 0;
|
|
28
41
|
};
|
|
29
42
|
//# sourceMappingURL=status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/commands/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAA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AG,eAAe,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAE7F,EAAE,CAAC,GAAG,CACJ,IAAI,CAAC,IAAI;QACP,CAAC,CAAC,UAAU,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC;QACpF,CAAC,CAAC,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,EAAE,CAC5E,CAAC;IAEF,OAAO,CAAC,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arguments of every git the CLI runs. A `core.fsmonitor` planted in the configuration of the
|
|
3
|
+
* repository never runs, and no optional lock is taken, so that a read does not refresh the index
|
|
4
|
+
* and start the `post-index-change` hook. A run that changes nothing also runs no hook of the
|
|
5
|
+
* project (`core.hooksPath=/dev/null`); `commit`, `merge` and the other writes keep them, since
|
|
6
|
+
* they are the gates of the project.
|
|
7
|
+
*/
|
|
8
|
+
export declare function gitArguments(args: readonly string[]): string[];
|
|
9
|
+
//# sourceMappingURL=git-arguments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-arguments.d.ts","sourceRoot":"","sources":["../../src/commit/git-arguments.ts"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAI9D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The subcommands the CLI runs that change nothing in the repository: no hook of the project has a
|
|
3
|
+
* reason to run there. `rev-parse`, `var` and `version` are not listed: they run no hook either, and
|
|
4
|
+
* `rev-parse --git-path hooks` is how `doctor` reads where the hooks of the repository are, which a
|
|
5
|
+
* `core.hooksPath` set for the run would answer instead.
|
|
6
|
+
*/
|
|
7
|
+
const READ_ONLY = new Set([
|
|
8
|
+
'blame',
|
|
9
|
+
'branch',
|
|
10
|
+
'cat-file',
|
|
11
|
+
'check-ignore',
|
|
12
|
+
'diff',
|
|
13
|
+
'for-each-ref',
|
|
14
|
+
'grep',
|
|
15
|
+
'log',
|
|
16
|
+
'ls-files',
|
|
17
|
+
'ls-tree',
|
|
18
|
+
'merge-base',
|
|
19
|
+
'patch-id',
|
|
20
|
+
'remote',
|
|
21
|
+
'rev-list',
|
|
22
|
+
'show',
|
|
23
|
+
'status',
|
|
24
|
+
]);
|
|
25
|
+
/** The options of git before its subcommand that take the next word as their value. */
|
|
26
|
+
const VALUED_OPTIONS = new Set(['-C', '-c', '--git-dir', '--work-tree', '--namespace', '--config-env']);
|
|
27
|
+
/**
|
|
28
|
+
* The arguments of every git the CLI runs. A `core.fsmonitor` planted in the configuration of the
|
|
29
|
+
* repository never runs, and no optional lock is taken, so that a read does not refresh the index
|
|
30
|
+
* and start the `post-index-change` hook. A run that changes nothing also runs no hook of the
|
|
31
|
+
* project (`core.hooksPath=/dev/null`); `commit`, `merge` and the other writes keep them, since
|
|
32
|
+
* they are the gates of the project.
|
|
33
|
+
*/
|
|
34
|
+
export function gitArguments(args) {
|
|
35
|
+
const hooks = READ_ONLY.has(subcommandOf(args) ?? '') ? ['-c', 'core.hooksPath=/dev/null'] : [];
|
|
36
|
+
return ['-c', 'core.fsmonitor=false', ...hooks, '--no-optional-locks', ...args];
|
|
37
|
+
}
|
|
38
|
+
function subcommandOf(args) {
|
|
39
|
+
for (let at = 0; at < args.length; at += VALUED_OPTIONS.has(args[at] ?? '') ? 2 : 1) {
|
|
40
|
+
if (!args[at]?.startsWith('-')) {
|
|
41
|
+
return args[at];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=git-arguments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-arguments.js","sourceRoot":"","sources":["../../src/commit/git-arguments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACxB,OAAO;IACP,QAAQ;IACR,UAAU;IACV,cAAc;IACd,MAAM;IACN,cAAc;IACd,MAAM;IACN,KAAK;IACL,UAAU;IACV,SAAS;IACT,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,UAAU;IACV,MAAM;IACN,QAAQ;CACT,CAAC,CAAC;AAEH,uFAAuF;AACvF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;AAExG;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,IAAuB;IAClD,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhG,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,GAAG,KAAK,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,CAAC;AAClF,CAAC;AAED,SAAS,YAAY,CAAC,IAAuB;IAC3C,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpF,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC,EAAE,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-git.d.ts","sourceRoot":"","sources":["../../src/commit/run-git.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-git.d.ts","sourceRoot":"","sources":["../../src/commit/run-git.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,wBAAgB,MAAM,CACpB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAC7C,MAAM,GAAG,SAAS,CAoBpB"}
|
package/dist/commit/run-git.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
2
|
import { CliError } from '../cli-error.js';
|
|
3
|
+
import { gitArguments } from './git-arguments.js';
|
|
3
4
|
/** A history can print far more than the 1 MB spawnSync allows by default; the merge takes the same room. */
|
|
4
5
|
const MAX_BUFFER = 256 * 1024 * 1024;
|
|
5
6
|
/**
|
|
@@ -9,7 +10,7 @@ const MAX_BUFFER = 256 * 1024 * 1024;
|
|
|
9
10
|
* `environment` adds to the variables of the process, such as an index of its own.
|
|
10
11
|
*/
|
|
11
12
|
export function runGit(directory, args, environment) {
|
|
12
|
-
const run = spawnSync('git',
|
|
13
|
+
const run = spawnSync('git', gitArguments(args), {
|
|
13
14
|
cwd: directory,
|
|
14
15
|
...(environment === undefined ? {} : { env: { ...process.env, ...environment } }),
|
|
15
16
|
encoding: 'utf8',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-git.js","sourceRoot":"","sources":["../../src/commit/run-git.ts"],"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EAAE,uBAAuB,IAAI,IAAI,OAAO,CAAC,OAAO,GAAG,EACrE,+FAA+F,CAChG,CAAC;IACJ,CAAC;IAED,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACnD,CAAC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { addContextToConfigText } from './add-context-to-config-text.js';
|
|
2
|
+
export { isKitContainer, onKitContainer } from './kit-container.js';
|
|
2
3
|
export { DERIVED_CONFIG_KEYS } from './derived-config-keys.js';
|
|
3
4
|
export { KNOWN_CONFIG_KEYS } from './known-config-keys.js';
|
|
4
5
|
export { KNOWN_STACK_KEYS } from './known-stack-keys.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,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AAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,KAAK,QAAQ,EACb,KAAK,KAAK,GACX,MAAM,SAAS,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { addContextToConfigText } from './add-context-to-config-text.js';
|
|
2
|
+
export { isKitContainer, onKitContainer } from './kit-container.js';
|
|
2
3
|
export { DERIVED_CONFIG_KEYS } from './derived-config-keys.js';
|
|
3
4
|
export { KNOWN_CONFIG_KEYS } from './known-config-keys.js';
|
|
4
5
|
export { KNOWN_STACK_KEYS } from './known-stack-keys.js';
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,C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BAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAiB,MAAM,cAAc,CAAC;AACzD,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,WAAW,GAGZ,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Config } from './config.js';
|
|
2
|
+
/** Whether `@ddd-ts-kit/di` assembles the project: on one of its containers, not by hand and not under NestJS. */
|
|
3
|
+
export declare function onKitContainer(config: Config): boolean;
|
|
4
|
+
/** The same question, before a `Config` exists: the choice of `--di` alone. */
|
|
5
|
+
export declare function isKitContainer(di: string): boolean;
|
|
6
|
+
//# sourceMappingURL=kit-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-container.d.ts","sourceRoot":"","sources":["../../src/config/kit-container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC,kHAAkH;AAClH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAElD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const KIT_CONTAINERS = new Set(['tsyringe', 'inversify', 'awilix']);
|
|
2
|
+
/** Whether `@ddd-ts-kit/di` assembles the project: on one of its containers, not by hand and not under NestJS. */
|
|
3
|
+
export function onKitContainer(config) {
|
|
4
|
+
return KIT_CONTAINERS.has(config.stack.di);
|
|
5
|
+
}
|
|
6
|
+
/** The same question, before a `Config` exists: the choice of `--di` alone. */
|
|
7
|
+
export function isKitContainer(di) {
|
|
8
|
+
return KIT_CONTAINERS.has(di);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=kit-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-container.js","sourceRoot":"","sources":["../../src/config/kit-container.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc,GAAwB,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEzF,kHAAkH;AAClH,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,OAAO,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAChC,CAAC"}
|
package/dist/config/stack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const HTTP_STACKS: readonly ['express', 'fastify', 'hono', 'nest', 'none'];
|
|
2
2
|
export declare const VALIDATION_STACKS: readonly ['zod', 'class-validator', 'typebox', 'standard-schema', 'none'];
|
|
3
|
-
export declare const DI_STACKS: readonly ['tsyringe', 'nest', 'manual'];
|
|
3
|
+
export declare const DI_STACKS: readonly ['tsyringe', 'inversify', 'awilix', 'nest', 'manual'];
|
|
4
4
|
export declare const EVENT_STACKS: readonly ['in-memory', 'outbox', 'custom'];
|
|
5
5
|
export declare const ORM_STACKS: readonly ['drizzle', 'knex', 'prisma', 'typeorm', 'custom', 'none'];
|
|
6
6
|
export declare const DATABASE_STACKS: readonly ['postgres', 'mysql', 'sqlite', 'mongodb', 'none'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/config/stack.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,YAAI,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AACnF,eAAO,MAAM,iBAAiB,YAAI,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAU,CAAC;AAC3G,eAAO,MAAM,SAAS,YAAI,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/config/stack.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,YAAI,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AACnF,eAAO,MAAM,iBAAiB,YAAI,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAU,CAAC;AAC3G,eAAO,MAAM,SAAS,YAAI,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AACxF,eAAO,MAAM,YAAY,YAAI,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC;AACvE,eAAO,MAAM,UAAU,YAAI,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAC9F,eAAO,MAAM,eAAe,YAAI,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AAC3F,eAAO,MAAM,WAAW,YAAI,QAAQ,EAAE,MAAM,CAAU,CAAC;AACvD,eAAO,MAAM,QAAQ,YAAI,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC;AACxE,eAAO,MAAM,Y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AM,CAAC,CAAC;IAClD;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC3D;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;IACtD;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;CAC/C"}
|
package/dist/config/stack.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const HTTP_STACKS = ['express', 'fastify', 'hono', 'nest', 'none'];
|
|
2
2
|
export const VALIDATION_STACKS = ['zod', 'class-validator', 'typebox', 'standard-schema', 'none'];
|
|
3
|
-
export const DI_STACKS = ['tsyringe', 'nest', 'manual'];
|
|
3
|
+
export const DI_STACKS = ['tsyringe', 'inversify', 'awilix', 'nest', 'manual'];
|
|
4
4
|
export const EVENT_STACKS = ['in-memory', 'outbox', 'custom'];
|
|
5
5
|
export const ORM_STACKS = ['drizzle', 'knex', 'prisma', 'typeorm', 'custom', 'none'];
|
|
6
6
|
export const DATABASE_STACKS = ['postgres', 'mysql', 'sqlite', 'mongodb', 'none'];
|
package/dist/config/stack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.js","sourceRoot":"","sources":["../../src/config/stack.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AACnF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,CAAU,CAAC;AA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,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAU,CAAC;AAC/D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU,CAAC;AAClD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU,CAAC;AAC3D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU,CAAC;AACpD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAU,CAAC;AAC3D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAC9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAC;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAU,CAAC;AACrE,2GAA2G;AAC3G,MAAM,CAAC,MAAM,UAAU,GAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AACtF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM;IACN,cAAc;IACd,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;CACb,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A file a context holds once, whatever its modules: at the root of the context, named after it,
|
|
3
|
-
* and
|
|
3
|
+
* and still read where 0.86 and 0.87 wrote it, in a role folder, so that `context-layout` moves it.
|
|
4
4
|
*/
|
|
5
5
|
export interface ContextFile {
|
|
6
6
|
/** The file at the root of the context, relative to it: `billing.codes.ts`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** A layout of the declarations an earlier version of the generator wrote,
|
|
1
|
+
/** A layout of the declarations an earlier version of the generator wrote, read so that `docs` moves it. */
|
|
2
2
|
export type EarlierLayout = 'single-file' | 'role-folders';
|
|
3
3
|
/** What a finding, a note or a warning says of a context that keeps an earlier layout. */
|
|
4
4
|
export interface EarlierLayoutNotice {
|
|
@@ -5,7 +5,7 @@ export function earlierLayoutNotice(context, layout) {
|
|
|
5
5
|
? `still keeps all its declarations in ${barrelFile(context)}, the single file the generator wrote up to 0.84`
|
|
6
6
|
: 'still keeps its declarations in one file per role folder (application/commands/commands.declarations.ts), as the generator wrote them in 0.85 and 0.86';
|
|
7
7
|
return {
|
|
8
|
-
message: `"${context}" ${kept}:
|
|
8
|
+
message: `"${context}" ${kept}: a context declares its role files in the <layer>.declarations.ts of each layer now.`,
|
|
9
9
|
fix: `Run \`npx ddd-ts-kit docs\` (or any \`generate\`, or \`npm run dev\`), which writes the <layer>.declarations.ts of each layer${layout === 'role-folders' ? ', deletes those of the role folders' : ''} and rewrites ${barrelFile(context)} as their summary, and commit the result.`,
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earlier-layout-notice.js","sourceRoot":"","sources":["../../src/declared/earlier-layout-notice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,kIAAkI;AAClI,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,MAAqB;IACxE,MAAM,IAAI,GACR,MAAM,KAAK,aAAa;QACtB,CAAC,CAAC,uCAAuC,UAAU,CAAC,OAAO,CAAC,kDAAkD;QAC9G,CAAC,CAAC,wJAAwJ,CAAC;IAE/J,OAAO;QACL,OAAO,EAAE,IAAI,OAAO,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"earlier-layout-notice.js","sourceRoot":"","sources":["../../src/declared/earlier-layout-notice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,kIAAkI;AAClI,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,MAAqB;IACxE,MAAM,IAAI,GACR,MAAM,KAAK,aAAa;QACtB,CAAC,CAAC,uCAAuC,UAAU,CAAC,OAAO,CAAC,kDAAkD;QAC9G,CAAC,CAAC,wJAAwJ,CAAC;IAE/J,OAAO;QACL,OAAO,EAAE,IAAI,OAAO,KAAK,IAAI,uFAAuF;QACpH,GAAG,EAAE,gIAAgI,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,EAAE,iBAAiB,UAAU,CAAC,OAAO,CAAC,2CAA2C;KAC3R,CAAC;AACJ,CAAC"}
|
|
@@ -5,8 +5,7 @@ import { type DeclaredContext } from './context-declarations.js';
|
|
|
5
5
|
* the context is exactly what that generator would write for the role files and constructors of
|
|
6
6
|
* today, and none other is there. `read` gives the text of a file relative to the context. A
|
|
7
7
|
* context whose role files all sit directly in their layer is written the same in both layouts:
|
|
8
|
-
* it keeps none.
|
|
9
|
-
* upgrading the kit fails no gate; a later minor version refuses it.
|
|
8
|
+
* it keeps none. `check` reports it once (`earlierLayoutNotice`) and `docs` moves it.
|
|
10
9
|
*/
|
|
11
10
|
export declare function keepsRoleFolderFiles(declared: DeclaredContext, read: (entry: string) => string | undefined): boolean;
|
|
12
11
|
//# sourceMappingURL=keeps-role-folder-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keeps-role-folder-files.d.ts","sourceRoot":"","sources":["../../src/declared/keeps-role-folder-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAOnF
|
|
1
|
+
{"version":3,"file":"keeps-role-folder-files.d.ts","sourceRoot":"","sources":["../../src/declared/keeps-role-folder-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAOnF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GAAG,OAAO,CAYpH"}
|
|
@@ -10,8 +10,7 @@ const NOTHING_DECLARED = 'export {};\n';
|
|
|
10
10
|
* the context is exactly what that generator would write for the role files and constructors of
|
|
11
11
|
* today, and none other is there. `read` gives the text of a file relative to the context. A
|
|
12
12
|
* context whose role files all sit directly in their layer is written the same in both layouts:
|
|
13
|
-
* it keeps none.
|
|
14
|
-
* upgrading the kit fails no gate; a later minor version refuses it.
|
|
13
|
+
* it keeps none. `check` reports it once (`earlierLayoutNotice`) and `docs` moves it.
|
|
15
14
|
*/
|
|
16
15
|
export function keepsRoleFolderFiles(declared, read) {
|
|
17
16
|
const { context, entries, modules } = declared;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keeps-role-folder-files.js","sourceRoot":"","sources":["../../src/declared/keeps-role-folder-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAwB,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,+GAA+G;AAC/G,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"keeps-role-folder-files.js","sourceRoot":"","sources":["../../src/declared/keeps-role-folder-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAwB,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,+GAA+G;AAC/G,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAyB,EAAE,IAA2C;IACzG,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IAC/C,MAAM,EAAE,KAAK,EAAE,GAAG,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAE/D,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,gBAAgB,IAAI,SAAS,CAAC,KAAK,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QACjH,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC1F,CAAC,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,QAAQ,CAAC,CAC5F,CAAC;AACJ,CAAC"}
|
|
@@ -2,9 +2,8 @@ import type { DeclaredContext } from './context-declarations.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* True while a context keeps its declarations in the single file the generator wrote up to 0.84:
|
|
4
4
|
* no role folder holds a declarations file yet, and `<context>.declarations.ts` (`written`) is
|
|
5
|
-
* exactly what that generator would write for the role files and constructors of today.
|
|
6
|
-
*
|
|
7
|
-
* a later minor version refuses it. A single file that is itself stale, or a context half moved,
|
|
5
|
+
* exactly what that generator would write for the role files and constructors of today. `check`
|
|
6
|
+
* reports it once (`earlierLayoutNotice`) and `docs` moves it. A single file that is itself stale, or a context half moved,
|
|
8
7
|
* is not this case.
|
|
9
8
|
*/
|
|
10
9
|
export declare function keepsSingleFile(declared: DeclaredContext, written: string | undefined): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keeps-single-file.d.ts","sourceRoot":"","sources":["../../src/declared/keeps-single-file.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAO9D
|
|
1
|
+
{"version":3,"file":"keeps-single-file.d.ts","sourceRoot":"","sources":["../../src/declared/keeps-single-file.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAO9D;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAW/F"}
|
|
@@ -6,9 +6,8 @@ const NOTHING_DECLARED = 'export {};\n';
|
|
|
6
6
|
/**
|
|
7
7
|
* True while a context keeps its declarations in the single file the generator wrote up to 0.84:
|
|
8
8
|
* no role folder holds a declarations file yet, and `<context>.declarations.ts` (`written`) is
|
|
9
|
-
* exactly what that generator would write for the role files and constructors of today.
|
|
10
|
-
*
|
|
11
|
-
* a later minor version refuses it. A single file that is itself stale, or a context half moved,
|
|
9
|
+
* exactly what that generator would write for the role files and constructors of today. `check`
|
|
10
|
+
* reports it once (`earlierLayoutNotice`) and `docs` moves it. A single file that is itself stale, or a context half moved,
|
|
12
11
|
* is not this case.
|
|
13
12
|
*/
|
|
14
13
|
export function keepsSingleFile(declared, written) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keeps-single-file.js","sourceRoot":"","sources":["../../src/declared/keeps-single-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,8GAA8G;AAC9G,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"keeps-single-file.js","sourceRoot":"","sources":["../../src/declared/keeps-single-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,8GAA8G;AAC9G,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,QAAyB,EAAE,OAA2B;IACpF,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IAC/C,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,UAAU,CAAC,OAAO,CAAC,IAAI,kBAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAErH,IAAI,OAAO,KAAK,SAAS,IAAI,MAAM,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,MAAM,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAEhD,OAAO,MAAM,KAAK,gBAAgB,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,MAAM,CAAC;AACpF,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* `unit/calendars/not-banned.guard.spec.ts` reads `Not banned (guard), in calendars`: the heading of a spec that fits
|
|
3
|
+
* no use case, model nor reaction, in words as a part of the model is headed. The directory its section is named after
|
|
4
|
+
* is not repeated; a module folder below it is.
|
|
5
|
+
*/
|
|
2
6
|
export declare function specHeading(file: string): string;
|
|
3
7
|
//# sourceMappingURL=spec-heading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-heading.d.ts","sourceRoot":"","sources":["../../src/docs/spec-heading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spec-heading.d.ts","sourceRoot":"","sources":["../../src/docs/spec-heading.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMhD"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { ownEntry } from '../config/values/own-entry.js';
|
|
2
|
+
import { toName } from '../naming/index.js';
|
|
2
3
|
import { specSubject } from './spec-subject.js';
|
|
3
4
|
import { SPEC_ROLES } from './spec-roles.js';
|
|
4
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* `unit/calendars/not-banned.guard.spec.ts` reads `Not banned (guard), in calendars`: the heading of a spec that fits
|
|
7
|
+
* no use case, model nor reaction, in words as a part of the model is headed. The directory its section is named after
|
|
8
|
+
* is not repeated; a module folder below it is.
|
|
9
|
+
*/
|
|
5
10
|
export function specHeading(file) {
|
|
6
11
|
const { subject, role, folder } = specSubject(file);
|
|
7
12
|
const word = role === undefined ? undefined : ownEntry(SPEC_ROLES, role);
|
|
8
|
-
|
|
13
|
+
const module = folder.split('/').slice(1).join('/');
|
|
14
|
+
return `${toName(subject).title}${word === undefined ? '' : ` (${word})`}${module === '' ? '' : `, in ${module}`}`;
|
|
9
15
|
}
|
|
10
16
|
//# sourceMappingURL=spec-heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-heading.js","sourceRoot":"","sources":["../../src/docs/spec-heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"spec-heading.js","sourceRoot":"","sources":["../../src/docs/spec-heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,IAAI,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEpD,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,GAAG,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,MAAM,EAAE,EAAE,CAAC;AACrH,CAAC"}
|
|
@@ -102,6 +102,9 @@ function hookFixesOf(findings) {
|
|
|
102
102
|
if (hooks.some((finding) => finding.name === 'lefthook.yml')) {
|
|
103
103
|
fixes.push('fix: `npx ddd-ts-kit init` writes lefthook.yml; then `npm run hooks:install`.');
|
|
104
104
|
}
|
|
105
|
+
if (hooks.some((finding) => finding.name === 'git repository')) {
|
|
106
|
+
fixes.push('fix: `git init`, then `npm run hooks:install` installs the hooks of lefthook.yml in the new repository.');
|
|
107
|
+
}
|
|
105
108
|
if (hooks.some((finding) => finding.name === 'pre-commit')) {
|
|
106
109
|
fixes.push('fix: `npm run hooks:install` installs the hooks of lefthook.yml in this clone, once: every worktree of the repository shares them.');
|
|
107
110
|
}
|