lib/setup.js
function isSetupRequired (program) {
  const config = dotfile.get() || {}
  const hasPublisher = (config.publisher || program.publisher)
  const hasDevCert = (config.devCert || program.devCert)
  const hasWindowsKit = (config.windowsKit || program.windowsKit)
  const hasBaseImage = (config.expandedBaseImage || program.expandedBaseImage)
  const hasConverterTools = (config.desktopConverter || program.desktopConverter)

  if (!program.containerVirtualization) {
    return (hasPublisher && hasDevCert && hasWindowsKit)
  } else {
    return (hasPublisher && hasDevCert && hasWindowsKit && hasBaseImage && hasConverterTools)
  }
}
function isSetupRequired (program) {
  const config = dotfile.get() || {}
  const hasPublisher = (config.publisher || program.publisher)
  const hasDevCert = (config.devCert || program.devCert)
  const hasWindowsKit = (config.windowsKit || program.windowsKit)
  const hasBaseImage = (config.expandedBaseImage || program.expandedBaseImage)
  const hasConverterTools = (config.desktopConverter || program.desktopConverter)

  if (!program.containerVirtualization) {
    return (hasPublisher && hasDevCert && hasWindowsKit)
  } else {
    return (hasPublisher && hasDevCert && hasWindowsKit && hasBaseImage && hasConverterTools)
  }
}
function isSetupRequired ( program ) { const config = dotfile . get ( ) || { } const hasPublisher = ( config . publisher || program . publisher ) const hasDevCert = ( config . devCert || program . devCert ) const hasWindowsKit = ( config . windowsKit || program . windowsKit ) const hasBaseImage = ( config . expandedBaseImage || program . expandedBaseImage ) const hasConverterTools = ( config . desktopConverter || program . desktopConverter ) if ( ! program . containerVirtualization ) { return ( hasPublisher && hasDevCert && hasWindowsKit ) } else { return ( hasPublisher && hasDevCert && hasWindowsKit && hasBaseImage && hasConverterTools ) } }
Determines whether all setup settings are okay.

@returns {boolean} - Whether everything is setup correctly.
Determines whether all setup settings are okay .