tools
tools copied to clipboard
TypeScript
I have an entire codebase written in Polymer 2 and TypeScript. My html files look like this in source form:
<link rel="import" href="../../bower_components/polymer/polymer.html">
<dom-module id="my-element">
<template>This is my element</template>
<script type="module" src="my-element.ts"></script>
</dom-module>
Will I be able to use Polymer Modularizer to automatically upgrade to Polymer 3?
Yes info on this would be useful.
We also have about 120 polymer 2 elements written the same way and are looking to migrate to polymer 3. I am about to write a converter from scratch as it appears that modulizer will not work for typescript.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
any news?
example:
https://github.com/plasma-umass/browsix/blob/04f0830088560f27d480cde3e37c28269375f59f/app/elements/browsix-terminal/browsix-terminal.ts
https://github.com/plasma-umass/browsix/blob/04f0830088560f27d480cde3e37c28269375f59f/app/elements/browsix-terminal/browsix-terminal.html
... using polymer-ts which can be replaced by @polymer/decorators
(replace @component with @customElement decorator)
(@customElement will call customElements.define)
nit: this issue should be renamed to polymer-modulizer: typescript support