-
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
deps: remove details-element-polyfill and rimraf #12369
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ const {promisify} = require('util'); | |
const Simulator = require('./dependency-graph/simulator/simulator.js'); | ||
const lanternTraceSaver = require('./lantern-trace-saver.js'); | ||
const Metrics = require('./traces/pwmetrics-events.js'); | ||
const rimraf = require('rimraf'); | ||
const NetworkAnalysisComputed = require('../computed/network-analysis.js'); | ||
const LoadSimulatorComputed = require('../computed/load-simulator.js'); | ||
const LHError = require('../lib/lh-error.js'); | ||
|
@@ -102,8 +101,8 @@ async function saveArtifacts(artifacts, basePath) { | |
const status = {msg: 'Saving artifacts', id: 'lh:assetSaver:saveArtifacts'}; | ||
log.time(status); | ||
fs.mkdirSync(basePath, {recursive: true}); | ||
rimraf.sync(`${basePath}/*${traceSuffix}`); | ||
rimraf.sync(`${basePath}/${artifactsFilename}`); | ||
fs.rmdirSync(`${basePath}/*${traceSuffix}`, {recursive: true}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. glob works? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
no, and in fact doing this with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed and added a test to catch this next time |
||
fs.rmdirSync(`${basePath}/${artifactsFilename}`, {recursive: true}); | ||
|
||
const {traces, devtoolsLogs, ...restArtifacts} = artifacts; | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"build-viewer": "node ./build/build-viewer.js", | ||
"reset-link": "(yarn unlink || true) && yarn link && yarn link lighthouse", | ||
"c8": "bash lighthouse-core/scripts/c8.sh", | ||
"clean": "rimraf dist proto/scripts/*.json proto/scripts/*_pb2.* proto/scripts/*_pb.* proto/scripts/__pycache__ proto/scripts/*.pyc *.report.html *.report.dom.html *.report.json *.devtoolslog.json *.trace.json lighthouse-core/lib/i18n/locales/*.ctc.json || true", | ||
"clean": "rm -r dist proto/scripts/*.json proto/scripts/*_pb2.* proto/scripts/*_pb.* proto/scripts/__pycache__ proto/scripts/*.pyc *.report.html *.report.dom.html *.report.json *.devtoolslog.json *.trace.json lighthouse-core/lib/i18n/locales/*.ctc.json || true", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. breaks for windows, doesn't it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dont really care if it does. seems reasonable to support only bash-in-windows and not the windows command line. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, I also don't think it matters. I honestly never run this because it also deletes |
||
"lint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .", | ||
"smoke": "node lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js", | ||
"debug": "node --inspect-brk ./lighthouse-cli/index.js", | ||
|
@@ -109,7 +109,6 @@ | |
"@types/puppeteer": "1.19.x", | ||
"@types/raven": "^2.5.1", | ||
"@types/resize-observer-browser": "^0.1.1", | ||
"@types/rimraf": "^2.0.2", | ||
"@types/semver": "^5.5.0", | ||
"@types/update-notifier": "^4.1.0", | ||
"@types/ws": "^4.0.1", | ||
|
@@ -159,7 +158,6 @@ | |
"configstore": "^5.0.1", | ||
"csp_evaluator": "^1.0.1", | ||
"cssstyle": "1.2.1", | ||
"details-element-polyfill": "^2.4.0", | ||
"enquirer": "^2.3.6", | ||
"http-link-header": "^0.8.0", | ||
"intl": "^1.2.5", | ||
|
@@ -180,7 +178,6 @@ | |
"parse-cache-control": "1.0.1", | ||
"ps-list": "^7.2.0", | ||
"raven": "^2.2.1", | ||
"rimraf": "^2.6.1", | ||
"robots-parser": "^2.0.1", | ||
"semver": "^5.3.0", | ||
"speedline-core": "^1.4.3", | ||
|
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.