Skip to content

Commit 4694ddd

Browse files
committed
feat(analyze): add docs URL to console reporter output
1 parent a2b96ad commit 4694ddd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

packages/shared/src/reporters/console.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,19 @@ export const ConsoleReporter: Reporter = {
4949
}
5050
console.log()
5151
}
52+
53+
// Generate docs URL with all documentable features
54+
const documentableTypes = new Set(['component', 'composable', 'plugin', 'util'])
55+
const allFeatures = reports
56+
.flatMap(r => r.features)
57+
.filter(f => documentableTypes.has(f.type))
58+
.map(f => f.name)
59+
60+
if (allFeatures.length > 0) {
61+
const url = `https://v0.vuetifyjs.com/?features=${allFeatures.join(',')}`
62+
console.log(bold('Documentation'))
63+
console.log(` ${blue('→')} ${url}`)
64+
console.log()
65+
}
5266
},
5367
}

0 commit comments

Comments
 (0)