Options for the the file format for Live plugins.
Must implement a LivePlugin shape, but does not need to extend from it.
export default class {
$require = ['live-foo']
$desc = 'A plugin'
register(app) {
}
async init(app) {
}
}
const plugin = (app) => {
}
plugin.register = function(app) {
}
plugin.init = async function(app) {
}
plugin.desc = ''
plugin.require = ''
exports default plugin
Receives an instantiated plugin as first argument (plugin: LivePlugin)
.
exports.register = function() {
}
exports.init = function() {
}
export.require = ['bar']
@Require('bar')
export default class {
}