ddd-ts-kit 0.1.1 → 0.2.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/README.md +81 -21
- package/dist/alias/compiler-resolution-of.d.ts +10 -0
- package/dist/alias/compiler-resolution-of.d.ts.map +1 -0
- package/dist/alias/compiler-resolution-of.js +13 -0
- package/dist/alias/compiler-resolution-of.js.map +1 -0
- package/dist/alias/compiler-resolution.d.ts +8 -0
- package/dist/alias/compiler-resolution.d.ts.map +1 -0
- package/dist/alias/compiler-resolution.js +2 -0
- package/dist/alias/compiler-resolution.js.map +1 -0
- package/dist/alias/index.d.ts +3 -1
- package/dist/alias/index.d.ts.map +1 -1
- package/dist/alias/index.js +3 -1
- package/dist/alias/index.js.map +1 -1
- package/dist/alias/module-name-mapper.d.ts +4 -3
- package/dist/alias/module-name-mapper.d.ts.map +1 -1
- package/dist/alias/module-name-mapper.js +6 -4
- package/dist/alias/module-name-mapper.js.map +1 -1
- package/dist/alias/specifier-of.d.ts +7 -0
- package/dist/alias/specifier-of.d.ts.map +1 -0
- package/dist/alias/specifier-of.js +17 -0
- package/dist/alias/specifier-of.js.map +1 -0
- package/dist/alias/specifier-suffix.d.ts +6 -0
- package/dist/alias/specifier-suffix.d.ts.map +1 -0
- package/dist/alias/specifier-suffix.js +8 -0
- package/dist/alias/specifier-suffix.js.map +1 -0
- package/dist/alias/to-alias.d.ts +3 -2
- package/dist/alias/to-alias.d.ts.map +1 -1
- package/dist/alias/to-alias.js +4 -3
- package/dist/alias/to-alias.js.map +1 -1
- package/dist/build/emitted-place.d.ts +2 -0
- package/dist/build/emitted-place.d.ts.map +1 -1
- package/dist/build/emitted-specifier.d.ts +3 -2
- package/dist/build/emitted-specifier.d.ts.map +1 -1
- package/dist/build/emitted-specifier.js +6 -12
- package/dist/build/emitted-specifier.js.map +1 -1
- package/dist/build/emitted-target.d.ts +9 -0
- package/dist/build/emitted-target.d.ts.map +1 -0
- package/dist/build/emitted-target.js +18 -0
- package/dist/build/emitted-target.js.map +1 -0
- package/dist/build/rewrite-aliases.d.ts +5 -3
- package/dist/build/rewrite-aliases.d.ts.map +1 -1
- package/dist/build/rewrite-aliases.js +12 -7
- package/dist/build/rewrite-aliases.js.map +1 -1
- package/dist/build/rewrite-specifiers.d.ts +3 -1
- package/dist/build/rewrite-specifiers.d.ts.map +1 -1
- package/dist/build/rewrite-specifiers.js +2 -2
- package/dist/build/rewrite-specifiers.js.map +1 -1
- package/dist/build/unresolved-problem.d.ts +4 -0
- package/dist/build/unresolved-problem.d.ts.map +1 -0
- package/dist/build/unresolved-problem.js +16 -0
- package/dist/build/unresolved-problem.js.map +1 -0
- package/dist/check/alias/compiler-resolution.d.ts +10 -0
- package/dist/check/alias/compiler-resolution.d.ts.map +1 -0
- package/dist/check/alias/compiler-resolution.js +47 -0
- package/dist/check/alias/compiler-resolution.js.map +1 -0
- package/dist/check/alias/test-runners.js +4 -4
- package/dist/check/alias/test-runners.js.map +1 -1
- package/dist/check/canonical/roles.d.ts.map +1 -1
- package/dist/check/canonical/roles.js +6 -0
- package/dist/check/canonical/roles.js.map +1 -1
- 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/configuration/config-inspection.d.ts +2 -0
- package/dist/check/configuration/config-inspection.d.ts.map +1 -1
- package/dist/check/configuration/config-inspection.js +11 -1
- package/dist/check/configuration/config-inspection.js.map +1 -1
- package/dist/check/declarations/classes-of.js +1 -1
- package/dist/check/declarations/classes-of.js.map +1 -1
- package/dist/check/explain/context-docs.js +7 -7
- package/dist/check/explain/context-docs.js.map +1 -1
- package/dist/check/explain/imports-docs.d.ts.map +1 -1
- package/dist/check/explain/imports-docs.js +24 -9
- package/dist/check/explain/imports-docs.js.map +1 -1
- package/dist/check/explain/layer-docs.js +7 -7
- package/dist/check/explain/layer-docs.js.map +1 -1
- package/dist/check/explain/ports-docs.d.ts.map +1 -1
- package/dist/check/explain/ports-docs.js +15 -7
- package/dist/check/explain/ports-docs.js.map +1 -1
- package/dist/check/explain/scheduling-docs.js +1 -1
- package/dist/check/explain/wiring-docs.d.ts.map +1 -1
- package/dist/check/explain/wiring-docs.js +35 -10
- package/dist/check/explain/wiring-docs.js.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js +32 -1
- package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/config-fixtures.js +6 -0
- package/dist/check/fixtures/config-fixtures.js.map +1 -1
- package/dist/check/fixtures/constructor-injection-fixtures.d.ts +3 -0
- package/dist/check/fixtures/constructor-injection-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/constructor-injection-fixtures.js +111 -0
- package/dist/check/fixtures/constructor-injection-fixtures.js.map +1 -0
- package/dist/check/fixtures/declared-project.d.ts.map +1 -1
- package/dist/check/fixtures/declared-project.js +4 -1
- package/dist/check/fixtures/declared-project.js.map +1 -1
- package/dist/check/fixtures/extension-fixtures.d.ts +3 -0
- package/dist/check/fixtures/extension-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/extension-fixtures.js +77 -0
- package/dist/check/fixtures/extension-fixtures.js.map +1 -0
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +4 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/signature-project.d.ts +11 -0
- package/dist/check/fixtures/signature-project.d.ts.map +1 -0
- package/dist/check/fixtures/signature-project.js +21 -0
- package/dist/check/fixtures/signature-project.js.map +1 -0
- package/dist/check/fixtures/signature.d.ts +13 -0
- package/dist/check/fixtures/signature.d.ts.map +1 -0
- package/dist/check/fixtures/signature.js +24 -0
- package/dist/check/fixtures/signature.js.map +1 -0
- package/dist/check/project/beside-the-sources.d.ts +5 -0
- package/dist/check/project/beside-the-sources.d.ts.map +1 -0
- package/dist/check/project/beside-the-sources.js +21 -0
- package/dist/check/project/beside-the-sources.js.map +1 -0
- package/dist/check/project/resolve-import.d.ts.map +1 -1
- package/dist/check/project/resolve-import.js +4 -1
- package/dist/check/project/resolve-import.js.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.js +14 -8
- package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +2 -1
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +34 -32
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.d.ts +3 -0
- package/dist/check/rules/declarations-constructor-injection.d.ts.map +1 -0
- package/dist/check/rules/declarations-constructor-injection.js +58 -0
- package/dist/check/rules/declarations-constructor-injection.js.map +1 -0
- package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-declared.js +3 -1
- package/dist/check/rules/imports-alias-declared.js.map +1 -1
- package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-only.js +16 -29
- package/dist/check/rules/imports-alias-only.js.map +1 -1
- package/dist/check/rules/imports-extension.d.ts +3 -0
- package/dist/check/rules/imports-extension.d.ts.map +1 -0
- package/dist/check/rules/imports-extension.js +65 -0
- package/dist/check/rules/imports-extension.js.map +1 -0
- package/dist/check/rules/ports-no-concrete-dependency.d.ts.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.js +43 -15
- package/dist/check/rules/ports-no-concrete-dependency.js.map +1 -1
- package/dist/check/rules/tree-closed.js +6 -4
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/commands/build-aliases.d.ts.map +1 -1
- package/dist/commands/build-aliases.js +5 -3
- package/dist/commands/build-aliases.js.map +1 -1
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +17 -2
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +5 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commit/is-derived.d.ts.map +1 -1
- package/dist/commit/is-derived.js +5 -2
- package/dist/commit/is-derived.js.map +1 -1
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/default-import-extension.d.ts +3 -0
- package/dist/config/default-import-extension.d.ts.map +1 -0
- package/dist/config/default-import-extension.js +3 -0
- package/dist/config/default-import-extension.js.map +1 -0
- package/dist/config/import-extensions.d.ts +3 -0
- package/dist/config/import-extensions.d.ts.map +1 -0
- package/dist/config/import-extensions.js +3 -0
- package/dist/config/import-extensions.js.map +1 -0
- package/dist/config/index.d.ts +4 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +4 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/parse-config.d.ts.map +1 -1
- package/dist/config/parse-config.js +2 -0
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/parse-stack.d.ts.map +1 -1
- package/dist/config/parse-stack.js +2 -1
- package/dist/config/parse-stack.js.map +1 -1
- package/dist/config/restack-config-text.d.ts +11 -0
- package/dist/config/restack-config-text.d.ts.map +1 -0
- package/dist/config/restack-config-text.js +31 -0
- package/dist/config/restack-config-text.js.map +1 -0
- package/dist/config/serialize-config.d.ts.map +1 -1
- package/dist/config/serialize-config.js +3 -6
- package/dist/config/serialize-config.js.map +1 -1
- package/dist/config/stack.d.ts +8 -0
- package/dist/config/stack.d.ts.map +1 -1
- package/dist/config/stack.js +1 -0
- package/dist/config/stack.js.map +1 -1
- package/dist/config/unwritten-import-extension.d.ts +3 -0
- package/dist/config/unwritten-import-extension.d.ts.map +1 -0
- package/dist/config/unwritten-import-extension.js +3 -0
- package/dist/config/unwritten-import-extension.js.map +1 -0
- package/dist/config/written-stack.d.ts +8 -0
- package/dist/config/written-stack.d.ts.map +1 -0
- package/dist/config/written-stack.js +10 -0
- package/dist/config/written-stack.js.map +1 -0
- package/dist/declared/declared-role.d.ts.map +1 -1
- package/dist/declared/declared-role.js +1 -0
- package/dist/declared/declared-role.js.map +1 -1
- package/dist/declared/dependencies-file.d.ts +7 -0
- package/dist/declared/dependencies-file.d.ts.map +1 -0
- package/dist/declared/dependencies-file.js +9 -0
- package/dist/declared/dependencies-file.js.map +1 -0
- package/dist/declared/generated-drift.d.ts +7 -0
- package/dist/declared/generated-drift.d.ts.map +1 -0
- package/dist/declared/generated-drift.js +47 -0
- package/dist/declared/generated-drift.js.map +1 -0
- package/dist/declared/index.d.ts +8 -1
- package/dist/declared/index.d.ts.map +1 -1
- package/dist/declared/index.js +6 -1
- package/dist/declared/index.js.map +1 -1
- package/dist/declared/injection/class-injection.d.ts +19 -0
- package/dist/declared/injection/class-injection.d.ts.map +1 -0
- package/dist/declared/injection/class-injection.js +2 -0
- package/dist/declared/injection/class-injection.js.map +1 -0
- package/dist/declared/injection/constructor-of.d.ts +16 -0
- package/dist/declared/injection/constructor-of.d.ts.map +1 -0
- package/dist/declared/injection/constructor-of.js +33 -0
- package/dist/declared/injection/constructor-of.js.map +1 -0
- package/dist/declared/injection/context-injections.d.ts +8 -0
- package/dist/declared/injection/context-injections.d.ts.map +1 -0
- package/dist/declared/injection/context-injections.js +14 -0
- package/dist/declared/injection/context-injections.js.map +1 -0
- package/dist/declared/injection/declared-kind-of.d.ts +8 -0
- package/dist/declared/injection/declared-kind-of.d.ts.map +1 -0
- package/dist/declared/injection/declared-kind-of.js +12 -0
- package/dist/declared/injection/declared-kind-of.js.map +1 -0
- package/dist/declared/injection/exported-name-of.d.ts +4 -0
- package/dist/declared/injection/exported-name-of.d.ts.map +1 -0
- package/dist/declared/injection/exported-name-of.js +17 -0
- package/dist/declared/injection/exported-name-of.js.map +1 -0
- package/dist/declared/injection/language-types.d.ts +3 -0
- package/dist/declared/injection/language-types.d.ts.map +1 -0
- package/dist/declared/injection/language-types.js +32 -0
- package/dist/declared/injection/language-types.js.map +1 -0
- package/dist/declared/injection/local-names.d.ts +17 -0
- package/dist/declared/injection/local-names.d.ts.map +1 -0
- package/dist/declared/injection/local-names.js +41 -0
- package/dist/declared/injection/local-names.js.map +1 -0
- package/dist/declared/injection/parameter-shape.d.ts +11 -0
- package/dist/declared/injection/parameter-shape.d.ts.map +1 -0
- package/dist/declared/injection/parameter-shape.js +58 -0
- package/dist/declared/injection/parameter-shape.js.map +1 -0
- package/dist/declared/injection/raw-class-name.d.ts +7 -0
- package/dist/declared/injection/raw-class-name.d.ts.map +1 -0
- package/dist/declared/injection/raw-class-name.js +28 -0
- package/dist/declared/injection/raw-class-name.js.map +1 -0
- package/dist/declared/injection/read-constructor.d.ts +10 -0
- package/dist/declared/injection/read-constructor.d.ts.map +1 -0
- package/dist/declared/injection/read-constructor.js +2 -0
- package/dist/declared/injection/read-constructor.js.map +1 -0
- package/dist/declared/injection/read-injections.d.ts +6 -0
- package/dist/declared/injection/read-injections.d.ts.map +1 -0
- package/dist/declared/injection/read-injections.js +75 -0
- package/dist/declared/injection/read-injections.js.map +1 -0
- package/dist/declared/injection/render-injections.d.ts +11 -0
- package/dist/declared/injection/render-injections.d.ts.map +1 -0
- package/dist/declared/injection/render-injections.js +51 -0
- package/dist/declared/injection/render-injections.js.map +1 -0
- package/dist/declared/injection/rendered-injections.d.ts +8 -0
- package/dist/declared/injection/rendered-injections.d.ts.map +1 -0
- package/dist/declared/injection/rendered-injections.js +2 -0
- package/dist/declared/injection/rendered-injections.js.map +1 -0
- package/dist/declared/injection/resolve-token.d.ts +18 -0
- package/dist/declared/injection/resolve-token.d.ts.map +1 -0
- package/dist/declared/injection/resolve-token.js +46 -0
- package/dist/declared/injection/resolve-token.js.map +1 -0
- package/dist/declared/injection/resolved-token.d.ts +10 -0
- package/dist/declared/injection/resolved-token.d.ts.map +1 -0
- package/dist/declared/injection/resolved-token.js +2 -0
- package/dist/declared/injection/resolved-token.js.map +1 -0
- package/dist/declared/injection/sources.d.ts +4 -0
- package/dist/declared/injection/sources.d.ts.map +1 -0
- package/dist/declared/injection/sources.js +2 -0
- package/dist/declared/injection/sources.js.map +1 -0
- package/dist/declared/injection/token-reference.d.ts +14 -0
- package/dist/declared/injection/token-reference.d.ts.map +1 -0
- package/dist/declared/injection/token-reference.js +2 -0
- package/dist/declared/injection/token-reference.js.map +1 -0
- package/dist/declared/render-barrel.d.ts +8 -5
- package/dist/declared/render-barrel.d.ts.map +1 -1
- package/dist/declared/render-barrel.js +13 -6
- package/dist/declared/render-barrel.js.map +1 -1
- package/dist/declared/render-dependencies-file.d.ts +8 -0
- package/dist/declared/render-dependencies-file.d.ts.map +1 -0
- package/dist/declared/render-dependencies-file.js +12 -0
- package/dist/declared/render-dependencies-file.js.map +1 -0
- package/dist/depcruise/hygiene-rules.js +2 -1
- package/dist/depcruise/hygiene-rules.js.map +1 -1
- package/dist/describe/context-description.d.ts +10 -0
- package/dist/describe/context-description.d.ts.map +1 -1
- package/dist/describe/describe-context.d.ts.map +1 -1
- package/dist/describe/describe-context.js +2 -0
- package/dist/describe/describe-context.js.map +1 -1
- package/dist/describe/format-description.d.ts.map +1 -1
- package/dist/describe/format-description.js +4 -0
- package/dist/describe/format-description.js.map +1 -1
- package/dist/describe/read-projections.d.ts +5 -0
- package/dist/describe/read-projections.d.ts.map +1 -0
- package/dist/describe/read-projections.js +19 -0
- package/dist/describe/read-projections.js.map +1 -0
- package/dist/describe/reference-lines.js +9 -0
- package/dist/describe/reference-lines.js.map +1 -1
- package/dist/dev/refresh-declarations.d.ts +9 -0
- package/dist/dev/refresh-declarations.d.ts.map +1 -0
- package/dist/dev/refresh-declarations.js +28 -0
- package/dist/dev/refresh-declarations.js.map +1 -0
- package/dist/generate/access-vars.js +3 -3
- package/dist/generate/access-vars.js.map +1 -1
- package/dist/generate/kinds/context-plan.d.ts +10 -0
- package/dist/generate/kinds/context-plan.d.ts.map +1 -0
- package/dist/generate/kinds/context-plan.js +2 -0
- package/dist/generate/kinds/context-plan.js.map +1 -0
- package/dist/generate/kinds/declare-context-entries.d.ts +3 -1
- package/dist/generate/kinds/declare-context-entries.d.ts.map +1 -1
- package/dist/generate/kinds/declare-context-entries.js +4 -2
- package/dist/generate/kinds/declare-context-entries.js.map +1 -1
- package/dist/generate/kinds/extraction/service-selection.js +8 -11
- package/dist/generate/kinds/extraction/service-selection.js.map +1 -1
- package/dist/generate/kinds/job/job-vars.d.ts.map +1 -1
- package/dist/generate/kinds/job/job-vars.js +5 -3
- package/dist/generate/kinds/job/job-vars.js.map +1 -1
- package/dist/generate/kinds/plan-vars.d.ts +5 -0
- package/dist/generate/kinds/plan-vars.d.ts.map +1 -0
- package/dist/generate/kinds/plan-vars.js +24 -0
- package/dist/generate/kinds/plan-vars.js.map +1 -0
- package/dist/generate/kinds/projection-kind.d.ts +3 -0
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -0
- package/dist/generate/kinds/projection-kind.js +72 -0
- package/dist/generate/kinds/projection-kind.js.map +1 -0
- package/dist/generate/kinds/publish-in-index.js +2 -2
- package/dist/generate/kinds/publish-in-index.js.map +1 -1
- package/dist/generate/kinds/route/route-vars.d.ts.map +1 -1
- package/dist/generate/kinds/route/route-vars.js +7 -6
- package/dist/generate/kinds/route/route-vars.js.map +1 -1
- package/dist/generate/kinds/wire-context.d.ts +10 -0
- package/dist/generate/kinds/wire-context.d.ts.map +1 -0
- package/dist/generate/kinds/wire-context.js +36 -0
- package/dist/generate/kinds/wire-context.js.map +1 -0
- package/dist/generate/kinds/write-context-files.d.ts +1 -8
- package/dist/generate/kinds/write-context-files.d.ts.map +1 -1
- package/dist/generate/kinds/write-context-files.js +3 -40
- package/dist/generate/kinds/write-context-files.js.map +1 -1
- 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/refresh-barrels.d.ts +4 -3
- package/dist/generate/refresh-barrels.d.ts.map +1 -1
- package/dist/generate/refresh-barrels.js +41 -16
- package/dist/generate/refresh-barrels.js.map +1 -1
- package/dist/generate/spec-vars.js +4 -4
- package/dist/generate/spec-vars.js.map +1 -1
- package/dist/generate/storage-vars.d.ts +2 -2
- package/dist/generate/storage-vars.d.ts.map +1 -1
- package/dist/generate/storage-vars.js +6 -10
- package/dist/generate/storage-vars.js.map +1 -1
- package/dist/generate/workspace-sources.d.ts +6 -0
- package/dist/generate/workspace-sources.d.ts.map +1 -0
- package/dist/generate/workspace-sources.js +13 -0
- package/dist/generate/workspace-sources.js.map +1 -0
- package/dist/init/manifest/scripts-for.js +6 -1
- package/dist/init/manifest/scripts-for.js.map +1 -1
- package/dist/init/manifest/versions.js +23 -23
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +32 -3
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/recorded-options.d.ts +11 -0
- package/dist/init/stack/recorded-options.d.ts.map +1 -0
- package/dist/init/stack/recorded-options.js +19 -0
- package/dist/init/stack/recorded-options.js.map +1 -0
- package/dist/init/stack/resolve-stack.d.ts +6 -1
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +46 -9
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/stack/resolve-style.d.ts +3 -5
- package/dist/init/stack/resolve-style.d.ts.map +1 -1
- package/dist/init/stack/resolve-style.js +11 -3
- package/dist/init/stack/resolve-style.js.map +1 -1
- package/dist/init/stack/stack-options.d.ts +3 -0
- package/dist/init/stack/stack-options.d.ts.map +1 -1
- package/dist/init/write-agent-settings.js +4 -3
- package/dist/init/write-agent-settings.js.map +1 -1
- package/dist/init/write-type-script-configs.d.ts +2 -1
- package/dist/init/write-type-script-configs.d.ts.map +1 -1
- package/dist/init/write-type-script-configs.js +4 -4
- package/dist/init/write-type-script-configs.js.map +1 -1
- package/dist/refresh-declarations.d.ts +3 -0
- package/dist/refresh-declarations.d.ts.map +1 -0
- package/dist/refresh-declarations.js +4 -0
- package/dist/refresh-declarations.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/stack/alias-vars.d.ts +2 -1
- package/dist/stack/alias-vars.d.ts.map +1 -1
- package/dist/stack/alias-vars.js +6 -3
- package/dist/stack/alias-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/templates/acl/translator.spec.ts.tpl +1 -1
- package/templates/adapter/adapter.declared.ts.tpl +3 -3
- package/templates/adapter/adapter.spec.ts.tpl +1 -1
- package/templates/adapter/adapter.ts.tpl +1 -1
- package/templates/adapter/wiring.tsyringe.tpl +3 -3
- package/templates/aggregate/aggregate.spec.ts.tpl +2 -2
- package/templates/architecture/extractable.declared.spec.ts.tpl +1 -1
- package/templates/architecture/extractable.manual.spec.ts.tpl +4 -4
- package/templates/architecture/extractable.tsyringe.spec.ts.tpl +1 -1
- package/templates/architecture/wiring.declared.tpl +1 -1
- package/templates/architecture/wiring.manual.tpl +1 -1
- package/templates/architecture/wiring.tsyringe.tpl +1 -1
- package/templates/builder/builder.ts.tpl +1 -1
- package/templates/command/handler.declared.ts.tpl +7 -7
- package/templates/command/handler.spec.buses.ts.tpl +4 -4
- package/templates/command/handler.spec.tsyringe.ts.tpl +5 -5
- package/templates/command/handler.ts.tpl +4 -4
- package/templates/command/wiring.manual.tpl +2 -2
- package/templates/command/wiring.tsyringe.tpl +3 -3
- package/templates/context/module.manual.ts.tpl +1 -1
- package/templates/context/permission-set.tpl +1 -1
- package/templates/context/permissions.spec.ts.tpl +1 -1
- package/templates/context/routes.spec.ts.tpl +1 -1
- package/templates/context/wiring.declared.tpl +2 -2
- package/templates/context/wiring.manual.tpl +1 -1
- package/templates/context/wiring.tsyringe.tpl +2 -2
- package/templates/domain-error/domain-error.spec.ts.tpl +1 -1
- package/templates/domain-event/domain-event.spec.ts.tpl +1 -1
- package/templates/domain-service/domain-service.spec.ts.tpl +1 -1
- package/templates/e2e/e2e.spec.ts.tpl +2 -2
- package/templates/entity/entity.spec.ts.tpl +1 -1
- package/templates/event-handler/event-handler.declared.ts.tpl +3 -3
- package/templates/event-handler/event-handler.spec.ts.tpl +2 -2
- package/templates/event-handler/event-handler.ts.tpl +1 -1
- package/templates/event-handler/wiring.manual.tpl +2 -2
- package/templates/event-handler/wiring.tsyringe.tpl +2 -2
- package/templates/gateway/adapter.declared.ts.tpl +3 -3
- package/templates/gateway/adapter.ts.tpl +2 -2
- package/templates/gateway/contract.spec.ts.tpl +3 -3
- package/templates/gateway/fake.ts.tpl +1 -1
- package/templates/gateway/platform-test.declared.tpl +1 -1
- package/templates/gateway/platform.declared.tpl +1 -1
- package/templates/gateway/wiring.tsyringe.tpl +3 -3
- package/templates/init/CLAUDE.md.tpl +5 -2
- package/templates/init/README.md.tpl +15 -10
- package/templates/init/e2e/create-credentials.jwt.ts.tpl +1 -1
- package/templates/init/e2e/create-credentials.keycloak.ts.tpl +1 -1
- package/templates/init/e2e/create-credentials.none.ts.tpl +2 -2
- package/templates/init/e2e/start-application.database.ts.tpl +16 -16
- package/templates/init/e2e/start-application.memory.ts.tpl +16 -16
- package/templates/init/e2e/test-environment.ts.tpl +1 -1
- package/templates/init/main.ts.tpl +11 -11
- package/templates/init/platform/audit/audit.module.manual.ts.tpl +5 -5
- package/templates/init/platform/audit/audit.module.tsyringe.ts.tpl +4 -4
- package/templates/init/platform/audit/create-audit.ts.tpl +5 -5
- package/templates/init/platform/audit/search-audit-entries.handler.ts.tpl +1 -1
- package/templates/init/platform/audit/search-audit-entries.route.ts.tpl +1 -1
- package/templates/init/platform/auth/authorization.tsyringe.ts.tpl +2 -2
- package/templates/init/platform/auth/create-authenticator.jwt.ts.tpl +1 -1
- package/templates/init/platform/auth/create-authenticator.keycloak.ts.tpl +1 -1
- package/templates/init/platform/auth/create-authenticator.none.ts.tpl +2 -2
- package/templates/init/platform/auth/create-authorizer.abac.ts.tpl +1 -1
- package/templates/init/platform/auth/create-authorizer.custom.ts.tpl +2 -2
- package/templates/init/platform/auth/create-authorizer.rbac.ts.tpl +1 -1
- package/templates/init/platform/auth/create-authorizer.rebac.ts.tpl +3 -3
- package/templates/init/platform/auth/create-tuple-store.contract.spec.ts.tpl +1 -1
- package/templates/init/platform/auth/custom-authorizer.contract.spec.ts.tpl +1 -1
- package/templates/init/platform/auth/http-boundary.ts.tpl +1 -1
- package/templates/init/platform/auth/permission-mapping.ts.tpl +1 -1
- package/templates/init/platform/auth/permissions.ts.tpl +1 -1
- package/templates/init/platform/auth/principal-of.none.ts.tpl +1 -1
- package/templates/init/platform/auth/relate-system-actors.ts.tpl +1 -1
- package/templates/init/platform/auth/relation-tuples.ts.tpl +2 -2
- package/templates/init/platform/auth/security-schemes.none.ts.tpl +1 -1
- package/templates/init/platform/buses/create-command-bus.ts.tpl +2 -2
- package/templates/init/platform/buses/create-query-bus.ts.tpl +1 -1
- package/templates/init/platform/compose-application.manual.ts.tpl +6 -6
- package/templates/init/platform/compose-application.tsyringe.ts.tpl +10 -10
- package/templates/init/platform/config/app-config.ts.tpl +2 -2
- package/templates/init/platform/config/load-config.ts.tpl +3 -3
- package/templates/init/platform/create-platform.manual.ts.tpl +16 -16
- package/templates/init/platform/database/create-client.prisma.ts.tpl +1 -1
- package/templates/init/platform/database/create-data-source.typeorm.ts.tpl +1 -1
- package/templates/init/platform/database/data-source.typeorm.ts.tpl +1 -1
- package/templates/init/platform/database/database.drizzle.ts.tpl +1 -1
- package/templates/init/platform/database/database.prisma.ts.tpl +2 -2
- package/templates/init/platform/database/inert-persistence.memory.ts.tpl +2 -2
- package/templates/init/platform/database/inert-persistence.pooled.ts.tpl +2 -2
- package/templates/init/platform/database/inert-persistence.prisma.ts.tpl +3 -3
- package/templates/init/platform/database/inert-persistence.typeorm.ts.tpl +3 -3
- package/templates/init/platform/database/open-persistence.contract.spec.ts.tpl +1 -1
- package/templates/init/platform/database/open-persistence.memory.ts.tpl +1 -1
- package/templates/init/platform/database/open-persistence.pooled.ts.tpl +3 -3
- package/templates/init/platform/database/open-persistence.prisma.ts.tpl +3 -3
- package/templates/init/platform/database/open-persistence.typeorm.ts.tpl +3 -3
- package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +4 -4
- package/templates/init/platform/database/open-test-database.knex.ts.tpl +5 -5
- package/templates/init/platform/database/open-test-database.prisma.ts.tpl +4 -4
- package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +3 -3
- package/templates/init/platform/database/persistence-over.drizzle.ts.tpl +2 -2
- package/templates/init/platform/database/persistence-over.knex.ts.tpl +2 -2
- package/templates/init/platform/database/persistence-over.prisma.ts.tpl +2 -2
- package/templates/init/platform/database/persistence-over.typeorm.ts.tpl +2 -2
- package/templates/init/platform/database/persistence.orm.ts.tpl +1 -1
- package/templates/init/platform/errors.ts.tpl +1 -1
- package/templates/init/platform/events/create-event-provider.custom.ts.tpl +2 -2
- package/templates/init/platform/events/create-event-provider.kafka.ts.tpl +3 -3
- package/templates/init/platform/events/create-event-provider.nats.ts.tpl +2 -2
- package/templates/init/platform/events/create-event-provider.rabbitmq.ts.tpl +2 -2
- package/templates/init/platform/events/create-event-provider.redis.ts.tpl +2 -2
- package/templates/init/platform/events/custom-event-bus.contract.spec.ts.tpl +1 -1
- package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
- package/templates/init/platform/events/start-outbox-relay.ts.tpl +1 -1
- package/templates/init/platform/http/create-app-module.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -4
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +4 -4
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +5 -5
- package/templates/init/platform/http/with-documentation.ts.tpl +2 -2
- package/templates/init/platform/lay-foundations.tsyringe.ts.tpl +5 -5
- package/templates/init/platform/platform-test.module.tsyringe.ts.tpl +1 -1
- package/templates/init/platform/platform.manual.ts.tpl +3 -3
- package/templates/init/platform/platform.module.tsyringe.ts.tpl +8 -8
- package/templates/init/platform/resilience/adapter-aspects.ts.tpl +2 -2
- package/templates/init/platform/resilience/default-resilience.ts.tpl +1 -1
- package/templates/init/platform/resilience/own-policy.ts.tpl +1 -1
- package/templates/init/platform/tracing.ts.tpl +2 -2
- package/templates/init/rules/application.md.tpl +8 -2
- package/templates/init/rules/infrastructure.md.tpl +3 -3
- package/templates/init/scripts/openapi.ts.tpl +5 -5
- package/templates/integration-event/audited.tpl +1 -1
- package/templates/integration-event/integration-event.class-validator.ts.tpl +1 -1
- package/templates/integration-event/integration-event.custom.ts.tpl +1 -1
- package/templates/integration-event/publisher.declared.ts.tpl +4 -4
- package/templates/integration-event/publisher.spec.ts.tpl +2 -2
- package/templates/integration-event/publisher.ts.tpl +2 -2
- package/templates/integration-event/wiring.manual.tpl +2 -2
- package/templates/integration-event/wiring.tsyringe.tpl +2 -2
- package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -3
- package/templates/integration-handler/integration-handler.spec.ts.tpl +2 -2
- package/templates/integration-handler/integration-handler.ts.tpl +1 -1
- package/templates/integration-handler/wiring.manual.tpl +3 -3
- package/templates/integration-handler/wiring.tsyringe.tpl +2 -2
- package/templates/job/job.declared.ts.tpl +3 -3
- package/templates/job/job.spec.buses.ts.tpl +2 -2
- package/templates/job/job.spec.tsyringe.ts.tpl +2 -2
- package/templates/job/job.ts.tpl +1 -1
- package/templates/job/wiring.manual.tpl +1 -1
- package/templates/job/wiring.tsyringe.tpl +1 -1
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/policy/policy.declared.ts.tpl +1 -1
- package/templates/policy/policy.spec.declared.ts.tpl +1 -1
- package/templates/policy/policy.spec.ts.tpl +1 -1
- package/templates/policy/policy.ts.tpl +1 -1
- package/templates/policy/registration.tpl +1 -1
- package/templates/port/fake.ts.tpl +1 -1
- package/templates/projection/projection.spec.ts.tpl +17 -0
- package/templates/projection/projection.ts.tpl +11 -0
- package/templates/query/handler.declared.ts.tpl +4 -4
- package/templates/query/handler.spec.buses.ts.tpl +5 -5
- package/templates/query/handler.spec.tsyringe.ts.tpl +6 -6
- package/templates/query/handler.ts.tpl +3 -3
- package/templates/query/query.ts.tpl +1 -1
- package/templates/query/reader.fake.ts.tpl +2 -2
- package/templates/query/reader.in-memory.ts.tpl +4 -4
- package/templates/query/reader.port.ts.tpl +2 -2
- package/templates/query/search.handler.declared.ts.tpl +6 -6
- package/templates/query/search.handler.spec.buses.ts.tpl +5 -5
- package/templates/query/search.handler.spec.tsyringe.ts.tpl +6 -6
- package/templates/query/search.handler.ts.tpl +4 -4
- package/templates/query/search.query.ts.tpl +1 -1
- package/templates/query/search.reader.fake.ts.tpl +2 -2
- package/templates/query/search.reader.in-memory.ts.tpl +3 -3
- package/templates/query/search.reader.port.ts.tpl +1 -1
- package/templates/query/search.reader.spec.ts.tpl +2 -2
- package/templates/query/search.wiring.manual.tpl +3 -3
- package/templates/query/search.wiring.tsyringe.tpl +4 -4
- package/templates/query/wiring.manual.tpl +3 -3
- package/templates/query/wiring.tsyringe.tpl +4 -4
- package/templates/repository/contract.spec.ts.tpl +5 -5
- package/templates/repository/drizzle/mapper.ts.tpl +2 -2
- package/templates/repository/drizzle/repository.ts.tpl +9 -17
- package/templates/repository/drizzle/schema-export.tpl +1 -1
- package/templates/repository/fake.ts.tpl +2 -2
- package/templates/repository/knex/mapper.ts.tpl +2 -2
- package/templates/repository/knex/repository.ts.tpl +10 -30
- package/templates/repository/knex/schema-export.tpl +1 -1
- package/templates/repository/knex/tables.ts.tpl +1 -1
- package/templates/repository/none/repository.ts.tpl +3 -3
- package/templates/repository/prisma/mapper.ts.tpl +2 -2
- package/templates/repository/prisma/repository.ts.tpl +6 -9
- package/templates/repository/repository.ts.tpl +1 -1
- package/templates/repository/typeorm/mapper.ts.tpl +2 -2
- package/templates/repository/typeorm/repository.ts.tpl +9 -12
- package/templates/repository/typeorm/schema-export.tpl +1 -1
- package/templates/repository/typeorm/table.tpl +1 -1
- package/templates/repository/wiring.manual.tpl +1 -1
- package/templates/repository/wiring.tsyringe.tpl +2 -2
- package/templates/route/route.search.ts.tpl +1 -1
- package/templates/route/route.spec.ts.tpl +1 -1
- package/templates/route/routes.on-tsyringe.tpl +1 -1
- package/templates/route/wiring.manual.tpl +1 -1
- package/templates/service/main.ts.tpl +11 -11
- package/templates/value-object/value-object.spec.ts.tpl +1 -1
- package/templates/worker/main.ts.tpl +9 -9
- package/dist/alias/platform-alias.d.ts +0 -4
- package/dist/alias/platform-alias.d.ts.map +0 -1
- package/dist/alias/platform-alias.js +0 -7
- package/dist/alias/platform-alias.js.map +0 -1
|
@@ -1,55 +1,19 @@
|
|
|
1
1
|
import { routesFile } from '../../declared/index.js';
|
|
2
2
|
import { renderTemplate } from '../../templating/index.js';
|
|
3
|
-
import { applyWiring } from '../apply-wiring.js';
|
|
4
|
-
import { assembledContext } from '../assembled-context.js';
|
|
5
|
-
import { contextVars } from '../context-vars.js';
|
|
6
3
|
import { permissionsFile } from '../permissions-file.js';
|
|
7
|
-
import { relativeTo } from '../relative-to.js';
|
|
8
4
|
import { wiringFamily } from '../wiring-family.js';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const PURPOSE_TODO = 'TODO(domain): say in two sentences which business capability this context owns and for whom; the first sentence is reused in the context map.';
|
|
12
|
-
const PROOF = 'test/architecture/extractable.spec.ts';
|
|
13
|
-
const COMPOSITION = 'compose-application.ts';
|
|
5
|
+
import { planVars } from './plan-vars.js';
|
|
6
|
+
import { wireContext } from './wire-context.js';
|
|
14
7
|
/** The files of a new context, the document first: the language is defined before the code that speaks it. */
|
|
15
8
|
export function writeContextFiles(ws, plan) {
|
|
16
9
|
const { config, context } = plan;
|
|
17
10
|
const dir = `${config.contextsDir}/${context.kebab}`;
|
|
18
11
|
const vars = planVars(plan);
|
|
19
|
-
const family = wiringFamily(config);
|
|
20
12
|
ws.create(`${dir}/CONTEXT.md`, renderTemplate('context/CONTEXT.md.tpl', vars));
|
|
21
13
|
writeAssembly(ws, plan, vars);
|
|
22
14
|
ws.create(`${dir}/published-language/index.ts`, renderTemplate('context/published-language-index.ts.tpl', vars));
|
|
23
15
|
registerPermissions(ws, plan, vars);
|
|
24
|
-
|
|
25
|
-
ws.create(PROOF, renderTemplate(`architecture/extractable.${family}.spec.ts.tpl`, vars));
|
|
26
|
-
}
|
|
27
|
-
for (const [file, wiring] of [
|
|
28
|
-
[PROOF, `architecture/wiring.${family}.tpl`],
|
|
29
|
-
[`${config.platformDir}/${COMPOSITION}`, `context/wiring.${family}.tpl`],
|
|
30
|
-
]) {
|
|
31
|
-
if (family === 'declared') {
|
|
32
|
-
importAssembler(ws, config, file);
|
|
33
|
-
}
|
|
34
|
-
applyWiring(ws, file, renderTemplate(wiring, vars));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function planVars({ config, context, request }) {
|
|
38
|
-
const terms = request.terms ?? [];
|
|
39
|
-
const toContext = (from) => `${relativeTo(from, config.contextsDir)}/${context.kebab}/`;
|
|
40
|
-
return {
|
|
41
|
-
...contextVars(config, context),
|
|
42
|
-
assembled: {
|
|
43
|
-
module: assembledContext({ config, context }, toContext(config.platformDir)),
|
|
44
|
-
proofModule: assembledContext({ config, context }, toContext('test/architecture')),
|
|
45
|
-
},
|
|
46
|
-
doc: {
|
|
47
|
-
classification: config.contexts[context.kebab]?.classification ?? '',
|
|
48
|
-
purpose: request.purpose?.trim() || PURPOSE_TODO,
|
|
49
|
-
glossaryHint: terms.length > 0 ? '' : `\n${GLOSSARY_TODO}\n`,
|
|
50
|
-
glossaryRows: terms.map((row) => `\n| ${row.term} | ${row.meaning} | |`).join(''),
|
|
51
|
-
},
|
|
52
|
-
};
|
|
16
|
+
wireContext(ws, plan);
|
|
53
17
|
}
|
|
54
18
|
/**
|
|
55
19
|
* What assembles the context: its module file, or, when its classes declare themselves, nothing
|
|
@@ -81,6 +45,5 @@ function registerPermissions(ws, { config, context }, vars) {
|
|
|
81
45
|
ws.create(`${config.contextsDir}/${context.kebab}/${permissionsFile(context)}`, renderTemplate('context/permissions.ts.tpl', vars));
|
|
82
46
|
// Until a use case names one of them, only the registry loads the file: its spec holds it from the start.
|
|
83
47
|
ws.create(`${config.contextsDir}/${context.kebab}/test/unit/${context.kebab}.permissions.spec.ts`, renderTemplate('context/permissions.spec.ts.tpl', vars));
|
|
84
|
-
applyWiring(ws, registry, renderTemplate('context/permission-set.tpl', vars));
|
|
85
48
|
}
|
|
86
49
|
//# sourceMappingURL=write-context-files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-context-files.js","sourceRoot":"","sources":["../../../src/generate/kinds/write-context-files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"write-context-files.js","sourceRoot":"","sources":["../../../src/generate/kinds/write-context-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,8GAA8G;AAC9G,MAAM,UAAU,iBAAiB,CAAC,EAAa,EAAE,IAAiB;IAChE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACjC,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,EAAE,CAAC,MAAM,CAAC,GAAG,GAAG,aAAa,EAAE,cAAc,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/E,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE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IAE7D,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzB,OAAO;IACT,CAAC;IAED,EAAE,CAAC,MAAM,CACP,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,EACpE,cAAc,CAAC,4BAA4B,EAAE,IAAI,CAAC,CACnD,CAAC;IAEF,0GAA0G;IAC1G,EAAE,CAAC,MAAM,CACP,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,cAAc,OAAO,CAAC,KAAK,sBAAsB,EACvF,cAAc,CAAC,iCAAiC,EAAE,IAAI,CAAC,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AA4BtC,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EA2BhC,CAAC"}
|
package/dist/generate/kinds.js
CHANGED
|
@@ -17,6 +17,7 @@ import { integrationHandlerKind } from './kinds/integration-handler-kind.js';
|
|
|
17
17
|
import { jobKind } from './kinds/job-kind.js';
|
|
18
18
|
import { policyKind } from './kinds/policy-kind.js';
|
|
19
19
|
import { portKind } from './kinds/port-kind.js';
|
|
20
|
+
import { projectionKind } from './kinds/projection-kind.js';
|
|
20
21
|
import { queryKind } from './kinds/query-kind.js';
|
|
21
22
|
import { repositoryKind } from './kinds/repository-kind.js';
|
|
22
23
|
import { routeKind } from './kinds/route-kind.js';
|
|
@@ -41,6 +42,7 @@ export const KINDS = [
|
|
|
41
42
|
integrationEventKind,
|
|
42
43
|
integrationHandlerKind,
|
|
43
44
|
eventHandlerKind,
|
|
45
|
+
projectionKind,
|
|
44
46
|
jobKind,
|
|
45
47
|
aclKind,
|
|
46
48
|
e2eKind,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../src/generate/kinds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAA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{ Config } from '../config/index.js';
|
|
2
2
|
import type { Workspace } from '../workspace/index.js';
|
|
3
3
|
/**
|
|
4
|
-
* Rewrites the
|
|
5
|
-
*
|
|
6
|
-
* `
|
|
4
|
+
* Rewrites the generated file of every declared context from its tree: the barrel, which also
|
|
5
|
+
* registers what each constructor receives, or under discovery `<context>.dependencies.ts`,
|
|
6
|
+
* which holds that alone. Called at the end of every `generate` and by `docs`: these files are
|
|
7
|
+
* derived, like the documentation, and `declarations/barrel-current` reports one left behind.
|
|
7
8
|
*/
|
|
8
9
|
export declare function refreshBarrels(ws: Workspace, config: Config): void;
|
|
9
10
|
//# sourceMappingURL=refresh-barrels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-barrels.d.ts","sourceRoot":"","sources":["../../src/generate/refresh-barrels.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"refresh-barrels.d.ts","sourceRoot":"","sources":["../../src/generate/refresh-barrels.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAWjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKvD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAYlE"}
|
|
@@ -1,29 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { barrelFile, renderBarrel } from '../declared/index.js';
|
|
1
|
+
import { specifierOf } from '../alias/index.js';
|
|
2
|
+
import { barrelFile, contextInjections, dependenciesFile, renderBarrel, renderDependenciesFile, renderInjections, } from '../declared/index.js';
|
|
3
3
|
import { filesUnder } from './files-under.js';
|
|
4
4
|
import { isDeclared } from './is-declared.js';
|
|
5
|
+
import { workspaceSources } from './workspace-sources.js';
|
|
5
6
|
/**
|
|
6
|
-
* Rewrites the
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
7
|
+
* Rewrites the generated file of every declared context from its tree: the barrel, which also
|
|
8
|
+
* registers what each constructor receives, or under discovery `<context>.dependencies.ts`,
|
|
9
|
+
* which holds that alone. Called at the end of every `generate` and by `docs`: these files are
|
|
10
|
+
* derived, like the documentation, and `declarations/barrel-current` reports one left behind.
|
|
9
11
|
*/
|
|
10
12
|
export function refreshBarrels(ws, config) {
|
|
11
|
-
if (!isDeclared(config)
|
|
13
|
+
if (!isDeclared(config)) {
|
|
12
14
|
return;
|
|
13
15
|
}
|
|
16
|
+
const sources = workspaceSources(ws, config);
|
|
14
17
|
for (const context of ws.directories(config.contextsDir)) {
|
|
15
|
-
if (config.contexts[context]
|
|
16
|
-
|
|
18
|
+
if (config.contexts[context] !== undefined) {
|
|
19
|
+
refreshContext(ws, { config, sources, context });
|
|
17
20
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function refreshContext(ws, { config, sources, context }) {
|
|
24
|
+
const directory = `${config.contextsDir}/${context}`;
|
|
25
|
+
const entries = filesUnder(ws, directory);
|
|
26
|
+
const injections = contextInjections(sources, directory, entries);
|
|
27
|
+
const injected = renderInjections(injections, (file) => specifierOf(config, file));
|
|
28
|
+
noteUnread(ws, injections);
|
|
29
|
+
if (config.stack.assembly === 'barrel') {
|
|
30
|
+
const barrel = renderBarrel(entries, (entry) => specifierOf(config, `${directory}/${entry}`), injected);
|
|
31
|
+
write(ws, `${directory}/${barrelFile(context)}`, barrel);
|
|
32
|
+
}
|
|
33
|
+
else if (injected.calls.length > 0 || ws.exists(`${directory}/${dependenciesFile(context)}`)) {
|
|
34
|
+
write(ws, `${directory}/${dependenciesFile(context)}`, renderDependenciesFile(injected));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** A class whose constructor cannot be read is given no list: said here, reported by `check`, refused at startup. */
|
|
38
|
+
function noteUnread(ws, injections) {
|
|
39
|
+
for (const { className, file, listed, problems } of injections) {
|
|
40
|
+
const [problem] = listed === undefined ? problems : [];
|
|
41
|
+
if (problem !== undefined) {
|
|
42
|
+
ws.note(`${className} (${file}) is registered no dependency list: ${problem.message} ${problem.fix}`);
|
|
26
43
|
}
|
|
27
44
|
}
|
|
28
45
|
}
|
|
46
|
+
function write(ws, file, content) {
|
|
47
|
+
if (ws.exists(file)) {
|
|
48
|
+
ws.update(file, content);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
ws.create(file, content);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
29
54
|
//# sourceMappingURL=refresh-barrels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-barrels.js","sourceRoot":"","sources":["../../src/generate/refresh-barrels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"refresh-barrels.js","sourceRoot":"","sources":["../../src/generate/refresh-barrels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,gBAAgB,GAGjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,EAAa,EAAE,MAAc;IAC1D,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACxB,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,gBAAgB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAE7C,KAA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AAE,CAAC,EAAE,CAAC;QAC/F,KAAK,CAAC,EAAE,EAAE,GAAG,SAAS,IAAI,gBAAgB,CAAC,OAAO,CAAC,EAAE,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC;AAED,qHAAqH;AACrH,SAAS,UAAU,CAAC,EAAa,EAAE,UAAqC;IACtE,KAAK,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,UAAU,EAAE,CAAC;QAC/D,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;QAEvD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,EAAE,CAAC,IAAI,CAAC,GAAG,SAAS,KAAK,IAAI,uCAAuC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QACxG,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,KAAK,CAAC,EAAa,EAAE,IAAY,EAAE,OAAe;IACzD,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC;SAAM,CAAC;QACN,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { specifierOf } from '../alias/index.js';
|
|
2
2
|
import { assembledContext } from './assembled-context.js';
|
|
3
3
|
import { isDeclared } from './is-declared.js';
|
|
4
4
|
/**
|
|
@@ -29,13 +29,13 @@ export function specVars(scope, access) {
|
|
|
29
29
|
}
|
|
30
30
|
function contextImports(scope) {
|
|
31
31
|
const { config, context } = scope;
|
|
32
|
-
const
|
|
32
|
+
const inContext = (file) => specifierOf(config, `${config.contextsDir}/${context.kebab}/${file}`);
|
|
33
33
|
if (!isDeclared(config)) {
|
|
34
|
-
return `import { ${context.camel}Module } from '${
|
|
34
|
+
return `import { ${context.camel}Module } from '${inContext(`${context.kebab}.module.ts`)}';`;
|
|
35
35
|
}
|
|
36
36
|
if (config.stack.assembly === 'discovery') {
|
|
37
37
|
return "import { discoverContext } from '@ddd-ts-kit/di/discovery';";
|
|
38
38
|
}
|
|
39
|
-
return `import * as ${context.camel}Declarations from '${
|
|
39
|
+
return `import * as ${context.camel}Declarations from '${inContext(`${context.kebab}.declarations.ts`)}';`;
|
|
40
40
|
}
|
|
41
41
|
//# sourceMappingURL=spec-vars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-vars.js","sourceRoot":"","sources":["../../src/generate/spec-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"spec-vars.js","sourceRoot":"","sources":["../../src/generate/spec-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAY,EAAE,MAAqB;IAC1D,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACjD,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,WAAW,CAAC;IAC3F,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;IACvD,MAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,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AAC,CAAC;IAElH,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACxB,OAAO,YAAY,OAAO,CAAC,KAAK,kBAAkB,SAAS,CAAC,GAAG,OAAO,CAAC,KAAK,YAAY,CAAC,IAAI,CAAC;IAChG,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,WAAW,EAAE,CAAC;QAC1C,OAAO,6DAA6D,CAAC;IACvE,CAAC;IAED,OAAO,eAAe,OAAO,CAAC,KAAK,sBAAsB,SAAS,CAAC,GAAG,OAAO,CAAC,KAAK,kBAAkB,CAAC,IAAI,CAAC;AAC7G,CAAC"}
|
|
@@ -2,8 +2,8 @@ import type { Config } from '../config/index.js';
|
|
|
2
2
|
import type { RenderContext } from '../templating/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* How a repository adapter reaches the storage: the token of the ORM package, or the `Database`
|
|
5
|
-
* class the platform declares.
|
|
6
|
-
* the
|
|
5
|
+
* class the platform declares. The adapter types a constructor parameter by it, so it imports the
|
|
6
|
+
* type; the module file of an explicit context, which lists it, imports the value.
|
|
7
7
|
*/
|
|
8
8
|
export declare function storageVars(config: Config): RenderContext;
|
|
9
9
|
//# sourceMappingURL=storage-vars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-vars.d.ts","sourceRoot":"","sources":["../../src/generate/storage-vars.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"storage-vars.d.ts","sourceRoot":"","sources":["../../src/generate/storage-vars.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAQ5D;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAWzD"}
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/** The class of each ORM of the kit that a repository adapter receives, and names in its dependency list. */
|
|
1
|
+
import { specifierOf } from '../alias/index.js';
|
|
2
|
+
/** The class of each ORM of the kit that a repository adapter receives, and types its constructor parameter by. */
|
|
4
3
|
const PACKAGE_TOKENS = {
|
|
5
4
|
knex: { token: 'KnexContext', from: '@ddd-ts-kit/knex' },
|
|
6
5
|
typeorm: { token: 'TypeOrmContext', from: '@ddd-ts-kit/typeorm' },
|
|
7
6
|
};
|
|
8
7
|
/**
|
|
9
8
|
* How a repository adapter reaches the storage: the token of the ORM package, or the `Database`
|
|
10
|
-
* class the platform declares.
|
|
11
|
-
* the
|
|
9
|
+
* class the platform declares. The adapter types a constructor parameter by it, so it imports the
|
|
10
|
+
* type; the module file of an explicit context, which lists it, imports the value.
|
|
12
11
|
*/
|
|
13
12
|
export function storageVars(config) {
|
|
14
13
|
const provided = PACKAGE_TOKENS[config.stack.orm];
|
|
15
14
|
const token = provided?.token ?? 'Database';
|
|
16
|
-
const from = provided?.from ?? `${
|
|
17
|
-
const named = isDeclared(config) ? token : `type ${token}`;
|
|
15
|
+
const from = provided?.from ?? specifierOf(config, `${config.platformDir}/database/database.ts`);
|
|
18
16
|
return {
|
|
19
17
|
token,
|
|
20
|
-
adapterImport: `import
|
|
18
|
+
adapterImport: `import type { ${token} } from '${from}';`,
|
|
21
19
|
moduleImport: `import { ${token} } from '${from}';`,
|
|
22
|
-
knexImport: named,
|
|
23
|
-
typeormImport: named,
|
|
24
20
|
};
|
|
25
21
|
}
|
|
26
22
|
//# sourceMappingURL=storage-vars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-vars.js","sourceRoot":"","sources":["../../src/generate/storage-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"storage-vars.js","sourceRoot":"","sources":["../../src/generate/storage-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,mHAAmH;AACnH,MAAM,cAAc,GAAgF;IAClG,IAAI,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACxD,OAAO,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,qBAAqB,EAAE;CAClE,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,QAAQ,EAAE,KAAK,IAAI,UAAU,CAAC;IAE5C,MAAM,IAAI,GAAG,QAAQ,EAAE,IAAI,IAAI,WAAW,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,WAAW,uBAAuB,CAAC,CAAC;IAEjG,OAAO;QACL,KAAK;QACL,aAAa,EAAE,iBAAiB,KAAK,YAAY,IAAI,IAAI;QACzD,YAAY,EAAE,YAAY,KAAK,YAAY,IAAI,IAAI;KACpD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Config } from '../config/index.js';
|
|
2
|
+
import type { Sources } from '../declared/index.js';
|
|
3
|
+
import type { Workspace } from '../workspace/index.js';
|
|
4
|
+
/** The sources of a workspace, on disk or planned, each read and scanned once. */
|
|
5
|
+
export declare function workspaceSources(ws: Workspace, config: Config): Sources;
|
|
6
|
+
//# sourceMappingURL=workspace-sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-sources.d.ts","sourceRoot":"","sources":["../../src/generate/workspace-sources.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAYvE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { loadSourceFile } from '../check/project/load-source-file.js';
|
|
2
|
+
/** The sources of a workspace, on disk or planned, each read and scanned once. */
|
|
3
|
+
export function workspaceSources(ws, config) {
|
|
4
|
+
const read = new Map();
|
|
5
|
+
return (file) => {
|
|
6
|
+
if (!read.has(file)) {
|
|
7
|
+
const text = ws.read(file);
|
|
8
|
+
read.set(file, text === undefined ? undefined : loadSourceFile(config, file, text));
|
|
9
|
+
}
|
|
10
|
+
return read.get(file);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workspace-sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-sources.js","sourceRoot":"","sources":["../../src/generate/workspace-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAMtE,kFAAkF;AAClF,MAAM,UAAU,gBAAgB,CAAC,EAAa,EAAE,MAAc;IAC5D,MAAM,IAAI,GAAG,IAAI,GAAG,EAAkC,CAAC;IAEvD,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACpB,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QACtF,CAAC;QAED,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -14,6 +14,8 @@ export function scriptsFor(config) {
|
|
|
14
14
|
const written = Object.entries(scriptsOf(config));
|
|
15
15
|
return Object.fromEntries(written.map(([name, script]) => [name, inDialect(script, config.stack.packageManager)]));
|
|
16
16
|
}
|
|
17
|
+
/** The module of this package that rewrites the generated declarations when it is loaded. */
|
|
18
|
+
const REFRESH = 'ddd-ts-kit/dist/refresh-declarations.js';
|
|
17
19
|
function scriptsOf(config) {
|
|
18
20
|
const scripts = {
|
|
19
21
|
...pipelineManifest().scripts,
|
|
@@ -39,13 +41,16 @@ function scriptsOf(config) {
|
|
|
39
41
|
* The whole application, and the worker once the project has one (`generate worker` adds its script
|
|
40
42
|
* to an existing project). `start` is plain `node` on the compiled output, whose alias specifiers
|
|
41
43
|
* the build rewrote; `dev` runs the sources under tsx, which reads the `paths` of tsconfig.json.
|
|
44
|
+
* In the declared style every start of `dev`, the first and each reload, begins by rewriting the
|
|
45
|
+
* generated declarations: a dependency added to a constructor is injected without a manual step.
|
|
42
46
|
*/
|
|
43
47
|
function runScripts(config) {
|
|
44
48
|
const compiled = `dist/${config.sourceRoot}`;
|
|
49
|
+
const preloads = [`./${config.platformDir}/tracing.ts`, ...(config.stack.style === 'declared' ? [REFRESH] : [])];
|
|
45
50
|
return {
|
|
46
51
|
start: `node ${compiled}/main.js`,
|
|
47
52
|
...(config.worker ? { 'start:worker': `node ${compiled}/apps/worker/main.js` } : {}),
|
|
48
|
-
dev: `tsx watch --env-file-if-exists=.env
|
|
53
|
+
dev: `tsx watch --env-file-if-exists=.env ${preloads.map((preload) => `--import ${preload}`).join(' ')} ${config.sourceRoot}/main.ts`,
|
|
49
54
|
};
|
|
50
55
|
}
|
|
51
56
|
//# sourceMappingURL=scripts-for.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripts-for.js","sourceRoot":"","sources":["../../../src/init/manifest/scripts-for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AAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEjH,OAAO;QACL,KAAK,EAAE,QAAQ,QAAQ,UAAU;QACjC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,QAAQ,sBAAsB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACpF,GAAG,EAAE,uCAAuC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,UAAU;KACtI,CAAC;AACJ,CAAC"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/** Ranges written to the generated package.json; bumped together with the kit. */
|
|
2
2
|
export const VERSIONS = {
|
|
3
|
-
'@ddd-ts-kit/kernel': '^0.
|
|
4
|
-
'@ddd-ts-kit/validation': '^0.
|
|
5
|
-
'@ddd-ts-kit/http': '^0.
|
|
6
|
-
'@ddd-ts-kit/tracing': '^0.
|
|
7
|
-
'@ddd-ts-kit/di': '^0.
|
|
8
|
-
'@ddd-ts-kit/events': '^0.
|
|
9
|
-
'@ddd-ts-kit/testing': '^0.
|
|
10
|
-
'@ddd-ts-kit/drizzle': '^0.
|
|
11
|
-
'@ddd-ts-kit/knex': '^0.
|
|
12
|
-
'@ddd-ts-kit/prisma': '^0.
|
|
13
|
-
'@ddd-ts-kit/typeorm': '^0.
|
|
14
|
-
'@ddd-ts-kit/auth': '^0.
|
|
15
|
-
'@ddd-ts-kit/rabbitmq': '^0.
|
|
16
|
-
'@ddd-ts-kit/aspects': '^0.
|
|
17
|
-
'@ddd-ts-kit/audit': '^0.
|
|
18
|
-
'@ddd-ts-kit/redis': '^0.
|
|
19
|
-
'@ddd-ts-kit/kafka': '^0.
|
|
20
|
-
'@ddd-ts-kit/nats': '^0.
|
|
21
|
-
'@ddd-ts-kit/scheduling': '^0.
|
|
22
|
-
'@ddd-ts-kit/sentry': '^0.
|
|
3
|
+
'@ddd-ts-kit/kernel': '^0.2.0',
|
|
4
|
+
'@ddd-ts-kit/validation': '^0.2.0',
|
|
5
|
+
'@ddd-ts-kit/http': '^0.2.0',
|
|
6
|
+
'@ddd-ts-kit/tracing': '^0.2.0',
|
|
7
|
+
'@ddd-ts-kit/di': '^0.2.0',
|
|
8
|
+
'@ddd-ts-kit/events': '^0.2.0',
|
|
9
|
+
'@ddd-ts-kit/testing': '^0.2.0',
|
|
10
|
+
'@ddd-ts-kit/drizzle': '^0.2.0',
|
|
11
|
+
'@ddd-ts-kit/knex': '^0.2.0',
|
|
12
|
+
'@ddd-ts-kit/prisma': '^0.2.0',
|
|
13
|
+
'@ddd-ts-kit/typeorm': '^0.2.0',
|
|
14
|
+
'@ddd-ts-kit/auth': '^0.2.0',
|
|
15
|
+
'@ddd-ts-kit/rabbitmq': '^0.2.0',
|
|
16
|
+
'@ddd-ts-kit/aspects': '^0.2.0',
|
|
17
|
+
'@ddd-ts-kit/audit': '^0.2.0',
|
|
18
|
+
'@ddd-ts-kit/redis': '^0.2.0',
|
|
19
|
+
'@ddd-ts-kit/kafka': '^0.2.0',
|
|
20
|
+
'@ddd-ts-kit/nats': '^0.2.0',
|
|
21
|
+
'@ddd-ts-kit/scheduling': '^0.2.0',
|
|
22
|
+
'@ddd-ts-kit/sentry': '^0.2.0',
|
|
23
23
|
'@sentry/node': '^11.6.0',
|
|
24
|
-
'@ddd-ts-kit/pino': '^0.
|
|
24
|
+
'@ddd-ts-kit/pino': '^0.2.0',
|
|
25
25
|
pino: '^10.4.0',
|
|
26
26
|
'pino-pretty': '^13.2.0',
|
|
27
|
-
'@ddd-ts-kit/winston': '^0.
|
|
27
|
+
'@ddd-ts-kit/winston': '^0.2.0',
|
|
28
28
|
winston: '^3.19.0',
|
|
29
29
|
'@confluentinc/kafka-javascript': '^1.11.0',
|
|
30
30
|
'@nats-io/jetstream': '^3.4.0',
|
|
@@ -32,7 +32,7 @@ export const VERSIONS = {
|
|
|
32
32
|
ioredis: '^6.0.0',
|
|
33
33
|
jose: '^6.0.0',
|
|
34
34
|
amqplib: '^2.2.0',
|
|
35
|
-
'ddd-ts-kit': '^0.
|
|
35
|
+
'ddd-ts-kit': '^0.2.0',
|
|
36
36
|
tsx: '^4.23.15',
|
|
37
37
|
vitest: '^5.0.3',
|
|
38
38
|
zod: '^4.6.5',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-init.d.ts","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-init.d.ts","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAWA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,eAAe,CA6B3E"}
|
package/dist/init/run-init.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { CONFIG_FILE, serializeConfig } from '../config/index.js';
|
|
2
|
+
import { CONFIG_FILE, restackConfigText, serializeConfig } from '../config/index.js';
|
|
3
3
|
import { DEPCRUISE_FILE } from '../depcruise/depcruise-file.js';
|
|
4
4
|
import { renderCruiseFile } from '../depcruise/render-cruise-file.js';
|
|
5
5
|
import { writeDocs } from '../docs/write-docs.js';
|
|
6
6
|
import { declareContextEntries } from '../generate/kinds/declare-context-entries.js';
|
|
7
|
+
import { wireContext } from '../generate/kinds/wire-context.js';
|
|
7
8
|
import { formatJson } from '../json/format-json.js';
|
|
8
|
-
import { toName } from '../naming/index.js';
|
|
9
|
+
import { parseContextName, toName } from '../naming/index.js';
|
|
9
10
|
import { inDialect } from '../package-manager/in-dialect.js';
|
|
10
11
|
import { readTemplate, renderTemplate } from '../templating/index.js';
|
|
11
12
|
import { Workspace } from '../workspace/index.js';
|
|
@@ -24,13 +25,16 @@ export function runInit(root, options) {
|
|
|
24
25
|
const ws = new Workspace(root, options.force);
|
|
25
26
|
const config = recordNoOutbox(ws, resolveStack(root, options), options.allowNoOutbox);
|
|
26
27
|
const projectName = existingName(root) ?? (toName(path.basename(path.resolve(root))).kebab || 'app');
|
|
27
|
-
ws.create(CONFIG_FILE,
|
|
28
|
+
ws.create(CONFIG_FILE, configText(ws, config));
|
|
28
29
|
writeManifest(ws, { config, projectName, force: options.force });
|
|
29
30
|
writeTypeScriptConfigs(ws, config);
|
|
30
31
|
writeFiles(ws, config, projectName);
|
|
31
32
|
ws.create(DEPCRUISE_FILE, renderCruiseFile(config));
|
|
32
33
|
writeAgentSettings(ws);
|
|
33
34
|
ws.create(`${config.sharedKernelDir}/.gitkeep`, '');
|
|
35
|
+
if (options.force) {
|
|
36
|
+
rewireContexts(ws, config);
|
|
37
|
+
}
|
|
34
38
|
const withContexts = addContexts(ws, config, options.contexts);
|
|
35
39
|
writeDocs(ws, withContexts);
|
|
36
40
|
writeContracts(ws, withContexts, projectName);
|
|
@@ -40,6 +44,31 @@ export function runInit(root, options) {
|
|
|
40
44
|
}
|
|
41
45
|
return report;
|
|
42
46
|
}
|
|
47
|
+
/** A new project gets its config whole; one that is initialised again with --force keeps what its team wrote around the stack. */
|
|
48
|
+
function configText(ws, config) {
|
|
49
|
+
const recorded = ws.read(CONFIG_FILE);
|
|
50
|
+
try {
|
|
51
|
+
return recorded === undefined ? serializeConfig(config) : restackConfigText(recorded, config);
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return serializeConfig(config);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* `--force` just rewrote the composition root, the proof that each context wires alone and the
|
|
59
|
+
* registry of permissions from their templates: the contexts the config declares, which it kept,
|
|
60
|
+
* are wired into them again. What another generator had added to a file of the platform (the
|
|
61
|
+
* value a gateway is given, the settings of a job) is not known here, and is said.
|
|
62
|
+
*/
|
|
63
|
+
function rewireContexts(ws, config) {
|
|
64
|
+
const present = Object.entries(config.contexts).filter(([name]) => ws.exists(`${config.contextsDir}/${name}`));
|
|
65
|
+
for (const [name, { classification, upstreams }] of present) {
|
|
66
|
+
wireContext(ws, { config, context: parseContextName(name), request: { name, classification, upstreams } });
|
|
67
|
+
}
|
|
68
|
+
if (present.length > 0) {
|
|
69
|
+
ws.note(`--force rewrote the files of the platform from their templates and wired the declared contexts again (${present.map(([name]) => name).join(', ')}). What a generator had added to one of those files besides (the value of a gateway, the settings of a job, a policy of its own) is gone: run \`npm run verify\`, and generate again what it reports missing.`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
43
72
|
/** The contexts asked of this run, then what every context of the project needs from the analyzers: one that is initialised again keeps its own. */
|
|
44
73
|
function addContexts(ws, config, entries) {
|
|
45
74
|
const withContexts = entries.reduce((current, entry) => addContext(ws, current, entry), config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-init.js","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAe,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"run-init.js","sourceRoot":"","sources":["../../src/init/run-init.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAe,MAAM,oBAAoB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAA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,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Config } from '../../config/index.js';
|
|
2
|
+
import type { StackOptions } from './stack-options.js';
|
|
3
|
+
type Recorded = Omit<StackOptions, 'force' | 'importAlias' | 'importExtension'>;
|
|
4
|
+
/**
|
|
5
|
+
* The stack a config records, as the flags of `init` would ask for it: what `init --force` starts
|
|
6
|
+
* from, so that a flag changes the choice it names and nothing else. The reason of a recorded
|
|
7
|
+
* run without the outbox is given again with it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function recordedOptions({ stack, deviations }: Pick<Config, 'stack' | 'deviations'>): Recorded;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=recorded-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recorded-options.d.ts","sourceRoot":"","sources":["../../../src/init/stack/recorded-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKvD,KAAK,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,aAAa,GAAG,iBAAiB,CAAC,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,CAAC,GAAG,QAAQ,CAWrG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** `init` offers two ways of publishing events: a third one written by hand in the config is kept as it is. */
|
|
2
|
+
const OFFERED_EVENTS = ['in-memory', 'outbox'];
|
|
3
|
+
/**
|
|
4
|
+
* The stack a config records, as the flags of `init` would ask for it: what `init --force` starts
|
|
5
|
+
* from, so that a flag changes the choice it names and nothing else. The reason of a recorded
|
|
6
|
+
* run without the outbox is given again with it.
|
|
7
|
+
*/
|
|
8
|
+
export function recordedOptions({ stack, deviations }) {
|
|
9
|
+
const { events, style, assembly, dependencies, ...choices } = stack;
|
|
10
|
+
const noOutbox = deviations.find(({ what }) => what === 'stack.events')?.reason;
|
|
11
|
+
return {
|
|
12
|
+
...choices,
|
|
13
|
+
style,
|
|
14
|
+
...(style === 'declared' ? { assembly, dependencies } : {}),
|
|
15
|
+
...(OFFERED_EVENTS.includes(events) ? { events } : {}),
|
|
16
|
+
...(noOutbox === undefined ? {} : { allowNoOutbox: noOutbox }),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=recorded-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recorded-options.js","sourceRoot":"","sources":["../../../src/init/stack/recorded-options.ts"],"names":[],"mappings":"AAGA,+GAA+G;AAC/G,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAI/C;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAAE,UAAU,EAAwC;IACzF,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;IACpE,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,cAAc,CAAC,EAAE,MAAM,CAAC;IAEhF,OAAO;QACL,GAAG,OAAO;QACV,KAAK;QACL,GAAG,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC;KAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type Config } from '../../config/index.js';
|
|
2
2
|
import type { StackOptions } from './stack-options.js';
|
|
3
3
|
export type { StackOptions } from './stack-options.js';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* The config of the project. Already initialised, it is the one on disk: `init` run again keeps
|
|
6
|
+
* it, and `init --force` changes in it the choices its flags name and nothing else, so the
|
|
7
|
+
* contexts, the rules and every other key a team declared survive. A new project gets the stack
|
|
8
|
+
* the flags ask for.
|
|
9
|
+
*/
|
|
5
10
|
export declare function resolveStack(root: string, options: StackOptions): Config;
|
|
6
11
|
//# sourceMappingURL=resolve-stack.d.ts.map
|