@mdvp/cli 1.8.0 → 1.8.2
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/cli.mjs +24 -0
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -131,6 +131,30 @@ async function cmdAudit(domain, { json, raw, apiKey }) {
|
|
|
131
131
|
best: sorted.slice(-3).reverse().map((b) => ({ key: b.c, category: CATS[b.c] ?? b.c, score: b.s })),
|
|
132
132
|
},
|
|
133
133
|
metrics: site.metrics ?? null,
|
|
134
|
+
assets: (() => {
|
|
135
|
+
const base = `https://designsense.tixo-digital.workers.dev/dataset/${site.id}/file`
|
|
136
|
+
return {
|
|
137
|
+
screenshots: {
|
|
138
|
+
desktop: `${base}/desktop-1440.jpg`,
|
|
139
|
+
mobile: `${base}/iphone-390.jpg`,
|
|
140
|
+
tablet: `${base}/ipad-1024.jpg`,
|
|
141
|
+
},
|
|
142
|
+
video: `${base}/scroll.webm`,
|
|
143
|
+
dom: {
|
|
144
|
+
html: `${base}/page.html`,
|
|
145
|
+
metrics: `${base}/metrics.json`,
|
|
146
|
+
scores: `${base}/scores.json`,
|
|
147
|
+
features: `${base}/features.json`,
|
|
148
|
+
},
|
|
149
|
+
diagnostics: {
|
|
150
|
+
console: `${base}/console.json`,
|
|
151
|
+
network: `${base}/network.json`,
|
|
152
|
+
a11y: `${base}/a11y.json`,
|
|
153
|
+
css_coverage: `${base}/css-coverage.json`,
|
|
154
|
+
},
|
|
155
|
+
files_index: `https://designsense.tixo-digital.workers.dev/dataset/${site.id}/files`,
|
|
156
|
+
}
|
|
157
|
+
})(),
|
|
134
158
|
mdvp: { version: "1", api: "https://designsense.tixo-digital.workers.dev", dataset_url: `https://designsense.tixo-digital.workers.dev/dataset/${site.id}` },
|
|
135
159
|
}
|
|
136
160
|
console.log(JSON.stringify(output, null, 2))
|