aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/package.json
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-09-06 17:04:49 +0800
committershu <nvcsadjkojf@outlook.com>2026-09-06 17:04:49 +0800
commit2f1057a9d9d51d0e657c1203d3781173e8efc611 (patch)
tree2f73e849ca435ac071fce3a58baa411005bcf5bc /package.json
初始化 React TypeScript 模板并实现 Mantine 响应式基础布局
- 使用 Vite、React 和 TypeScript 初始化项目,配置 pnpm、Oxlint 与 Mantine PostCSS - 接入 React Router Data Mode,将页面路由、菜单标题和图标统一维护在路由配置中 - 添加首页、关于概览与关于我页面,使用 Nested NavLinks 根据路由生成多级菜单 - 实现桌面侧栏展开和图标模式、移动端全宽抽屉以及与品牌区对齐的顶栏 - 将布局自定义样式拆分为 CSS Modules,统一 xs 间距并固定菜单图标列位置 - 添加文档流页脚,展示自动更新年份的示例版权说明 - 配置 Mantine 默认圆角、项目说明及中文提交约定 验证:pnpm build、pnpm lint、git diff --cached --check 均通过。
Diffstat (limited to 'package.json')
-rw-r--r--package.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..35b5261
--- /dev/null
+++ b/package.json
@@ -0,0 +1,36 @@
+{
+ "name": "template-react",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "lint": "oxlint",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@mantine/core": "^9.6.0",
+ "@mantine/dropzone": "^9.6.0",
+ "@mantine/form": "^9.6.0",
+ "@mantine/hooks": "^9.6.0",
+ "@mantine/modals": "^9.6.0",
+ "@mantine/notifications": "^9.6.0",
+ "@phosphor-icons/react": "^2.1.10",
+ "react": "^19.2.8",
+ "react-dom": "^19.2.8",
+ "react-router": "^8.3.1"
+ },
+ "devDependencies": {
+ "@types/node": "^24.13.3",
+ "@types/react": "^19.2.18",
+ "@types/react-dom": "^19.2.4",
+ "@vitejs/plugin-react": "^6.1.0",
+ "oxlint": "^1.79.0",
+ "postcss": "^8.5.28",
+ "postcss-preset-mantine": "^1.18.0",
+ "postcss-simple-vars": "^7.0.1",
+ "typescript": "~6.0.2",
+ "vite": "^8.2.2"
+ }
+}