Skip to content

Compile renderer against DevTools frontend #2050

@paulirish

Description

@paulirish

Now with brendan's new compilation in place, we should also be able to check that we compile against the devtools frontend, which has slightly different compilation settings.

Basically i'm thinking we'll use latest devtools frontend, copy our renderer sources in there, and run its closure.


We have a few prerequisites:

  1. paul lands the ReportRenderer CL in devtools
  2. will adds a hook to compile_frontend.py to provide a custom path for protocol_externs
  3. paul adds a hook to our roll-to-devtools.sh to provide a different $frontend_dir location.

Then I think the flow looks something like this

Add latest devtools frontend to devDeps:

 "devtools-frontend-tot": "git://github.com/ChromeDevTools/devtools-frontend.git",

Probably add [ChromeDevTools/devtools-protocol) to devDeps as well.

Run roll-to-devtools.sh with ./node_modules/devtools-frontend-tot/front_end, which copies our renderer files over.

Reach into the frontend and run closure:

 npm explore devtools-frontend-tot -- npm run closure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions