refactor: 도메인이 100개 1000개씩 늘어나도 유지보수 쉬운 구조로 변경

This commit is contained in:
donghyeon-ka
2026-09-24 00:42:21 +09:00
parent 91ae42a2a7
commit 6f6c48ebb7
1274 changed files with 290812 additions and 0 deletions
@@ -0,0 +1,26 @@
import { defineFeatureModule } from "../feature-module.ts";
import { REFERENCE_FEATURE_ADAPTER_CONTRIBUTION } from "./adapters/create-reference-feature-input.ts";
import {
REFERENCE_FEATURE_CONTRACT,
REFERENCE_FEATURE_ID,
} from "./contracts/reference-feature-contract.ts";
import { REFERENCE_FEATURE_TEMPLATE_CONTRIBUTION } from "./contracts/reference-feature-contract-contribution.ts";
import { REFERENCE_MESSAGE_CATALOGS } from "./contracts/reference-message-catalog.ts";
import { REFERENCE_FEATURE_RUNTIME_DESCRIPTOR } from "./presentation/reference-feature-runtime-descriptor.ts";
export const FEATURE_MODULE_ID =
"reference-feature" satisfies typeof REFERENCE_FEATURE_ID;
/** Owning bounded context (route root and budget live in its declaration). */
export const FEATURE_CONTEXT_ID = "reference-context";
export const REFERENCE_FEATURE_MODULE = defineFeatureModule({
id: FEATURE_MODULE_ID,
contracts: REFERENCE_FEATURE_CONTRACT,
routes: REFERENCE_FEATURE_CONTRACT.routes,
adapters: [REFERENCE_FEATURE_ADAPTER_CONTRIBUTION],
runtimes: [REFERENCE_FEATURE_RUNTIME_DESCRIPTOR],
messages: REFERENCE_MESSAGE_CATALOGS,
contractContributions: [REFERENCE_FEATURE_TEMPLATE_CONTRIBUTION],
} as const);
export const FEATURE_MODULE = REFERENCE_FEATURE_MODULE;