-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Creating a new app in the current directory #334
Creating a new app in the current directory #334
Comments
@gaearon I can take this one. |
@torifat 👍 |
@gaearon @thejameskyle in my opinion, allowing it in empty directory is a better choice. But, in case you guys prefer it in a non-empty directory. What would be the strategy for conflict? |
Currently the behavior is that you can only run But, if we let you run |
@lacker yeah, I thought about ignoring hidden files/directories. But, since we have a |
If it's an empty directory except for a |
Checking for |
If we're in the game of guessing things that would not conflict, I would only check if there's a package.json file. If that's the case, then it's probably unsafe, otherwise should be good to go. |
@torifat you do this? if not, I am willing to do it~ |
@stephenkingsley yes, I'm working on it. I will knock you if I couldn't manage any extra time in next 2 days. |
@torifat 💪 👍 |
@gaearon we are using deprecated NodeJS APIs. Should I update them too? |
Ideally yes. It doesn't make sense to rewrite this as callback-heavy code though (this is a console utility after all). So maybe worth looking if |
Sindre is here to help
|
@gaearon BTW, is there any way to do it without modifying the
|
Replacing |
@thejameskyle I have already done that. |
status on this @torifat? did it ever get merged? |
@KevinMind Gave this a go in an empty directory (that also happened to be a repo). Worked fine with |
Works for me. |
It would be nice if this worked
The text was updated successfully, but these errors were encountered: