-
Notifications
You must be signed in to change notification settings - Fork 905
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
WIP: feat: Init for currently exising folders #1591
WIP: feat: Init for currently exising folders #1591
Conversation
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
@adamTrz mind having a look here? :) |
Hey @kuzkokov
I would say that maybe instead of throwing an error we could prompt the user with some kind of a warning that those files exists and ask them for confirmation? |
# Conflicts: # __e2e__/init.test.ts # packages/cli/src/commands/init/editTemplate.ts # packages/cli/src/commands/init/init.ts
hey, @adamTrz the only thing here is that we will need to add an additional flag like |
or, even a much simpler solution. we can just add the
|
@thymikee - pinging for second opinion here? WDYT? :D |
As I understand the use case here: we're in some folder, run |
Well, actually, my use case seems to be exactly something that shouldn't normally happen. |
@thymikee so, any thoughts? |
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
well, it isn't stale actually, it's still might be merged |
Summary:
Hey, guys. So, this is a third attempt at implementing project init in the existing folder.
Basically, I took #1446 and implement fixes from @grabbou code-review.
Then I realized that we should take underscored file names from templates into account and implemented it too.
And then I realized that we also change the template placeholder on the project name, including the renaming of folders and files, so we probably should take this into account as well.
But just now I came across this reply, and now I'm confused — do we even have to worry about any conflicts? If so, why?
So now it's more of an issue for discussion rather than PR to review because it most certainly will have some finalization or complete rewriting.
Test Plan: