yo
yo copied to clipboard
Warn when running a generator in ~ or /
Might be good. Might be bad.
Probably good. :)
I'd go further and throw and error and prevent the process from running.
Prevent it. No reason to want it to happen.
Unless your generator is generator-dotfiles
. Why is that not a thing yet?
If there is a module to know what the homedir is for a given environment I would also have it at the very least warn when running outside of it. Maybe not for windows. People seem to like their ability to put things all around the place and on different drives
What is the homedir for windows? I feel like there is one but no windows user knows what it is
http://en.wikipedia.org/wiki/Home_directory#Default_home_directory_per_operating_system
This might be more on the generator authors but it should output where the destinationRoot folder is so people are aware as sort of a double check
As I understand it there are some issues on windows with nested node_modules directories generating too long file names. Because obviously putting a limit on the length of a path is a good thing? Anyway, I've heard that as a specific reason for people putting their node projects in a short name folder directly in the root or on a separate drive
https://github.com/sindresorhus/user-home
I feel like this got implemented. @SBoudrias @sindresorhus yes no?
I'm not sure, I think we just implemented an alert if there's a .yo-rc.json
file in the user home dir.
Hi! I would like to work on this.
You're welcome to :).