mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
test(site): [SITE-05] enforce built links and validate online editors
This commit is contained in:
1 parent
6b580d1667
commit
fb78328c43
17 files changed
+2122
-15
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import process from 'node:process'
|
||||
import { checkSiteLinks } from './site-build/links.ts'
|
||||
|
||||
try {
|
||||
const report = await checkSiteLinks(`${process.cwd()}/docs`)
|
||||
console.log(JSON.stringify(report, null, 2))
|
||||
if (report.issues.length)
|
||||
process.exitCode = 1
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error instanceof Error ? error.message : error)
|
||||
process.exitCode = 1
|
||||
}
|
||||
Reference in new issue
Block a user