-
Notifications
You must be signed in to change notification settings - Fork 106
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 yeoman-app root folder #104
Comments
I think its something to do with path selection which might be trying do unix style in windows |
Tested few other generators all does the same, files are generated in yeoman-app root folder instead of the folder i selected |
guys I can try to debug and fix this but where should I start looking at?? |
First you should read the basics how the app and the ipc communication works: https://github.com/yeoman/yeoman-app/blob/master/docs/events.md On windows 7 it generates the files in the selected folder. From your logs I can see that the target path seems to be correct.
Try to replace the function run(generatorName, cwd) {
process.chdir(cwd);
fs.mkdirSync('yeoman-says-hello');
sendCommandToAppWindow('generator:done', cwd);
} |
Ok guys I did a small test and this indeed might be a yeoman-environment issue I wrote the below and ran it and it behaves the same as in issue, the files are generated in the root folder where I run instead of the specified folder. Ill open a issue in yeoman-environment as well
|
most probably a |
You were right for the sample above which caused the same behavior. But for the behavior within the yeoman-app which I originally reported in this issue is not the case as the yeoman-app root folder did not have any |
can you open this plz as its still an issue |
Yeah, let's reopen this one for now. This does works fine with |
not just yeoman-app, its probably something to do with yeoman-environment Thanks & Regards, On Thu, Feb 25, 2016 at 3:29 PM, Simon Boudrias [email protected]
|
What kind of files are generated in the yeoman-app directory? Always the same files or is it random? What is your OS? |
All the app and test files that particular generator generated. I am on OSX On Mon, Mar 28, 2016 at 9:45 PM, Stefan Buck [email protected]
with regards, markdownblogger.herokuapp.com www.phprepo.in http://twitter.com/revathskumar http://www.linkedin.com/in/revathskumar |
platform: windows
node v5.5 npm v37.1
Generator used: https://github.com/jhipster/generator-jhipster
when running the generator even when i select a folder the files are cretaed in the actual yeoman-app root folder, there are some folders alone created in the folder I choose.
Trace below.
PS: we use the this.copy and this.template methods to write files
The text was updated successfully, but these errors were encountered: