dependency-cruiser
dependency-cruiser copied to clipboard
Module encapsulation with single in/out point with nesting
Hi. Amazing tool! I tried looking for an example but could not find it.
Could you help me visualize how would look config for tree like:
- ... (whatever)
- src
- ... (whatever)
- module_A
- api_A.ts
- submodule_AA
- index.ts
- ... (whatever)
- submodule_BB
- index.ts
- ... (whatever)
- ... (whatever)
- module_B
- (analogical)
Going bottom-up:
-
submodule
internals cannot be exported outside of submodule -
submodule index.ts
can be exported outside of submodule -
module
internals cannot be exported outside of module -
module api.ts
can be exported outside of module - both
module
andsubmodule
can importwhatever
from the module OR src level
Also few extra questions. Can we somehow limit exports
grom certain files to a specific class/function/name only?
Are there any benchmarks?
Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.