-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Generator creates all app files in the root folder instead of specified [windows] #55
Comments
You probably have a
|
you are right for this I didnt notice I had a .yo-rc file in the root as I Thanks & Regards, On Thu, Feb 25, 2016 at 3:22 AM, Simon Boudrias [email protected]
|
@SBoudrias Im sorry seems I was wrong, this is still in an issue even if I remove the yo-rc file from the root. The cwd into the desired folder has no effect as the files are still created at the root folder from where the program was invoked. So this still seems like a bug,could you plz reopen this? could this be the problem? if I do the cwd before
|
I found a workaround. This creates the files in the directory i want, without having to cwd into the directory
|
any For testing check http://yeoman.io/authoring/testing.html - especially the part about using tmp directories. |
I dont have any seems like yeoman-environment dumps all files into the folder where of course this will not have issues when normal yo generators are run as the environment will be instantiated at the folder from were it is run. but if we want to use yeoman-environment from other tools I guess this behavior is not acceptable. |
And that's happening only with the yeoman app? I don't know of anyone else running in this issue using yo. |
yes coz with yo you dont have an option to choose a folder to generate to, Thanks & Regards, On Thu, Feb 25, 2016 at 3:27 PM, Simon Boudrias [email protected]
|
Platform : windows
I was checking out yeoman-app and found that when running a generator all the generator files are created in the folder where I run the app irrespective of whet folder I choose I raised an issue here yeoman/yeoman-app#104
But then I wrote a simple test and tried it out as below and the issue seems to be in yeoman-environment itself, say I executed this in a folder
d:/app
folder and i have a sub folder theretestDir
and I switched to the sub directory before invokingenv.run()
but still files were created in thed:/app
folder instead ofd:/app/testDir
folder. But there is a empty set of all the folders alone created insided:/app/testDir
Seems like the mkdir commands are executed on the current directory while copy files are executed on the directory where environment was initilized
The text was updated successfully, but these errors were encountered: