32 lines
702 B
Markdown
32 lines
702 B
Markdown
# package.json
|
||
|
||
**路径**:`package.json`
|
||
|
||
## 功能用途
|
||
|
||
项目依赖与脚本定义。
|
||
|
||
## 主要脚本
|
||
|
||
| 命令 | 说明 |
|
||
|------|------|
|
||
| npm run dev | 启动开发服务器 |
|
||
| npm run build | 类型检查 + 构建 |
|
||
| npm run deploy | 打包并通过 SSH 部署 |
|
||
| npm run preview | 预览构建产物 |
|
||
| npm run test:unit | Vitest 单测 |
|
||
| npm run test:e2e | Playwright E2E |
|
||
| npm run format | Prettier 格式化 |
|
||
|
||
## 核心依赖
|
||
|
||
- Vue 3、Vue Router 5、Pinia、Vuetify 4
|
||
- ethers、siwe(钱包登录)
|
||
- echarts(图表)
|
||
- @mdi/font(图标)
|
||
|
||
## 扩展方式
|
||
|
||
- 新增脚本:在 `scripts` 中增加
|
||
- 新增依赖:`npm install xxx` 或手动编辑后 `npm install`
|