build-client
v1.0.12
Published
Client for revinfo-deploy registry
Downloads
22
Readme
BuildClient
Client for revinfo-deploy registry
Author: Allex Wang ([email protected])
Installation
npm install build-client
Usage:
var BuildClient = require('build-client');
var client = new BuildClient({
'endpoint': 'http://fe.bubugao-inc.com/deploy/'
});
var releaseCfg = {
name: 'test',
version: '0.0.1',
prefix: '//s1.bbgstatic.com/test'
};
client.release('/var/build/foo/project_path', releaseCfg, function(err, res) {
if (err) {
console.error(err.message);
} else {
console.log(res.message);
}
});