micc83/Nuwk

package.json rewrite

michahell opened this issue · 2 comments

I seem to experience that my package.json gets rewritten every time i launch my app using Nuwk. not only is the formatting entirely gone, but also settings such as toolbar:false get overwritten into toolbar:true which is not what i want :) what could cause this?

Nuwk! seems like a really handy tool really!

Hi @michahell,
If you click "Run project" the toolbar is shown while on build the toolbar is always removed. To fix that you can edit the controllers.js file in Nuwk!.app/Contents/Resources/app.nw/js/controllers.js removing the following line:
https://github.com/micc83/Nuwk/blob/master/js/controllers.js#L176

Thanks @micc83! i was under the impression when just running a project, the toolbar should be hidden also. I was modifying package.json in the App folder. But then i know it's for debugging purposes, thanks! Michael