extension-cli icon indicating copy to clipboard operation
extension-cli copied to clipboard

TypeScript support

Open nicolas377 opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe. I just found this, and I wanted to ask if TypeScript support is coming in the future.

Describe the solution you'd like Support for the TypeScript compiler. I can make a pr for it if needed.

Describe alternatives you've considered It isn't hard to modify the npm scripts to run npx tsc and then xt-build.

Additional context Could be a options on initial setup.

nicolas377 avatar Jul 31 '21 18:07 nicolas377

You can leave this open, I am considering how it should and could work, but need to get better at typescript first.

In the meantime if you already have setup build from ts -> js that build output can be piped to the build command.

nkrusch avatar Aug 26 '21 23:08 nkrusch

I'm assuming that the best way to implement that would be use tsc with a outFile param.

nicolas377 avatar Aug 26 '21 23:08 nicolas377

Is it possible that we could use tsc to compile to ESNext, and then use babel to transpile down if needed?

nicolas377 avatar Sep 27 '21 12:09 nicolas377

I think it would be possible to do this now at a project level, the way you have described in the original issue. It is not the ideal experience, but it should work for the time being.

nkrusch avatar Sep 28 '21 14:09 nkrusch

Guys, I don't understand very well... has the suprote already been added? if not, what would this workaround be like?

kelvinsand avatar Mar 17 '22 12:03 kelvinsand

Has any work been done to add TypeScript compatibility, or does anyone know of a way to do so on a per-project basis?

viperfan7 avatar Jul 03 '23 21:07 viperfan7

Please see #204 ~~for an easy workaround (it's just a few character changes to build.json)~~.

limdingwen avatar Nov 12 '23 16:11 limdingwen