https://github.com/lq782655835/git-sync-tool
git同步工具
https://github.com/lq782655835/git-sync-tool
git nodejs sync
Last synced: about 2 months ago
JSON representation
git同步工具
- Host: GitHub
- URL: https://github.com/lq782655835/git-sync-tool
- Owner: lq782655835
- Created: 2020-06-08T07:39:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T01:55:43.000Z (over 5 years ago)
- Last Synced: 2025-01-22T17:44:56.134Z (over 1 year ago)
- Topics: git, nodejs, sync
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-sync-tool
将vue-cli项目打包后的静态文件,发布到指定egg项目下
## 安装
```
yarn add git-sync-tool -D
```
## 使用方式
```
// in package.json
"scripts": {
"deploy-dev": "git-sync --branch=develop --dist ./docs/.vuepress/dist"
},
"git-sync": {
"target": "egg-project-url.git"
}
```
### 参数说明
`--branch`: 指定egg项目的目标分支
`--dist`: vue-cli项目的静态文件地址,相对路径,默认是'dist'
> 注意:egg项目需要ssh权限