-
Notifications
You must be signed in to change notification settings - Fork 16
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: use basepath name for project name and add on-create hook #4
Conversation
Great work! That's exactly what I was looking for. I've left some comments, so please check them. And... do you think we can write tests? It would be better to have some, but I understand it might be difficult for this kind of CLI. I know there are some |
Thank you for the reviews. I resolved the all conversations. About the tests, If you need me to do it, I'll do it. |
Hello! Sorry for the intrusion, just a free time checking random PRs hehe! What about test only the core logic Seems important since the quantity of templates should grow with different logics, i can help you if you want. Thanks! |
Hi @raphaelkieling, No problem! I agree. @sor4chi, can you try it? I think an integration test is hard because it has to create an actual project (but, it may be possible if we do proper cleanup?). |
Hi, @raphaelkieling , @yusukebe I tried to write some tests, how about this? |
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.
Commented. And please delete pnpm-lock.yaml
.
Hi @sor4chi,
Thanks! I think it's almost good, but please give me a while. I'll reconsider this design once more (there may be no problem). |
9a714b5
to
37dd246
Compare
What do you think creating a class for "Hook" like the following: https://github.com/honojs/create-hono/blob/current-directory-name-class/src/hook.ts This will be useful to make other hooks and make the code clean, I think. |
@yusukebe I will adopt the code as is. Thank you! |
@yusukebe |
I'd prefer not to. I think it's not needed if |
Thank you. I understand! |
I'm done! |
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.
I've left a comment.
Opps, i fixed! |
Cool! Looks good! @raphaelkieling do you have any comment? |
@yusukebe @sor4chi awesome work, definitely a more resilient approach since would be really easy to extend for My suggestion for now or in near future is to create file a called What do you think? |
Hi @raphaelkieling, Thank you for sharing your suggestion! Your way is good for a separation of concerns. I think we should not do it now, but we can consider it in the near future when new hooks will be added. So, I'd like to go with this for now. @sor4chi, what do you think? |
I think it's fine to release it once with this and sort it out if it becomes a problem, as I can add it later as well, and I don't think there's much benefit enough to manage it that neatly right now. |
Okay! Let's ship it. |
Hi, @yusukebe
I implemented what we discussed in honojs/hono#1563 to try it out. What do you think?