generator-polymer-init-twc-element v0.1.2
generator-polymer-init-twc-element
Generator for Polymer 2.0 Custom Element using Typescript and TWC
TWC (Typed Web Components - see Draccoz/twc for details) allows developers to use Typescript and decorators to create Polymer custom elements. TWC acts as a compiler, translating the Typescript into Polymer ES6 class based elements. There is no runtime library - everything happens in the build step.
This generator is based on the Polymer init custom element generator, of course.
Install
First ensure you have the Polymer CLI installed. If not use:
npm i -g polymer-cliThen install this package:
npm i -g generator-polymer-init-twc-elementUse
Create a new folder for your custom element project, cd into that folder and run polymer init:
mkdir my-new-element-name
cd my-new-element-name
polymer initChoose the twc-element option from the list.
Issues
Please submit issues through github at mlisook generator-polymer-init-twc-element issues.
Contributions
Contributions are welcome and appreciated.
License
MIT