env-builder-github
GitHub backend for env-builder
Last updated 7 years ago by camshaft .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install env-builder-github 
SYNC missed versions from official npm registry.

node-env-builder-github

GitHub backend for env-builder

Usage

var builder = require('env-builder');
var github = require('env-builder-github');

var env = 'prod';
var types = ['ui', 'api'];
var app = 'my-app';
var path = 'my-org/my-config-repo';

var conf = github(path);

builder(env, types, app, conf, function(err, ENV) {

});

Authentication

To access a private repo use one of the following combinations:

Username/password

Set the following in the environment:

GITHUB_USERNAME=camshaft
GITHUB_PASSWORD=my-pass-123

Auth token

Set the following in the environment:

GITHUB_TOKEN=github-auth-token-123

Options

Pass auth in as an option:

var github = require('env-builder-github');

var conf = github(path, {
  auth: {
    username: 'camshaft',
    password: 'my-pass-123'
  }
});

Current Tags

  • 0.1.0                                ...           latest (7 years ago)

1 Versions

  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |