Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before starting the server-client architecture migration and domain features described in docs/agent-guide and the approved implementation plan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
31
scripts/check-ios-web-fonts.mjs
Normal file
31
scripts/check-ios-web-fonts.mjs
Normal file
@@ -0,0 +1,31 @@
|
||||
import path from 'node:path'
|
||||
|
||||
import { findUnsupportedIOSFontAssets } from './lib/check-ios-web-fonts.mjs'
|
||||
|
||||
const repoRoot = path.resolve(import.meta.dirname, '..')
|
||||
const assetRoots = [
|
||||
path.join(repoRoot, 'static', 'mobile'),
|
||||
path.join(repoRoot, 'ios', 'App', 'App', 'public'),
|
||||
]
|
||||
|
||||
const result = findUnsupportedIOSFontAssets({ repoRoot, assetRoots })
|
||||
|
||||
if (result.roots.length === 0) {
|
||||
throw new Error('No iOS web assets found. Run pnpm release-mobile or pnpm sync-ios-release first.')
|
||||
}
|
||||
|
||||
if (result.fontFiles.length > 0) {
|
||||
console.error('iOS web assets must not include .woff or .woff2 font files:')
|
||||
for (const filePath of result.fontFiles) {
|
||||
console.error(`- ${filePath}`)
|
||||
}
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
if (result.cssFiles.length > 0) {
|
||||
console.error('iOS web CSS must not reference .woff or .woff2 font files:')
|
||||
for (const filePath of result.cssFiles) {
|
||||
console.error(`- ${filePath}`)
|
||||
}
|
||||
process.exit(1)
|
||||
}
|
||||
Reference in New Issue
Block a user