Since Live Widget is mainly a frontend application the creation of a full Java plugin is not necessary but could be convenient when developing Widget Query Handlers and additional features as Web Services as well. As discussed in section of , the Java Main class needs only the following:
import net.intelie.live.*;
import net.intelie.live.util.PluginUtils;
public class Main implements LivePlugin {
@Override
public void start(Live live) throws Exception {
PluginUtils.defaultWebSetup(live);
}
}
ZIP with manifest.json
The developer could create a ZIP containing a manifest.json and ships itstarget/bundle.js (typically compiled to ES6 using or other transpiler) on the zip file as described in .
The manifest.json must define the following AddContent and AddTag actions to inform Live which url mappings and scripts it should append to Live web application.
We recommend the usage of a webpack builder configuration in order to ease the development of widgets and automates its assemble in a single transpiled bundle.js file.