Skip to content
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

chore: extract BrowserRunner into its own module #5850

Merged
merged 2 commits into from May 12, 2020

Conversation

jackfranklin
Copy link
Collaborator

src/Launcher.ts is large and hard to work in. It has multiple objects
defined in it:

  • ChromeLauncher
  • FirefoxLauncher
  • BrowserRunner
  • Launcher

This change moves BrowserRunner into its own module. More refactorings
like this will follow but this is the first step.

`src/Launcher.ts` is large and hard to work in. It has multiple objects
defined in it:

* ChromeLauncher
* FirefoxLauncher
* BrowserRunner
* Launcher

This change moves BrowserRunner into its own module. More refactorings
like this will follow but this is the first step.
const removeFolderAsync = helper.promisify(removeFolder);
const debugLauncher = debug('puppeteer:launcher');

export class BrowserRunner {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the functionality and contents of this class has not changed, other than the private keyword on the instance properties.

Copy link
Member

@mathiasbynens mathiasbynens left a comment

Choose a reason for hiding this comment

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

Nice! This smells like the beginning of #5851 :)

@jackfranklin
Copy link
Collaborator Author

@mathiasbynens you read my mind!

@jackfranklin jackfranklin merged commit c6d01c9 into master May 12, 2020
@jackfranklin jackfranklin deleted the tidy-up-launchers-1 branch May 12, 2020 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants