class JsPlugin[source]#

Bases: Plugin

A js plugin. Useful for adding custom JS code to the server that can be passed to the web client.

abstract distribution_path()[source]#

A generator that yields the distribution path directory.

Return type:

Generator[Path, None, None]

abstract property main#

The main js file, the relative path with respect to distribution_path.

abstract property name#

The plugin name

abstract property version#

The plugin version