Allow the use of typescript (.ts) files.

Review Request #12727 — Created Nov. 17, 2022 and submitted — Latest diff uploaded

Information

Djblets
release-4.x

Reviewers

This change adds the babel preset for typescript and a babel compiler
that matches it. With this, .ts files can be added to JavaScript
bundles and will work correctly.

I've stuck a tsconfig.json file in the root. This isn't critical because
we don't use tsc to compile .ts to .js (that job is handled by babel),
but this allows us to use things like tsserver for the dev environment
without getting errors about non-ES3 constructs.

Used some .ts files in the Review Board codebase.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Allow the use of typescript (.ts) files.
This change adds the babel preset for typescript and a babel compiler that matches it. With this, `.ts` files can be added to JavaScript bundles and will work correctly. I've stuck a tsconfig.json file in the root. This isn't critical because we don't use tsc to compile .ts to .js (that job is handled by babel), but this allows us to use things like tsserver for the dev environment without getting errors about non-ES3 constructs. Testing Done: Used some `.ts` files in the Review Board codebase.
4f55e268384210ee40a4d38d33359b423f53577d David Trowbridge
tsconfig.json
djblets/dependencies.py
djblets/pipeline/settings.py
djblets/pipeline/compilers/typescript.py
Loading...