Closed Bug 1669592 Opened 4 years ago Closed 4 years ago

Cleanup devtools/client/debugger/package.json

Categories

(DevTools :: Debugger, task, P2)

task

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

This file:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/package.json
probably contains various, now-useless (dev-)dependencies.

It would be great to review this in order to:

  • speed up the execution of yarn (still needed for jest, flow and building bundled files)
  • avoid pollution your local checkout (eslint fails running after having run yarn)
  • reduce security threat (less npm module we load, less chance we install some uncontrolled nested dependency)

This changeset focus on devDependencies, but a similar work can probably be done on dependencies.
Many dependencies are justifies solely because of jest.
In order to run flow, we only need flow, and we need very few things for bin/bundle.
For me, the three things to keep working are:

  • flow
  • jest
  • bin/bundle to rebuild vendors, reps, worker modules
    The debugger frontend itself (src/ folder) is built without involving yarn/package.json.
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

This changeset focuses on dependencies, but surprisingly, it has an impact on bundles.
Looks like one dependency uses another revision.

Severity: -- → S3
Priority: -- → P2
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c596aa6b35d5 [devtools] Cleanup debugger/package.json. r=jdescottes https://hg.mozilla.org/integration/autoland/rev/d01b9d7154d2 [devtools] Cleanup debugger/package.json dependencies list r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: