-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 logger from lighthouse #2528
Conversation
f6f9bf5
to
7c74318
Compare
@@ -13,7 +13,7 @@ import {DEFAULT_FLAGS} from './flags'; | |||
import {makeTmpDir, defaults, delay} from './utils'; | |||
import * as net from 'net'; | |||
const rimraf = require('rimraf'); | |||
const log = require('lighthouse/lighthouse-core/lib/log'); | |||
const log = require('lighthouse-logger'); |
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.
oh boy haha, can we just grab the lighthouse org instead? 😃
require('@lighthouse/logger')
require('@lighthouse/chrome-launcher')
require('@lighthouse/all-the-things')
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.
https://www.npmjs.com/org/lighthouse looks like it's already taken, but no one is using it...
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.
maybe we should use @____lighthouse
as an org 😛 I believe it would 🚀 our npm installs as it's so easy to type (#sarcasm)
@@ -83,7 +83,6 @@ gulp.task('browserify', () => { | |||
removeComments: true | |||
}) | |||
.transform('brfs') | |||
.ignore('../lighthouse-core/lib/log.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.
think viewer still wants to omit logger from the brfs output.
.ignore('../lighthouse-logger/index.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.
think viewer still wants to omit logger from the brfs output.
FWIW, this is just a bundle-size optimization that won't matter after viewer switches to LH2 in #2521
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.
updated per @ebidel's comment
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.
tested CLI flags and extension logging. they looking good.
question from Eric stands, though
version "6.22.0" | ||
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" | ||
dependencies: | ||
chalk "^1.1.0" | ||
esutils "^2.0.2" | ||
js-tokens "^3.0.0" | ||
|
||
babel-core@^6.0.2, babel-core@^6.23.0: |
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.
yargs and babel-core removed from this lockfile. I guess it was just stale?
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.
indeed
@@ -632,6 +632,12 @@ debug@2.2.0, debug@^2.1.1, debug@^2.2.0: | |||
dependencies: | |||
ms "0.7.1" | |||
|
|||
debug@^2.6.8: |
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.
you're bumping to latest debug with this change, yes?
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.
correct
Thanks y'all |
Fixes #2526