INNER CODE UNIT · TypeScript

listRawScreenshots

PaulWoitaschek/Voice · artwork/vite.config.ts:12

function listRawScreenshots(formFactor: string): string[] {
  const dir = join(RAW_DIR, formFactor)
  if (!existsSync(dir)) return []
  return readdirSync(dir)
    .filter((f) => f.toLowerCase().endsWith('.png'))
    .sort((a, b) => a.localeCompare(b, 'en', { numeric: true }))
}

function readMarketing(locale: string): unknown {
  const file = join(FASTLANE_DIR, locale, 'marketing.yml')
  return yaml.load(readFileSync(file, 'utf8'))
}

function fastlanePlugin(): Plugin {
  return {
    name: 'voice-artwork-fastlane',
    configureServer(server) {
      server.middlewares.use((req, res, next) => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…