Polymer / polymer-decorators

TypeScript decorators for Polymer.
Other
93 stars 23 forks source link

Add more docs on working with Typescript + Polymer #33

Open LarsDenBakker opened 6 years ago

LarsDenBakker commented 6 years ago

There are some quirks when working with Polymer 2 and typescript, especially when using it to develop separately shareable components and not applications. I think it would be good to collect some knowledge on how this is done.

My current workflow consists of:

All in all it's a bit cumbersome, so I'm wondering if there are better workflows.

aomarks commented 6 years ago

We're not going to be investing further in 2.x support for this library, so we recommend moving to Polymer 3.0 and using the new https://www.npmjs.com/package/@polymer/decorators package.

yebrahim commented 6 years ago

For anyone who comes across this, I put together a small Polymer 2 + Typescript + Webpack + polymer-decorators with Javascript modules support here: https://github.com/yebrahim/polymer2-typescript-webpack, hope it might help.

aomarks commented 6 years ago

Actually let's keep this open, it could still be useful to have some more practical docs around usage with 3.0. See also https://github.com/Polymer/docs/issues/2439