Skip to content

Commit

Permalink
add tempalte for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
zag committed Aug 11, 2024
1 parent 4397779 commit 5cb8b0f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/template-plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { PodliteWebPlugin, PodliteWebPluginContext } from './plugins'
import { publishRecord } from './shared'

const plugin = (): PodliteWebPlugin => {
const outCtx: PodliteWebPluginContext = {}
const onExit = ctx => ({ ...ctx, ...outCtx })
const onProcess = (recs: publishRecord[]) => {
return recs
}

return [onProcess, onExit]
}

export default plugin

0 comments on commit 5cb8b0f

Please sign in to comment.