Skip to content

Add script to compile renderer against TOT devtools frontend#2099

Merged
paulirish merged 4 commits intomasterfrom
devtoolscompile
May 1, 2017
Merged

Add script to compile renderer against TOT devtools frontend#2099
paulirish merged 4 commits intomasterfrom
devtoolscompile

Conversation

@paulirish
Copy link
Copy Markdown
Member

@paulirish paulirish commented Apr 28, 2017

fixes #2050

output:

image

@paulirish paulirish requested a review from brendankenny April 28, 2017 23:06
@paulirish paulirish force-pushed the devtoolscompile branch 2 times, most recently from 93052a7 to 6b39500 Compare April 28, 2017 23:11
@paulirish paulirish force-pushed the devtoolscompile branch 2 times, most recently from 096599d to 0ee61fa Compare April 29, 2017 00:09
cd "$protocol_path" && git reset --hard && git fetch origin master && git checkout --force origin/master


cd "$lhroot_path" || exit 1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this fail sometimes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no but https://www.shellcheck.net/ recommends it so i do it. :)

package.json Outdated
"unit": "bash lighthouse-core/scripts/run-mocha.sh --default",
"closure": "cd lighthouse-core && node closure/closure-type-checking.js",
"devtools": "bash lighthouse-core/scripts/roll-to-devtools.sh",
"compdevtools": "bash lighthouse-core/scripts/compile-against-devtools.sh",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you love 🖐 but I didn't know what this meant haha, can we do compile-devtools? it's only 4 more characters :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure sure.
i found and installed https://github.com/mklabs/yarn-completions which does completions for our scripts on yarn run so i'm happy now. :)

@paulirish
Copy link
Copy Markdown
Member Author

@brendankenny merge when ready

Copy link
Copy Markdown
Contributor

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

Though doesn't compile with no errors here. It doesn't know what Util is in reportRenderer. Expected?

  • should we add this to CONTIBUTING?
  • should we add this to testing? That would be ideal, as it would prevent a lot of work on your part to fix up after every report change, and it would likely help report render changes be less crazy, but we also have no workflow for making changes over there if we need them to make a change over there.

After a perusal it appears this is non-destructive on my Lighthouse repo, so I can run multiple times/run in an in-progress change. Correct?

@paulirish
Copy link
Copy Markdown
Member Author

should we add this to CONTIBUTING?

sure.

should we add this to testing?

the plan is to flip it on once we get it passing on master. (last i checked master wasn't yet passing)

After a perusal it appears this is non-destructive on my Lighthouse repo, so I can run multiple times/run in an in-progress change.

totally. run as much as you like. doesn't affect your LH files.

@brendankenny
Copy link
Copy Markdown
Contributor

last i checked master wasn't yet passing

yeah, that's what I just ran into. LGTM!

@paulirish
Copy link
Copy Markdown
Member Author

added a note to readme:
image

@paulirish paulirish merged commit ff4d667 into master May 1, 2017
@paulirish paulirish deleted the devtoolscompile branch May 1, 2017 23:46
paulirish added a commit to paulirish/lighthouse that referenced this pull request May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile renderer against DevTools frontend

3 participants