mendixlabs / generator-mendix

Yeoman generator for Mendix widgets
MIT License
17 stars 15 forks source link

Option to start generator in folder that is NOT empty #32

Open Aelion-MM opened 6 years ago

Aelion-MM commented 6 years ago

I would like to get the option to start in a folder that is NOT empty, instead of a complete block.

For instance, when I create a Github project and load that folder locally I would like to be able to use that folder with the generator. Now, this is not possible due to the fact that Github already adds some required files making the folder filled with something.

JelteMX commented 6 years ago

This sounds a bit complicated. Why would you create a Github project first and then add the widget? You could easily run the widget generator and then run git init in the folder itself.

Currently it will run in a folder that is not empty, but it needs a src folder. It will only put the package.json & Gulpfile.js in the folder

Aelion-MM commented 6 years ago

Hi Jelte, not that complicated instead of blocking asking the user if they are sure they want to continue on a folder with some stuff in there, if you do not find a src folder.

I like the create new project wizard of Github that is why I have something in the folder. When I start the Mendix yo generator.