-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract chrome-launcher to a standalone thing. #2245
Conversation
Nothing too big in this PR, just renames and a move. generally lgtm. will fine-tooth it in a bit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool beans
assuming the prep for it being standalone is coming later (removing requires into core, logging control, etc)?
const assert = require('assert'); | ||
|
||
/** | ||
* THIS FILE IS A DUPLICATE OF lighthouse-core/test/global-mocha-hooks.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. I defer to @paulirish
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nah. don't carry it over.
we'll delete these in a week. they haven't provided value in a long while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
we could also temporarily add a shim file in chrome-launcher.js |
That was my thought :) |
Since we are changing the API that is going to require a code change by any consumer, not sure we want this old path to work anymore. |
…se#2245) * Also extract default flags to standalone entity.
🚨 This is a breaking change to any consumer of the launcher 🚨
Pull chrome-launcher into a standalone folder and add a new standalone package.json.
This will enable us to publish chrome-launcher as a standalone module on npm for direct consumption.
PR action:
impacted users: 23~ on github
https://github.com/search?l=JavaScript&q=chrome-launcher.js&type=Code&utf8=%E2%9C%93
ref #2092