1.0.3 • Published 4 years ago

@pslb/demo-el v1.0.3

Weekly downloads
5
License
ISC
Repository
-
Last release
4 years ago

PSLB Demo El

A Custom Element for demonstrating a PIE interaction designed for use with the pie-cloud packaging service.

<demo-el> </demo-el>
const e = document.querySelector("demo-el");
e.def = { Configure, Element, controller };
e.model = {};

Commands

yarn ...description
installinstall
testtest
devrun dev server for development
releasebuild, tag + publish pkg

yarn dev

Edit src/index.html with the name and version of the element you want to demo. And also alter the model.

Notes

When running npm start the HMR will attampt to re-define the custom element and get an already defined error. Need to refresh the page.

TODO

make script loading optional (but still define custome elements from pre-loaded)