src/main/Project.js
function requireAllEnum(dir) {
    if (!fs.existsSync(dir)) {
        return;
    }
    log.verbose(`......begin to require All Enums:`);
    var files = fs.readdirSync(dir).filter((file) => ((file.startsWith("E") && file.endsWith(".js"))));
    for (var file of files) {
        var fileName = file.substring(0, file.lastIndexOf(".js"));
        global[fileName] = require(path.resolve(dir, file));
        log.verbose(`require enum: ${file}`);
    }
}
function requireAllEnum(dir) {
    if (!fs.existsSync(dir)) {
        return;
    }
    log.verbose(`......begin to require All Enums:`);
    var files = fs.readdirSync(dir).filter((file) => ((file.startsWith("E") && file.endsWith(".js"))));
    for (var file of files) {
        var fileName = file.substring(0, file.lastIndexOf(".js"));
        global[fileName] = require(path.resolve(dir, file));
        log.verbose(`require enum: ${file}`);
    }
}
/*自动require所有的enum