Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
Something went wrong. Try again.
123456789101112131415161718import { providerNames, syncWithProvider } from '../providers/index'import { getMarkdownArticles, getTalks } from '../utils/items'
export default defineTask({ meta: { name: 'sync', description: 'Sync blogs and talks to GitHub Stars API and dev.to', }, async run () { const items = [ ...await getMarkdownArticles(), ...await getTalks(), ] const result = await Promise.all(providerNames.map(p => syncWithProvider(p, items))) return { result } },})