flat icon indicating copy to clipboard operation
flat copied to clipboard

[chore]: use typescript language re-write scripts

Open BlackHole1 opened this issue 4 years ago • 3 comments

As JavaScript is not as easy to maintain later as TypeScript, we intend to rewrite it using TypeScript. Runtime environments can be used: ts-node etc. If you have a better idea, please let us know.

cc: @hyrious @LitoMore

BlackHole1 avatar Dec 09 '21 03:12 BlackHole1

I have used my esbuild-dev in flat-web scripts. Another choice would be esno.

hyrious avatar Dec 13 '21 03:12 hyrious

In fact, without any other tools you can just do:

esbuild scripts/build.ts | node --input-type=module

hyrious avatar Dec 13 '21 03:12 hyrious

In fact, without any other tools you can just do:

esbuild scripts/build.ts | node --input-type=module

This is enough to use, IMO.

LitoMore avatar Dec 13 '21 04:12 LitoMore