MCPcopy
hub / github.com/eggjs/egg / dumpConfigToObject

Method dumpConfigToObject

src/lib/egg.ts:479–497  ·  view source on GitHub ↗

* dump out the config and meta object * @private

()

Source from the content-addressed store, hash-verified

477 * @private
478 */
479 dumpConfigToObject() {
480 let ignoreList: (string | RegExp)[];
481 try {
482 // support array and set
483 ignoreList = Array.from(this.config.dump.ignore);
484 } catch (_) {
485 ignoreList = [];
486 }
487 const config = extend(true, {}, {
488 config: this.config,
489 plugins: this.loader.allPlugins,
490 appInfo: this.loader.appInfo,
491 });
492 convertObject(config, ignoreList);
493 return {
494 config,
495 meta: this.loader.configMeta,
496 };
497 }
498
499 /**
500 * save app.config to `run/${type}_config.json`

Callers 2

dumpConfigMethod · 0.95
egg.test.tsFile · 0.80

Calls 1

convertObjectFunction · 0.85

Tested by

no test coverage detected