file-deploy
deploy file to git branch
Last updated 2 years ago by ineo6 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install file-deploy 
SYNC missed versions from official npm registry.

file-deploy

Dependencies version downloads

PRs Welcome

Watch on GitHub Star on GitHub

This is a command for deploying generated files to a git branch. Unlike the git-subtree approach, it does not require the generated files be committed to the source branch.

Installation

npm install --save-dev file-deploy

Usage

deploy [args]

options

You can specify options in .deployinfo. It must be valid JSON file. The example is:

{
  "directory": "dist/",
  "repo": "git@github.com:ineo6/file-deploy.git",
  "username": "deployBot",
  "email": "deployBot@bot.com",
  "branch": "gh-pages"
}

Alternatively, options can be specified in package.json:

{
  "config": {
    "deploy-info": {
      /* your config here */
    }
  }
}

.deployinfo has precedence, if it does not exist, then package.json will be used.

directory

The subdirectory to deploy. Defaults to dist/.

branch

The branch that will receive the deploy. Defaults to gh-pages.

repo

The repo to push the deploy to. Defaults to origin.

username

The username that will be associated with the deploy commit.

email

The email that will be associated with the deploy commit.

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

4 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |