no userconf.json - cannot prepare
rikoopa opened this issue · comments
i want to prepare sectv-orsay with
grunt sectv-prepare:sectv-orsay
with inquirer prompt, we get asked about the Application Name, Description, Version etc.
After the Authro IRI nothing happens and i cant find out why. The userconf.json is not written and therefore i cant build.
in grunt-cordova-sectv/tasks/packager/sect-orsay.js line 302 i cant create console logs for some reason.
if i use callback(cordovaConf) instead, the userconf.json is written succesfull, but i think the cordovaConf is not the needed format.
Same problem here. Debugging it I found out that Inquirer no longer supports sending a callback as a parameter, and instead returns a promise. Switching all calls to inquirer in grunt-cordova-sectv/tasks/packager/sectv-orsay.js
and/or grunt-cordova-sectv/tasks/packager/sectv-tizen.js
from:
inquirer.prompt(ask, function(answers) {
callback(answers);
});
to:
inquirer.prompt(ask).then(function(answers){
callback(answers);
});
Seems to work. This should be a ticket in grunt-cordova-sectv
, I suppose.
thank you, you are right.