xxrc 解析配置文件
const { ConfigFactory } = require('ray-rc');
const cf = new ConfigFactory({ appName: 'mf' });
const config = cf.loadFile(path.resolve(process.cwd(), '.mfrc'));
const config2 = cf.loadFile(path.resolve(process.cwd(), '.mfrc.yaml'));
// dir 读取文件顺序 '.mfrc.js', '.mfrc.cjs', '.mfrc.yaml', '.mfrc.yml', '.mfrc.json', '.mfrc', 'package.json'
const dirConfig = cf.loadDir();
console.log('mf:', config);
console.log('typeof:', typeof config);
console.log('mf2:', config2);
console.log('dirConfig:', dirConfig);
console.log('dirConfig typeof:', typeof dirConfig);