Experiment adding TypeScript support to the new performance client
Categories
(DevTools :: Performance Tools (Profiler/Timeline), task, P3)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: gregtatum, Assigned: gregtatum)
Details
Attachments
(3 files, 3 obsolete files)
We have the new infrastructure to run node scripts in CI, with mocha and jest. We could hook up some CI to configure devtools code to run TypeScript checks using JS Docs. This gets us full type checking, with minimal code changes, and no build step.
Assignee | ||
Comment 1•5 years ago
|
||
This patch changes the use of the recording state object with raw strings.
The strings can be type checked, and there is no more benefit to having
it as an Object. The plain strings are easier to type check.
Assignee | ||
Comment 2•5 years ago
|
||
This commit sets up the configuration for TypeScript to work in tree.
It also adds the commands to run everything in our CI. For now this
configuration is limiting everything to the performance-new directory
as much as possible.
Depends on D46040
Assignee | ||
Comment 3•5 years ago
|
||
Everything should be typed in the JS Docs. I added a bunch of TODOs for features
the could be added in the future, but weren't valuable for this initial
prototype. Unfortunately I couldn't get the @types folder working, and had to
co-locate the redux.d.ts next to the vender file. TypeScript was attempting
to parse the file, and was failing.
Depends on D46041
Assignee | ||
Comment 4•5 years ago
|
||
Here is a failing example on treeherder: https://treeherder.mozilla.org/#/jobs?repo=try&revision=201f27967c8c6f26c6a4430fb1307478769762f7&searchStr=devtools
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D46042
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D47911
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D47912
Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment on attachment 9098253 [details]
Bug 1586757 - Rename .jsm files to .jsm.js to allow type checking; r?julienw
Revision D47911 was moved to bug 1586757. Setting attachment 9098253 [details] to obsolete.
Comment 11•5 years ago
|
||
Comment on attachment 9098254 [details]
Bug 1586757 - Create a @types directory and change to // @ts-check; r?julienw
Revision D47912 was moved to bug 1586757. Setting attachment 9098254 [details] to obsolete.
Comment 12•5 years ago
|
||
Comment on attachment 9098255 [details]
Bug 1586757 - Add types to everything but the components; r?julienw
Revision D47913 was moved to bug 1586757. Setting attachment 9098255 [details] to obsolete.
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/907946837998
https://hg.mozilla.org/mozilla-central/rev/2c1c4849c8c9
https://hg.mozilla.org/mozilla-central/rev/1dd081553a3a
Description
•