tools icon indicating copy to clipboard operation
tools copied to clipboard

TypeScript

Open lastmjs opened this issue 7 years ago • 4 comments

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?

lastmjs avatar May 03 '18 18:05 lastmjs

Yes info on this would be useful.

bsutton avatar Jun 22 '19 00:06 bsutton

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.

mcarey1590 avatar Sep 23 '19 19:09 mcarey1590

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.

stale[bot] avatar Sep 23 '20 02:09 stale[bot]

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

milahu avatar Dec 10 '22 09:12 milahu