hung-phan / generator-mithril

Yeoman generator for Mithril.js
7 stars 2 forks source link

generating component restarts all the source #2

Open CatBakun opened 9 years ago

CatBakun commented 9 years ago

Hi! I'm having a problem using the generator. When working on a generate' application's source, and want to generate a component using the sub genearator mithril:component "myAddedComponent" it re-generates the whole source again, no component is added and you lost the changes you made in the source.

You can reproduce doing the folowring: 1 - yo mithril myApp .. choose you stack, etc 2 - Edit any sourcefile 3 - yo mithril:component "myComponent" .. asked again for bootstrap, requirejs and lodash, getting some conflicts, saying all 'yes', etc 4 - check that you lost the changes you made in step 2, and no 'myComponent' was added.

Am I missing something between step 1 and 3 that is causing this?

Thanks!!

hung-phan commented 9 years ago

Thanks @CatBakun for reporting. I did follow your steps but could not reproduce any error that you got there. Here, what I got.

screen shot 2015-01-11 at 1 15 33 am screen shot 2015-01-11 at 1 15 42 am

Perhaps, the simplest solution is to update the generator and all of its dependencies.