-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(generators): support for component subdirectory #2285
Conversation
@kateinkim @joshuayoes @jamonholmgren Any suggestions here to solve the relative path import back to the I could of course clear out the Text component and remove the associated style. How do we feel about adding a prop for |
Instead of adding multiple props, what if we just included one It would make the paths a little more verbose than necessary in the output, but I think it would be more clear writing them in the generator file. The generator would look something like this:
The test case
Then the user can manually update it if it bother them |
I think the alternative solution here would be to add typescript alias paths to ignite |
Ah right, which I did in a cookbook recipe. Good thought also. |
@frankcalise Sorry I'm not feeling so great right now so I might be missing something but I'm not really clear on the distinction we're making here between |
Don't be sorry @kateinkim! You are correct in that @jamonholmgren want to weigh in here? |
I wrote another draft PR of an idea to make implementing this easier: #2317 If we go with using a tool like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! I'm a fan of the ~/
alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
# [8.6.0](v8.5.2...v8.6.0) (2023-03-29) ### Features * **generators:** support for component subdirectory ([#2285](#2285) by [@frankcalise](https://github.com/frankcalise)) ([84c5c69](84c5c69))
🎉 This PR is included in version 8.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Please verify the following:
yarn test
jest tests pass with new tests, if relevantREADME.md
has been updated with your changes, if relevantDescribe your PR
subdirectory
(to extend other templates)