const parseArgs = require('minimist'); const fs = require('fs'); const assert = require('assert'); const constant = require('./constant'); class CfgChecker { constructor() { this.projHash = {}; } async init() { await this.addProj(constant.PROJ_WEB3BCSPIDER); } async addProj(projName, confDir, resDir) { const proj = new(require('./projects/' + projName)); proj.confDir = confDir; proj.resDir = resDir; console.log('addProj ', projName, confDir, resDir); } } (new CfgChecker).init();