Skip to content

Commit cf02e57

Browse files
committed
feat: update deps
1 parent af60681 commit cf02e57

File tree

5 files changed

+1144
-1236
lines changed

5 files changed

+1144
-1236
lines changed

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
pnpm nano-staged

docs/.vuepress/config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { viteBundler } from "@vuepress/bundler-vite";
12
import { defineUserConfig } from "vuepress";
23
import theme from "./theme.js";
34

@@ -53,6 +54,8 @@ export default defineUserConfig({
5354
],
5455
],
5556

57+
bundler: viteBundler(),
58+
5659
theme,
5760

5861
pagePatterns: ["**/*.md", "!**/*.snippet.md", "!.vuepress", "!node_modules"],

docs/.vuepress/theme.ts

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { getDirname, path } from "@vuepress/utils";
1+
import { getDirname, path } from "vuepress/utils";
22
import { hopeTheme } from "vuepress-theme-hope";
3-
import { componentsPlugin } from "vuepress-plugin-components";
43

54
import navbar from "./navbar.js";
65
import sidebar from "./sidebar/index.js";
@@ -30,15 +29,7 @@ export default hopeTheme({
3029
'<a href="https://beian.miit.gov.cn/" target="_blank">鄂ICP备2020015769号-1</a>',
3130
displayFooter: true,
3231

33-
pageInfo: [
34-
"Author",
35-
"Category",
36-
"Tag",
37-
// "Date",
38-
"Original",
39-
"Word",
40-
"ReadingTime",
41-
],
32+
pageInfo: ["Author", "Category", "Tag", "Original", "Word", "ReadingTime"],
4233

4334
blog: {
4435
intro: "/about-the-author/",
@@ -72,7 +63,9 @@ export default hopeTheme({
7263
],
7364
},
7465
},
66+
7567
blog: true,
68+
7669
copyright: {
7770
author: "JavaGuide(javaguide.cn)",
7871
license: "MIT",

package.json

+12-16
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,27 @@
1212
"lint": "pnpm lint:prettier && pnpm lint:md",
1313
"lint:md": "markdownlint-cli2 '**/*.md'",
1414
"lint:prettier": "prettier --check --write .",
15-
"prepare": "husky install",
15+
"prepare": "husky",
1616
"update": "pnpm dlx vp-update"
1717
},
1818
"nano-staged": {
1919
"**/*": "prettier --write --ignore-unknown",
2020
".md": "markdownlint-cli2"
2121
},
22-
"packageManager": "pnpm@8.13.1",
22+
"packageManager": "pnpm@8.15.1",
2323
"dependencies": {
24-
"@vuepress/client": "2.0.0-rc.0",
25-
"@vuepress/plugin-search": "2.0.0-rc.0",
26-
"@vuepress/utils": "2.0.0-rc.0",
27-
"husky": "8.0.3",
28-
"markdownlint-cli2": "0.11.0",
24+
"@vuepress/bundler-vite": "2.0.0-rc.6",
25+
"@vuepress/plugin-copyright": "2.0.0-rc.11",
26+
"@vuepress/plugin-feed": "2.0.0-rc.11",
27+
"@vuepress/plugin-search": "2.0.0-rc.11",
28+
"husky": "9.0.10",
29+
"markdownlint-cli2": "0.12.1",
2930
"mathjax-full": "3.2.2",
3031
"nano-staged": "0.8.0",
3132
"nodejs-jieba": "0.1.2",
32-
"prettier": "3.1.1",
33-
"vue": "^3.4.13",
34-
"vuepress": "2.0.0-rc.0",
35-
"vuepress-plugin-copyright2": "2.0.0-rc.11",
36-
"vuepress-plugin-feed2": "2.0.0-rc.11",
37-
"vuepress-theme-hope": "2.0.0-rc.11"
38-
},
39-
"devDependencies": {
40-
"vuepress-plugin-components": "2.0.0-rc.11"
33+
"prettier": "3.2.5",
34+
"vue": "3.4.15",
35+
"vuepress": "2.0.0-rc.6",
36+
"vuepress-theme-hope": "2.0.0-rc.22"
4137
}
4238
}

0 commit comments

Comments
 (0)