2022-05-04 07:04:27 +08:00

27 lines
578 B
Smarty

import type { Plugin, App } from '@vuepress/core'
{{#if client}}
import path from 'path'
{{/if}}
{{#if shared}}
import type { {{ upperName }}Options } from '../shared'
{{else}}
export interface {{ upperName }}Options {
a?: string
}
{{/if}}
export const {{ lowerName }}Plugin = (options: {{ upperName }}Options): Plugin => {
return (app: App) => {
return {
name: '@vuepress-plume/vuepress-{{ pkgName }}',
{{#if client}}
clientAppEnhanceFiles: path.resolve(
__dirname,
'../client/clientAppEnhance.js'
),
{{/if}}
}
}
}