Bug 1880764 - Initial TypeScript tooling r=mossop,Standard8
commitc346a789f6271b4db60f9d8a21cbf7a57b746141
authorTomislav Jovanovic <tomica@gmail.com>
Fri, 15 Mar 2024 19:20:45 +0000 (15 19:20 +0000)
committerTomislav Jovanovic <tomica@gmail.com>
Fri, 15 Mar 2024 19:20:45 +0000 (15 19:20 +0000)
tree4159226307e9c5d3f6cfbdb5839185d429b40784
parentd73bbca658d49e798ec140276864699a795e6516
Bug 1880764 - Initial TypeScript tooling r=mossop,Standard8

* Initial tools/ts setup.
* Mach commands for buidling xpcom related typelibs.
* Mach command for updating the typelib references.
* Mach command for type-checking js projects.

Also included the dom typelib for reference.

Differential Revision: https://phabricator.services.mozilla.com/D197620
24 files changed:
.gitignore
.hgignore
.prettierignore
package-lock.json
package.json
python/mach/mach/command_util.py
tools/@types/lib.gecko.dom.d.ts [new file with mode: 0644]
tools/@types/lib.gecko.nsresult.d.ts [new file with mode: 0644]
tools/@types/lib.gecko.services.d.ts [new file with mode: 0644]
tools/@types/lib.gecko.xpcom.d.ts [new file with mode: 0644]
tools/@types/package.json [new file with mode: 0644]
tools/rewriting/Generated.txt
tools/ts/.eslintrc.js [new file with mode: 0644]
tools/ts/build_nsresult.js [new file with mode: 0644]
tools/ts/build_services.js [new file with mode: 0644]
tools/ts/build_xpcom.js [new file with mode: 0644]
tools/ts/error_list.json [new file with mode: 0644]
tools/ts/fixtures/intrinsics.d.ts [new file with mode: 0644]
tools/ts/fixtures/xpctest.d.ts [new file with mode: 0644]
tools/ts/mach_commands.py [new file with mode: 0644]
tools/ts/package-lock.json [new file with mode: 0644]
tools/ts/package.json [new file with mode: 0644]
tools/ts/tests/xpcom.test.js [new file with mode: 0644]
tools/ts/update_refs.js [new file with mode: 0644]