Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore]: use typescript language re-write scripts #1191

Open
BlackHole1 opened this issue Dec 9, 2021 · 3 comments
Open

[chore]: use typescript language re-write scripts #1191

BlackHole1 opened this issue Dec 9, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@BlackHole1
Copy link
Collaborator

BlackHole1 commented Dec 9, 2021

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 BlackHole1 changed the title [chore]: use typescript lanuage [chore]: use typescript language re-write scripts Dec 9, 2021
@BlackHole1 BlackHole1 added the good first issue Good for newcomers label Dec 9, 2021
@hyrious
Copy link
Member

hyrious commented Dec 13, 2021

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

@hyrious
Copy link
Member

hyrious commented Dec 13, 2021

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

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

@LitoMore
Copy link
Member

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

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

This is enough to use, IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants