deploy-git
命令行提交對應配置文件夾下的文件至github/gitcafe指定分支
Last updated 3 years ago by liubiao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install deploy-git 
SYNC missed versions from official npm registry.

deploy-git

命令行提交對應配置文件夾下的文件至github/gitcafe指定分支

用於將ghost生成的static文件夾提交到gh-pages做博客使用,或者其他靜態文件;

  1. 全局npm安裝
$ (sudo) npm install deploy-git -g

2.在package.json添加配置

"deploy": {
    "type": "git",
    "repo": "https://github.com/liubiao0810/test.git", // 需要push的地址
    "branch": "master", // push分支
    "dir": "static" // 需要push的目錄
  }
  

2.命令執行即可

$ gitweb

Current Tags

  • 0.0.3                                ...           latest (3 years ago)

4 Versions

  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 6
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |