@erdoai/cli 0.145.1 → 0.147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2550,6 +2550,10 @@ function printPageReview(review) {
|
|
|
2550
2550
|
console.error(
|
|
2551
2551
|
` lighthouse (mobile): performance ${score(review.lighthouse.performance)}, accessibility ${score(review.lighthouse.accessibility)}, best practices ${score(review.lighthouse.best_practices)}, seo ${score(review.lighthouse.seo)}`
|
|
2552
2552
|
);
|
|
2553
|
+
for (const opportunity of review.lighthouse.performance_opportunities || []) {
|
|
2554
|
+
const detail = opportunity.display_value ? ` (${opportunity.display_value})` : "";
|
|
2555
|
+
console.error(` ${opportunity.title || opportunity.id}${detail}`);
|
|
2556
|
+
}
|
|
2553
2557
|
}
|
|
2554
2558
|
for (const issue of review.issues || []) {
|
|
2555
2559
|
console.error(` [${issue.severity}/${issue.category}] ${issue.description}`);
|