Skip to content

Commit

Permalink
Bug 1880764 - Initial TypeScript tooling r=mossop,Standard8
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zombie committed Mar 15, 2024
1 parent d73bbca commit c346a78
Show file tree
Hide file tree
Showing 24 changed files with 61,377 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ browser/components/asrouter/node_modules/
browser/components/newtab/node_modules/
browser/components/aboutwelcome/node_modules/
tools/esmify/node_modules/
tools/ts/node_modules/

# Ignore newtab component build assets
browser/components/newtab/logs/
Expand Down Expand Up @@ -333,6 +334,9 @@ tools/esmify/jscodeshift.cmd
tools/esmify/jscodeshift.ps1
tools/esmify/package-lock.json

# Ignore TypeScript declarations reference file updated by tooling.
tools/@types/index.d.ts

# Ignore support files for en-US dictionary updates
extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/scowl
extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/support_files/
Expand Down
4 changes: 4 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
^browser/components/newtab/node_modules/
^browser/components/aboutwelcome/node_modules/
^tools/esmify/node_modules/
^tools/ts/node_modules/

# Ignore newtab component build assets
^browser/components/newtab/logs/
Expand Down Expand Up @@ -325,6 +326,9 @@ tps_result\.json$
^tools/esmify/jscodeshift\.ps1
^tools/esmify/package-lock\.json

# Ignore TypeScript declarations reference file updated by tooling.
^tools/@types/index.d.ts

# Ignore support files for en-US dictionary updates
^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/scowl
^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/support_files/
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -1488,5 +1488,6 @@ toolkit/components/uniffi-js/UniFFIFixtureScaffolding.cpp
toolkit/components/uniffi-bindgen-gecko-js/fixtures/generated
tools/browsertime/package.json
tools/browsertime/package-lock.json
tools/ts/error_list.json
try_task_config.json
xpcom/idl-parser/xpidl/fixtures/xpctest.d.json
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "MPL-2.0",
"devDependencies": {
"@microsoft/eslint-plugin-sdl": "0.2.2",
"@types/gecko": "file:tools/@types",
"eslint": "8.57.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-eslint-plugin": "5.4.0",
Expand Down
1 change: 1 addition & 0 deletions python/mach/mach/command_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def __init__(
),
"tps-build": MachCommandReference("testing/tps/mach_commands.py"),
"try": MachCommandReference("tools/tryselect/mach_commands.py"),
"ts": MachCommandReference("tools/ts/mach_commands.py"),
"uniffi": MachCommandReference(
"toolkit/components/uniffi-bindgen-gecko-js/mach_commands.py"
),
Expand Down
Loading

0 comments on commit c346a78

Please sign in to comment.