publish/scripts/postinstall.js
function promptQuestions() {
    prompt.get([{
        name: 'api_key',
        description: 'Your Fabric API Key',
        default: ''
    }, {
        name: 'api_secret',
        description: 'Your Fabric API Secret',
        default: ''
    }], function(err, result) {
        if (err) {
            return console.log(err);
        }
        mergeConfig(result);
        promptQuestionsResult(result);
        askSaveConfigPrompt();
    });
}
function promptQuestions() {
    prompt.get([{
        name: 'api_key',
        description: 'Your Fabric API Key',
        default: ''
    }, {
        name: 'api_secret',
        description: 'Your Fabric API Secret',
        default: ''
    }], function(err, result) {
        if (err) {
            return console.log(err);
        }
        mergeConfig(result);
        promptQuestionsResult(result);
        askSaveConfigPrompt();
    });
}
function promptQuestions ( ) { prompt . get ( [ { name : 'api_key' , description : 'Your Fabric API Key' , default : '' } , { name : 'api_secret' , description : 'Your Fabric API Secret' , default : '' } ] , function ( err , result ) { if ( err ) { return console . log ( err ) ; } mergeConfig ( result ) ; promptQuestionsResult ( result ) ; askSaveConfigPrompt ( ) ; } ) ; }
Prompt the user through the configurable Fabric add-on services
Prompt the user through the configurable Fabric add - on services