exo

exopublish

A Publishing tool for Exosite Widget JavsScripts and Lua Scripts.

Showing:

Popularity

Downloads/wk

8

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

198.8KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

Exopublish

A Publishing tool for Exosite Widget JavaScript and Lua script files.

What it does

Using a config file containing mappings of widget JavaScript or Lua script files to the corresponding Exosite identifiers (e.g. Resource-Id), it can upload the script files to the appropriate location in Exosite.

Why Exopublish?

Initially it was a part of Exoedit but it turned out that the publishing features might also be usable to be used from code, for example for automated deployment.

Installation

npm install exopublish

Usage

var exopublish = require("exopublish");

// Get the relative paths of all configured domain widget script files:
exopublish.getDomainWidgets().then(function(paths) {
    // do something with paths (which is an array of paths to the files)
});

// Get the relative paths of all configured portal widget script files:
exopublish.getPortalWidgets().then(function(paths) {
    // do something with paths (which is an array of paths to the files)
});

// Get the relative paths of all configured Device Lua script files:
exopublish.getDeviceLuaScripts().then(function(paths) {
    // do something with paths (which is an array of paths to the files)
});

// Publish a script to exosite:
exopublish.publishOne(
    "<path as written in the config file>", 
    "<code to publish>", 
    "exositeUser@example.com", 
    "myPassword")
    .then(function(){
        console.log("Published the script");
    });

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100