es-plugins
v0.0.26
Published
A standard for transforming ES Modules into Web Components
Downloads
9
Readme
ECMAScript Plugins (ES Plugins)
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
The Specification
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.
Default Exports
The default
export defines the behavior of the Plugin.
Named Exports
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.
Acknowledgments
This library is maintained by Garrett Flynn and Joshua Brewster, who use contract work and community contributions through Open Collective to support themselves.
Backers
Support us with a monthly donation and help us continue our activities!
Sponsors
Become a sponsor and get your logo here with a link to your site!