Skip to content

Commit

Permalink
chore(gulp): 更换路径和版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
nineya committed Dec 20, 2023
1 parent 5e35ce8 commit 8428f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ task('version', (done) => {
const packagePath = 'package.json'
const themeData = fs.readFileSync(themePath, 'utf8')
.replace(/^version:\s+[^\s]+$/m, 'version: ' + version)
.replace(/^(editorOptions:.+mew=)[^\s]+$/m, '$1' + version)
fs.writeFileSync(themePath, themeData)
let packageData = fs.readFileSync(packagePath, 'utf8')
.replace(/"version":\s*"[^"]+"/, `"version": "${version}"`)
Expand Down
2 changes: 1 addition & 1 deletion theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version: 3.2.0
# 最低支持的 Halo-Plus 版本
require: 1.1.0
# 编辑器配置参数
editorOptions: http://127.0.0.1:8090/themes/dream/source/js/editor-options.min.js?mew=3.2.0
editorOptions: /themes/dream/source/js/editor-options.min.js?mew=3.2.0
# 文章页 meta 变量
postMetaField:
- enable_copyright
Expand Down

0 comments on commit 8428f30

Please sign in to comment.