lib/config/buildParser.js
function isAppServer(inputpaths, serverConfig) {
  // Test if 'p' is in 'dirs'
  function contains(dirs, p) {
    if (!Array.isArray(dirs)) dirs = [dirs];
    return dirs.some(dir => {
      return indir(dir, p);
    });
  }

  return serverConfig != undefined && serverConfig.file != undefined && contains(inputpaths, serverConfig.file);
}
function isAppServer(inputpaths, serverConfig) {
  // Test if 'p' is in 'dirs'
  function contains(dirs, p) {
    if (!Array.isArray(dirs)) dirs = [dirs];
    return dirs.some(dir => {
      return indir(dir, p);
    });
  }

  return serverConfig != undefined && serverConfig.file != undefined && contains(inputpaths, serverConfig.file);
}
function isAppServer ( inputpaths , serverConfig ) { // Test if 'p' is in 'dirs' function contains ( dirs , p ) { if ( ! Array . isArray ( dirs ) ) dirs = [ dirs ] ; return dirs . some ( dir => { return indir ( dir , p ) ; } ) ; } return serverConfig != undefined && serverConfig . file != undefined && contains ( inputpaths , serverConfig . file ) ; }
Determine if 'inputpaths' contain server file
@param {Array} inputpaths
@param {Object} serverConfig
@returns {Boolean}
Determine if inputpaths contain server file