plugin-package-json.model.ts 562 B

1234567891011121314151617181920212223242526272829
  1. import { PluginClientScope } from './client/plugin-client-scope.type'
  2. export type PluginTranslationPathsJSON = {
  3. [ locale: string ]: string
  4. }
  5. export type ClientScriptJSON = {
  6. script: string
  7. scopes: PluginClientScope[]
  8. }
  9. export type PluginPackageJSON = {
  10. name: string
  11. version: string
  12. description: string
  13. engine: { peertube: string }
  14. homepage: string
  15. author: string
  16. bugs: string
  17. library: string
  18. staticDirs: { [ name: string ]: string }
  19. css: string[]
  20. clientScripts: ClientScriptJSON[]
  21. translations: PluginTranslationPathsJSON
  22. }