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

Switch to TypeScript #4

Closed
cblp opened this issue Jun 7, 2021 · 7 comments
Closed

Switch to TypeScript #4

cblp opened this issue Jun 7, 2021 · 7 comments

Comments

@cblp
Copy link
Member

cblp commented Jun 7, 2021

https://webpack.js.org/guides/typescript/

@grandmotivator
Copy link
Member

Если этот вариант потребует компилировать и билдить код, то лучше избежать подобного, так как становится сложнее работать с кодом и контрибьюторам потребуется устанавливать дополнительное ПО для работы с сайтом.

@cblp
Copy link
Member Author

cblp commented Jun 8, 2021

Да, это минус.

Плюс — легче код писать и читать.

Надо попробовать и взвесить.

@cblp
Copy link
Member Author

cblp commented Jun 8, 2021

There are a few options to write TypeScript without installing tools, compiling at client side:

@cblp
Copy link
Member Author

cblp commented Jun 8, 2021

The former — niutech/typescript-compile — is dramatically outdated.

The latter — basarat/typescript-script — works on a website, such as Github Pages, but does not work locally (CORS forbids loading files as resources inside scripts, hence TS fails to load modules).

Failing to work offline is a minus too.

@cblp
Copy link
Member Author

cblp commented Jun 8, 2021

I can try to write the whole program in a single file. Hello to #2

@cblp
Copy link
Member Author

cblp commented Jun 15, 2021

Formally switched. Now fixing type errors.

@cblp
Copy link
Member Author

cblp commented Jun 16, 2021

done

@cblp cblp closed this as completed Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants