src/postinstall/index.js
function configureConfigFile(err, result) {
  for (var key in result) {
    if (key === 'port' && !result[key] || key === 'port' && result[key] !== result[key]) {
      shell.echo('exports.' + key + ' = 8080' + '\n').toEnd(clientFiles.config)
    } else {
      shell.echo('exports.' + key + ' = ' + JSON.stringify(result[key]) + '\n').toEnd(clientFiles.config)
    }
  }
  if (err) {
    return onErr(err)
  }
  console.log(chalk.yellow('Here\'s what I\'ve got down, if something is wrong you can edit this in your enclave.js file.:'))
  console.log(chalk.red('  entry: ') + chalk.magenta(result.entry))
  console.log(chalk.red('  output: ') + chalk.magenta(result.output))
  console.log(!result.port ? chalk.red('  port: 8080') : chalk.red('  port: ') + chalk.magenta(result.port))
  console.log(chalk.red('  index: ') + chalk.magenta(result.index))
  console.log(chalk.red('  autoInstall: ') + chalk.magenta(result.autoInstall))
  console.log(chalk.red('  live: ') + chalk.magenta(result.live))
  console.log(chalk.green('To run your app, just type'), chalk.green.bold('$ npm run enclave-serve'))
  shell.sed(insertScript.flag, insertScript.insertionPoint, insertScript.addition, insertScript.file)
  preventFinishFor(5000)
}
function configureConfigFile(err, result) {
  for (var key in result) {
    if (key === 'port' && !result[key] || key === 'port' && result[key] !== result[key]) {
      shell.echo('exports.' + key + ' = 8080' + '\n').toEnd(clientFiles.config)
    } else {
      shell.echo('exports.' + key + ' = ' + JSON.stringify(result[key]) + '\n').toEnd(clientFiles.config)
    }
  }
  if (err) {
    return onErr(err)
  }
  console.log(chalk.yellow('Here\'s what I\'ve got down, if something is wrong you can edit this in your enclave.js file.:'))
  console.log(chalk.red('  entry: ') + chalk.magenta(result.entry))
  console.log(chalk.red('  output: ') + chalk.magenta(result.output))
  console.log(!result.port ? chalk.red('  port: 8080') : chalk.red('  port: ') + chalk.magenta(result.port))
  console.log(chalk.red('  index: ') + chalk.magenta(result.index))
  console.log(chalk.red('  autoInstall: ') + chalk.magenta(result.autoInstall))
  console.log(chalk.red('  live: ') + chalk.magenta(result.live))
  console.log(chalk.green('To run your app, just type'), chalk.green.bold('$ npm run enclave-serve'))
  shell.sed(insertScript.flag, insertScript.insertionPoint, insertScript.addition, insertScript.file)
  preventFinishFor(5000)
}
function configureConfigFile ( err , result ) { for ( var key in result ) { if ( key === 'port' && ! result [ key ] || key === 'port' && result [ key ] !== result [ key ] ) { shell . echo ( 'exports.' + key + ' = 8080' + '\n' ) . toEnd ( clientFiles . config ) } else { shell . echo ( 'exports.' + key + ' = ' + JSON . stringify ( result [ key ] ) + '\n' ) . toEnd ( clientFiles . config ) } } if ( err ) { return onErr ( err ) } console . log ( chalk . yellow ( 'Here\'s what I\'ve got down, if something is wrong you can edit this in your enclave.js file.:' ) ) console . log ( chalk . red ( '  entry: ' ) + chalk . magenta ( result . entry ) ) console . log ( chalk . red ( '  output: ' ) + chalk . magenta ( result . output ) ) console . log ( ! result . port ? chalk . red ( '  port: 8080' ) : chalk . red ( '  port: ' ) + chalk . magenta ( result . port ) ) console . log ( chalk . red ( '  index: ' ) + chalk . magenta ( result . index ) ) console . log ( chalk . red ( '  autoInstall: ' ) + chalk . magenta ( result . autoInstall ) ) console . log ( chalk . red ( '  live: ' ) + chalk . magenta ( result . live ) ) console . log ( chalk . green ( 'To run your app, just type' ) , chalk . green . bold ( '$ npm run enclave-serve' ) ) shell . sed ( insertScript . flag , insertScript . insertionPoint , insertScript . addition , insertScript . file ) preventFinishFor ( 5000 ) }
This method is really ugly and implicit, I'm sorry.

It loops through the prompt's result object, and adds each result to a file in the user's root
to be referenced later.

It also console logs the result object with this weird color library that extends the String
prototype to have color properties, god this is terrible.
@param err
@param {object} result
@returns {number}
This method is really ugly and implicit I m sorry .