* dump out the config and meta object * @private
()
| 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` |
no test coverage detected