- 新增 ACTcrossServerTabCfg.json 配置文件,定义了多种跨服活动的属性 - 在 .gitignore 文件中添加了 package-lock.json、node_modules 和 config.xml
8 lines
223 B
JavaScript
8 lines
223 B
JavaScript
const fs = require('fs')
|
|
const origin = require('./config.json')
|
|
const start = () => {
|
|
Object.entries(origin).forEach(([key, value]) => {
|
|
fs.writeFileSync(`./configs/${key}.json`, JSON.stringify(value))
|
|
})
|
|
}
|
|
start() |