Tsdx: [proposal] Svelte, Vue, Angular targets?

Created on 1 Oct 2019  路  9Comments  路  Source: formium/tsdx

Desired Behavior

if we have a react target we might want to consider also scaffolding out svelte, vue, and angular builds. all of them use typescript internally.

for svelte, this is the recommended component publishing template https://github.com/sveltejs/component-template but it lacks typescript and we can make a dent here.

this is just an idea - we never want to sacrifice React DX and if it comes to it we'll drop it - but if the tsdx model could be battle tested by applying it to other frameworks it may be worth exploring.

Most helpful comment

@rockmandash you're welcome to contribute a vue template! just look at the react template for an example

All 9 comments

Svelte is incompatible with TS at the moment IIRC

most people use preprocessors :) the incompatibility is more in the templating, which is a solvable "language server" issue

I though VSCode explodes TS with svelte syntax?

i mean i think we鈥檒l know when we try it. mostly putting this up to gauge interest/ consider what else we might want in something like this

If Vue without template string or SFC file or render(h), tsdx is totally ok with publish Vue package.

But how about building Vue package with SFC or template string or render(h)?

Vue community doesn't have tools like TSDX.

Is there any temporary method to configure TSDX to support Vue SFC?

@rockmandash you're welcome to contribute a vue template! just look at the react template for an example

Update for TypeScript in the Svelte component template: https://github.com/sveltejs/component-template/issues/29.

for what its worth i've cooled off on this idea in the past year. better that tsdx do react libraries well.

According Evan, there is no need to transpire vue in vue 3 because the bubblers do it. He suggest push raw .vue on non, so there isn鈥檛 much to be done.

Was this page helpful?
0 / 5 - 0 ratings