Skip to content

mplabs/cubx-webpackage-uploader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cubx-webpackage-uploader

npm

This lib is part of the Cubbles platform. Use this lib to upload webpackages from Client to Base.

Install

$ npm install -g cubx-webpackage-uploader

API

var uploader = require('cubx-webpackage-uploader')();
var uploaderConfig = {
    'source': '/packages/my-package1',
    'target': {
        'url': 'http://boot2docker.me',
        'proxy': ''
    },
    'debug': false
};
}
uploader.uploadSingleWebpackage(uploaderConfig, function(err, success) {
    if (err) {
        console.error(err.message);
    } else {
        console.log(success);
    }
});

CLI

Configuration

You can pass the config via config.json -File

Config structure:

# config.json
{
    'source': '/packages/my-package1',
    'target': {
        'url': 'http://boot2docker.me',
        'proxy': ''
    },
    'debug': false
};
  • source: {string-path} (default == '.') Points to the folder containing the webpackage.
  • target.url: {string-url} (default == https://boot2docker.me/sandbox) Url of the Base you want to upload your webpackage to.
  • target.proxy: {string-url} (default == '') (optional) Proxy-Url, if your are behind a proxy.
  • debug: {boolean} (default == false);

Run (standalone)

cubx-webpackage-uploader <config path e.g. ./folder/config.json>

About

Uploads a webpackage into a Cubbles Base.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.6%
  • HTML 2.4%