Skip to content

Commit

Permalink
feat: 更方便的依赖更新命令
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Feb 24, 2022
1 parent e8e8e82 commit a759769
Show file tree
Hide file tree
Showing 3 changed files with 1,104 additions and 4 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,41 @@ pnpm auto:remove
# 或者 yarn auto:remove
```

12. 依赖更新

```shell
# 安全版本更新
pnpm deps:fresh

# 或者 npm run deps:fresh
# 或者 yarn deps:fresh

# 主版本更新,可能是破坏性更新,谨慎使用,做好测试
pnpm deps:fresh:major

# 或者 npm run deps:fresh:major
# 或者 yarn deps:fresh:major

# 次版本更新,可能是破坏性更新,谨慎使用,做好测试
pnpm deps:fresh:minor

# 或者 npm run deps:fresh:minor
# 或者 yarn deps:fresh:minor

# 补丁版本更新
pnpm deps:fresh:patch

# 或者 npm run deps:fresh:patch
# 或者 yarn deps:fresh:patch
```
```shell
# 以上命令仅对包信息 package.json 进行写入,需要重新执行包安装命令
pnpm i

# 或者 npm i
# 或者 yarn
```

<br />
<br />

Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
"test": "vitest",
"build": "vite build",
"dev:host": "vite --host",
"deps:fresh": "taze -w",
"dev:open": "vite --open",
"preview": "vite preview",
"coverage": "vitest --coverage",
"analysis": "windicss-analysis",
"typecheck": "vue-tsc --noEmit",
"deps:fresh:major": "taze major -w",
"deps:fresh:minor": "taze minor -w",
"deps:fresh:patch": "taze patch -w",
"preview:host": "vite preview --host",
"preview:open": "vite preview --open",
"auto:create": "esno scripts/create.ts",
Expand Down Expand Up @@ -41,6 +45,7 @@
"nprogress": "^0.2.0",
"pinia": "^2.0.11",
"prism-theme-vars": "^0.2.2",
"taze": "^0.4.6",
"typescript": "^4.5.5",
"unplugin-auto-import": "^0.6.1",
"unplugin-icons": "^0.13.2",
Expand Down Expand Up @@ -88,4 +93,4 @@
]
}
}
}
}
Loading

0 comments on commit a759769

Please sign in to comment.