1 Star 0 Fork 0

zuanzua / hexo-theme-ayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
move_config.js 417 Bytes
一键复制 编辑 原始数据 按行查看 历史
沈宇 提交于 2020-08-24 12:20 . :rocket:npm support
const fs = require('fs')
if (fs.existsSync('../hexo/package.json')) {
const version = JSON.parse(fs.readFileSync('../hexo/package.json')).version
if (version.split('.')[0] === '5') {
const configPath = '../../_config.ayer.yml'
if (!fs.existsSync(configPath)) {
fs.writeFileSync(configPath, fs.readFileSync('./_config.yml'))
}
fs.unlinkSync('./_config.yml')
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/OvOhubert/hexo-theme-ayer.git
git@gitee.com:OvOhubert/hexo-theme-ayer.git
OvOhubert
hexo-theme-ayer
hexo-theme-ayer
master

搜索帮助