feat: v1.12.9
This commit is contained in:
parent
6bfc99dc50
commit
1e5042c61a
|
|
@ -4,6 +4,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "export NODE_OPTIONS=--openssl-legacy-provider && node --max_old_space_size=4096 ./node_modules/vuepress/cli.js dev docs",
|
"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",
|
"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",
|
"deploy": "bash deploy.sh",
|
||||||
"editFm": "node utils/editFrontmatter.js",
|
"editFm": "node utils/editFrontmatter.js",
|
||||||
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
|
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
|
||||||
|
|
@ -25,7 +27,7 @@
|
||||||
"vuepress-plugin-sitemap": "^2.3.1",
|
"vuepress-plugin-sitemap": "^2.3.1",
|
||||||
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
||||||
"vuepress-plugin-zooming": "^1.1.7",
|
"vuepress-plugin-zooming": "^1.1.7",
|
||||||
"vuepress-theme-vdoing": "^1.12.8",
|
"vuepress-theme-vdoing": "^1.12.9",
|
||||||
"yamljs": "^0.3.0"
|
"yamljs": "^0.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vuepress-theme-vdoing",
|
"name": "vuepress-theme-vdoing",
|
||||||
"version": "1.12.8",
|
"version": "1.12.9",
|
||||||
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "gaoyi(Evan) Xu"
|
"name": "gaoyi(Evan) Xu"
|
||||||
|
|
@ -50,6 +50,9 @@
|
||||||
"@vuepress/types": "^1.9.5"
|
"@vuepress/types": "^1.9.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.17.0"
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"vdoing": "./bin/checkVersion.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue