aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/plugins/plugin-package-json.model.ts
blob: 5b9ccec56073675ed9b3daccf0f020a472e72048 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { PluginClientScope } from './client/plugin-client-scope.type.js'

export type PluginTranslationPathsJSON = {
  [ locale: string ]: string
}

export type ClientScriptJSON = {
  script: string
  scopes: PluginClientScope[]
}

export type PluginPackageJSON = {
  name: string
  version: string
  description: string
  engine: { peertube: string }

  homepage: string
  author: string
  bugs: string
  library: string

  staticDirs: { [ name: string ]: string }
  css: string[]

  clientScripts: ClientScriptJSON[]

  translations: PluginTranslationPathsJSON
}