@erdoai/cli 0.59.0 → 0.59.1
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 +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1400,6 +1400,12 @@ function printPageReview(review) {
|
|
|
1400
1400
|
return;
|
|
1401
1401
|
}
|
|
1402
1402
|
console.error(`review: ${review.summary || `${review.issues?.length ?? 0} issue(s)`}`);
|
|
1403
|
+
if (review.lighthouse) {
|
|
1404
|
+
const score = (value) => value === void 0 ? "unavailable" : `${value}/100`;
|
|
1405
|
+
console.error(
|
|
1406
|
+
` lighthouse (mobile): performance ${score(review.lighthouse.performance)}, accessibility ${score(review.lighthouse.accessibility)}, best practices ${score(review.lighthouse.best_practices)}, seo ${score(review.lighthouse.seo)}`
|
|
1407
|
+
);
|
|
1408
|
+
}
|
|
1403
1409
|
for (const issue of review.issues || []) {
|
|
1404
1410
|
console.error(` [${issue.severity}/${issue.category}] ${issue.description}`);
|
|
1405
1411
|
if (issue.suggestion) console.error(` fix: ${issue.suggestion}`);
|