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

Document app re-export #203

Open
mehulkar opened this issue Oct 3, 2020 · 1 comment
Open

Document app re-export #203

mehulkar opened this issue Oct 3, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@mehulkar
Copy link
Contributor

mehulkar commented Oct 3, 2020

Document why addons re-export everything from addon/ into app/.

@jenweber jenweber added the help wanted Extra attention is needed label Mar 29, 2021
@jenweber
Copy link
Contributor

If anyone wants to pick up this ticket, here are some suggestions!

This content can be added here: https://cli.emberjs.com/release/writing-addons/#addon

There is a minimal explanation there, but it could be improved. My understanding is that the main reason things are re-exported in app is because the app files in the addon are merged with the app files of the app. This allows Ember devs to use things like addon components using the exact same syntax and patterns they would use if the component existed directly in their own app.

Many times, addon authors have additional files in the addon folder that they do not re-export as public API, so it's good to have the distinction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants