[go: nahoru, domu]

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

Extract chrome-launcher to a standalone thing. #2245

Merged
merged 2 commits into from
May 13, 2017
Merged

Conversation

samccone
Copy link
Contributor
@samccone samccone commented May 13, 2017

🚨 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:

  • Update the path to chrome launcher used by the plot consumer.
  • Add chrome-launcher build / test scripts to all of the existing global mechanisms to enable seemless testing and building
  • Add chrome-launcher tests to travis to prevent regressions

impacted users: 23~ on github
https://github.com/search?l=JavaScript&q=chrome-launcher.js&type=Code&utf8=%E2%9C%93


ref #2092

@paulirish
Copy link
Member

Nothing too big in this PR, just renames and a move.

generally lgtm. will fine-tooth it in a bit.

Copy link
Collaborator
@patrickhulce patrickhulce left a 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
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@patrickhulce
Copy link
Collaborator

we could also temporarily add a shim file in chrome-launcher.js module.exports = require('../chrome-launcher/chrome-launcher');

@samccone
Copy link
Contributor Author
samccone commented May 13, 2017

assuming the prep for it being standalone is coming later (removing requires into core, logging control, etc)?

That was my thought :)
(to keep the move delta small on this pass)

@samccone
Copy link
Contributor Author

we could also temporarily add a shim file in chrome-launcher.js module.exports = require('../chrome-launcher/chrome-launcher');

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.

@samccone samccone mentioned this pull request May 13, 2017
@paulirish paulirish merged commit 9c06fc1 into master May 13, 2017
@paulirish paulirish deleted the split-launcher branch May 13, 2017 22:40
@paulirish paulirish restored the split-launcher branch May 13, 2017 22:44
@paulirish paulirish deleted the split-launcher branch May 13, 2017 22:46
paulirish pushed a commit to GoogleChrome/chrome-launcher that referenced this pull request Aug 29, 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.

None yet

3 participants