lib/cli.js
function resolveApp(file) {
    if (fs.existsSync(file.path)) {
      const Base = require(file.path);
      const base = new Base(null, opts);
      base.define('log', log);

      if (typeof base.name === 'undefined') {
        base.name = file.name;
      }

      // if this is not an instance of base-app, load
      // app-base plugins onto the instance
      // if (file.name !== 'core') {
      //   Core.plugins(base);
      // }
      return base;
    }
  }
function resolveApp(file) {
    if (fs.existsSync(file.path)) {
      const Base = require(file.path);
      const base = new Base(null, opts);
      base.define('log', log);

      if (typeof base.name === 'undefined') {
        base.name = file.name;
      }

      // if this is not an instance of base-app, load
      // app-base plugins onto the instance
      // if (file.name !== 'core') {
      //   Core.plugins(base);
      // }
      return base;
    }
  }
function resolveApp ( file ) { if ( fs . existsSync ( file . path ) ) { const Base = require ( file . path ) ; const base = new Base ( null , opts ) ; base . define ( 'log' , log ) ; if ( typeof base . name === 'undefined' ) { base . name = file . name ; } // if this is not an instance of base-app, load // app-base plugins onto the instance // if (file.name !== 'core') { //   Core.plugins(base); // } return base ; } }
Try to resolve the path to the given module, require it,
and create an instance
Try to resolve the path to the given module require it and create an instance