Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

TypeScript #2801

Open lastmjs opened 6 years ago

lastmjs commented 6 years ago

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?

bsutton commented 5 years ago

Yes info on this would be useful.

mcarey1590 commented 5 years ago

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.

stale[bot] commented 4 years ago

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.

milahu commented 1 year ago

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