generator-polymer-init-twc-element
v0.1.2
Published
Polymer 2 element in Typescript using TWC
Downloads
1
Maintainers
Readme
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-cli
Then install this package:
npm i -g generator-polymer-init-twc-element
Use
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 init
Choose 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