Skip to content

Commit

Permalink
feat: v1.12.9
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Aug 4, 2023
1 parent 6bfc99d commit 1e5042c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"scripts": {
"dev": "export NODE_OPTIONS=--openssl-legacy-provider && node --max_old_space_size=4096 ./node_modules/vuepress/cli.js dev docs",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && node --max_old_space_size=4096 ./node_modules/vuepress/cli.js build docs",
"predev": "vdoing",
"prebuild": "vdoing",
"deploy": "bash deploy.sh",
"editFm": "node utils/editFrontmatter.js",
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
Expand All @@ -25,7 +27,7 @@
"vuepress-plugin-sitemap": "^2.3.1",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.12.8",
"vuepress-theme-vdoing": "^1.12.9",
"yamljs": "^0.3.0"
}
}
16 changes: 16 additions & 0 deletions vdoing/bin/checkVersion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env node

const semver = require('semver');
const chalk = require('chalk');
const requiredVersion = require('../package.json').engines.node;

// check version
if (!semver.satisfies(process.version, requiredVersion)) {
console.log(chalk.red(
`\n[vdoing] minimum Node version not met:`
+ `\nYou are using Node ${process.version}, but vdoing `
+ `requires Node ${requiredVersion}.\nPlease upgrade your Node version.\n`
+ `请升级你的 Node 版本到 ${requiredVersion}.\n`
))
process.exit(1)
}
7 changes: 5 additions & 2 deletions vdoing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.12.8",
"version": "1.12.9",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down Expand Up @@ -50,6 +50,9 @@
"@vuepress/types": "^1.9.5"
},
"engines": {
"node": ">=14.17.0"
"node": ">=18.0.0"
},
"bin": {
"vdoing": "./bin/checkVersion.js"
}
}

1 comment on commit 1e5042c

@vercel
Copy link

@vercel vercel bot commented on 1e5042c Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.