Document using TypeScript and ES6 modules for extensions.

Review Request #12955 — Created April 14, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

This change updates the extension static media documentation to explain
what is needed to enable the use of TypeScript and ES6 modules (as well
as ES6 more generally) in extensions.

The only part that's still missing is an explanation of how to import
code from the Review Board/Djblets JavaScript codebase. I'm undecided if
that's something we should document now (and perhaps enable via some
symlinks like .reviewboard/.djblets during the setup.py develop
process), or if we should wait until more of those codebases have been
converted to modules.

Built HTML and checked output.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Document using TypeScript and ES6 modules for extensions.
This change updates the extension static media documentation to explain what is needed to enable the use of TypeScript and ES6 modules (as well as ES6 more generally) in extensions. The only part that's still missing is an explanation of how to import code from the Review Board/Djblets JavaScript codebase. I'm undecided if that's something we should document now (and perhaps enable via some symlinks like `.reviewboard`/`.djblets` during the `setup.py develop` process), or if we should wait until more of those codebases have been converted to modules. Testing Done: Built HTML and checked output.
317a127264ad4346902ae3f7e27072ee3ea97f3e David Trowbridge
docs/manual/conf.py
docs/manual/extending/extensions/static-files.rst
Loading...