-
Notifications
You must be signed in to change notification settings - Fork 8
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
Trim react-native from the name in the same places create-rn-library and Codegen does #123
Conversation
5cd24f4
to
75ad20e
Compare
I haven't yet got the test running in CI, but I think that can wait for another PR. Marking ready for review. |
crates/ubrn_cli/src/codegen/mod.rs
Outdated
@@ -264,7 +264,7 @@ mod files { | |||
templated_file!(IndexTs, "index.ts"); |
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.
Should this also end in .tsx
?
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.
Yes, you're right. I renamed the template file and made this index.tsx
to match. I also renamed the IndexTs
struct.
Thanks for prompting me out of laziness. :)
75ad20e
to
07855bd
Compare
07855bd
to
47d5ef0
Compare
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.
LGTM
Fixes #124 According to [The Big O of Code Reviews](https://www.egorand.dev/the-big-o-of-code-reviews/), this is a O(_n_) change. This adds to the tests introduced in #123 to support names with an org name.
Fixes #109.
This PR adds testing around the turbo-modules.
The tests runs through a host of different names, then
create-react-native-library
with that name.ubrn generate turbo-module
commandcreate-react-native-library
filesThis has meant a series of changes (for the better) to the templates.