# ultimate-web-application
**Repository Path**: topazur/ultimate-web-application
## Basic Information
- **Project Name**: ultimate-web-application
- **Description**: No description available
- **Primary Language**: TypeScript
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-04-21
- **Last Updated**: 2021-04-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ultimate-web-application
> A new Vue@next application.
## setup
```bash
npm install -g @vue/cli
vue create my-project
# or
cd my-project
vue create .
```
## Angular git commit message 规范
```bash
# 注意冒号后面的空格
$ feat: 新功能(feature)
$ fix: 修补bug
$ docs: 文档(documentation)
$ style: 格式(不影响代码运行的变动)
$ refactor: 重构(即不是新增功能,也不是修改bug的代码变动)
$ chore: 构建过程或辅助工具的变动
$ revert: 撤销,版本回退
$ perf: 性能优化
$ test:测试
$ improvement: 改进
$ build: 打包
$ ci: 持续集成
```
### Git撤销已经推送(push)至远端仓库的提交(commit)信息
```bash
# 重置至指定版本的提交,达到撤销提交的目的 (参数soft指:保留当前工作区; 参数hard,会撤销相应工作区的修改,一定要谨慎使用)
$git reset --(参数) <版本号>
$Undo Commit (或者通过vscode取消commit)
# 强制提交当前版本号,以达到撤销版本号的目的 (必须添加参数force,否则会提交失败,并报错:本地项目版本号低于远端仓库版本号)
git push origin [远端分支] –-force
# 修改代码,执行重新提交和推送的三部曲
```
## dependencies
```bash
# 一、安装
$npm install vue
$yarn add vue
安装全局包
$npm install -g vue
$yarn global add vue
附:全局安装过的包
$npm list -g --depth 0
# 二、移除
$npm uninstall vue
$yarn remove vue
移除全局包
$npm uninstall -g vue
$yarn global remove vue
# 三、升级
$npm update vue
$yarn upgrade vue
升级全局包
$npm update -g vue
$yarn global upgrade vue
```
```bash
# 批量更新依赖包
①npm更新方式
需要全局安装npm-check-updates,然后执行ncu -u命令,回车后即可开始更新
$npm install npm-check-updates --global
$ncu -u
②yarn更新方式
推荐使用这种更新方式,无需安装依赖。
$yarn upgrade-interactive --latest
检测到需要更新的包后,空格键可以选择或取消单个需要更新的包,A键可以切换所有需要更新的依赖包,最后回车即可更新。
# 更新单个依赖包(以更新vue到最新版本为例)
①npm更新方式
$npm i --save vue@latest
②yarn更新方式
$yarn add vue@latest
```
## Scripts
- `yarn install` Project setup
- `yarn serve` Compiles and hot-reloads for development
- `yarn build` Compiles and minifies for production
- `yarn test:unit` Run your unit tests
- `yarn lint` Lints and fixes files
## Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).