ES Plugins is a standard for transforming ES Modules into standardized Web Components to simplify the process of authoring composable web applications.
The es-plugins library uses graphscript to compose plugins—as well as its DOMService
class to transform plugins into Web Components.
Note: es-plugins is a core library of the Brains@Play Framework
Each Plugin contains one default
export and any number of named
exports.
export let nExecutions = 0
export default function(){
this.nExecutions++
return this.nExecutions
}
As such, this specification treats namespace imports (which access default and named exports) as first-class citizens.
The default
export defines the behavior of the Plugin.
named
exports define the states of the Plugin.
However, multiple named exports without a default function may also be passed. These are transformed into individual plugins within the same graph.
This library is maintained by Garrett Flynn and Joshua Brewster, who use contract work and community contributions through Open Collective to support themselves.
Support us with a monthly donation and help us continue our activities!
Become a sponsor and get your logo here with a link to your site!