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.
First ensure you have the Polymer CLI installed. If not use:
npm i -g polymer-cli
Then install this package:
npm i -g generator-polymer-init-twc-element
Create a new folder for your custom element project, cd into that folder and run
mkdir my-new-element-name cd my-new-element-name polymer init
Choose the twc-element option from the list.
Please submit issues through github at mlisook generator-polymer-init-twc-element issues.
Contributions are welcome and appreciated.