@xiaohaqiu2/plugin-dp-dynamic-plugin-backend
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

dp-dynamic-plugin

Welcome to the dp-dynamic-plugin backend plugin!

This plugin was created through the Backstage CLI

Getting started

Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running yarn start in the root directory, and then navigating to /dp-dynamic-plugin.

You can also serve the plugin in isolation by running yarn start in the plugin directory. This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads. It is only meant for local development, and the setup for it can be found inside the /dev directory.

app-config.yaml

Add config below to app-config.yaml

dp-dynamic:
  plugins:
    - name: dp-remote-starter
      baseUrl: http://localhost:8080
      manifestLocation: http://localhost:8080/plugin-manifest.json
      exposedModules:
        - type: home-card
          name: RemoteStarter

GET api/dynamic-plugins

response

[
  {
    apiVersion: 'dp.cpaas.io/v1aplha1',
    kind: 'plugin',
    metadata: { name: 'dp-remote-starter' },
    spec: {
      exposedModules: [{ name: 'RemoteStarter', type: 'home-card' }],
      baseUrl: 'http://localhost:8080',
      manifestLocation: 'http://localhost:8080/plugin-manifest.json',
    },
  },
]

Readme

Keywords

none

Package Sidebar

Install

npm i @xiaohaqiu2/plugin-dp-dynamic-plugin-backend

Weekly Downloads

2

Version

0.1.1

License

Apache-2.0

Unpacked Size

57 kB

Total Files

11

Last publish

Collaborators

  • xiaohaqiu2