constructor()

in packages/build-tools/console-toolkit-plugin-xconsole-fs-route/src/route/GlobalMeta.ts [26:38]


  constructor(cwd: string, options: GlobalOptions) {
    this.hasUIConfig = existWithExt(resolve(cwd, 'src/ui'));
    this.hasWidgetLoader = existWithExt(resolve(cwd, 'src/loader'));
    this.hasEntryCode = existWithExt(resolve(cwd, 'src/app'));
    this.hasAppConfig = existWithExt(resolve(cwd, 'src/appConfig'));
    this.hasLayout = existWithExt(resolve(cwd, 'src/layout'));
    this.indexRoute = options.indexRoute;
    this.prefix = options.prefix;
    this.mode = options.mode || 'browser';
    this.appId = options.appId || 'os-app';

    this.parseIndexRoute();
  }