Skip to content

Introduce TypeScript #2714

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

Merged
merged 3 commits into from
Oct 29, 2021
Merged

Introduce TypeScript #2714

merged 3 commits into from
Oct 29, 2021

Conversation

stomar
Copy link
Contributor

@stomar stomar commented Oct 29, 2021

Set up TypeScript (add source directory and config file). The JavaScript files in javascripts can now be generated by running tsc in the root directory.

This might be useful for future changes of the JavaScript.
It does not affect the normal build process of the site.

Reformat JavaScript files to match code generated by TypeScript,
in preparation for the introduction of TypeScript files.
Set up TypeScript (add source directory and config file).
The JavaScript files in `javascripts` can now be generated
by running `tsc` in the root directory.

This might be useful for future changes of the JavaScript.
It does not affect the normal build process of the site.
Generate JavaScript by running `tsc` in the root directory;
used version: TypeScript 4.1.5.
@stomar stomar requested a review from a team as a code owner October 29, 2021 20:22
@stomar
Copy link
Contributor Author

stomar commented Oct 29, 2021

This is kind of experimental and "just for fun"; but it doesn't add much overhead. Other config files (like e.g. package.json) etc. are not committed on purpose.

@stomar stomar merged commit b703e66 into ruby:master Oct 29, 2021
@stomar stomar deleted the typescript branch October 29, 2021 20:31
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

Successfully merging this pull request may close these issues.

1 participant