Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module encapsulation with single in/out point with nesting #624

Open
ssukienn opened this issue Jun 12, 2022 · 2 comments
Open

Module encapsulation with single in/out point with nesting #624

ssukienn opened this issue Jun 12, 2022 · 2 comments
Labels

Comments

@ssukienn
Copy link

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 and submodule can import whatever 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!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Jun 20, 2022
@sverweij sverweij removed the stale label Jun 20, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Jun 28, 2022
@sverweij sverweij removed the stale label Jun 28, 2022
@github-actions github-actions bot added the stale label Jul 6, 2022
Repository owner deleted a comment from github-actions bot Jul 6, 2022
@sverweij sverweij added question and removed stale labels Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants