I have a basic widget (widget.js
, widget.html
and widget.css
) that I am using via a template:
<template>
<require from="./widget"/>
<widget/>
</template>
What steps do I need to take to reuse this component across aurelia projects?
I've not made a package before, but my understanding would be to simply commit widget.js, widget.html and widget.css to a github repository, then define a JSPM package for it. I know I can define main="widget.js", but I'm not sure if I can also package the html file. Nor do I know if aurelia can "require" a template from a jspm package.