-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1e5042c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vuepress-theme-vdoing – ./
vuepress-theme-vdoing.vercel.app
xugaoyi.com
vuepress-theme-vdoing-xugaoyi.vercel.app
vuepress-theme-vdoing-git-master-xugaoyi.vercel.app
www.xugaoyi.com