This is an example of a dynamic public to use with Red Hat Developer Hub. It is basically a wrapper of the original Dev Quotes plugin
The main files to describe this plugin are:
package.json
- Describe the module, dependencies, and scriptstsconfig.json
- Compiler and distribution optionsapp-config.yaml
- Application configuration for publishing
Install dependencies: yarn install
Compile the package: yarn tsc
Build the package: yarn build
Export plugin: yarn run export-dynamic
Publish plugin: yarn publish
Add the configuration into the global
section describing the package of this
plugin and its configuration. It is needed to add the integrity for the version
deployed into Red Hat Developer Hub.
The integrity value is described with the command:
npm info @rmarting/rhdh-dynamic-devquote-plugin@0.0.4
An example of that configuration can be:
global:
dynamic:
includes:
- dynamic-plugins.default.yaml
plugins:
- package: '@rmarting/rhdh-dynamic-devquote-plugin@0.0.4'
integrity: sha512-FxJ6m08GvO3f2qW8MOb+GTXQJyExA1aVAK8pzXTjAIyuENoVNbg3ajzuBTysJXLykNQwA+d9TIrbQUc/kdcpAA==
pluginConfig:
dynamicPlugins:
frontend:
rmarting.rhdh-dynamic-devquote-plugin:
mountPoints:
- mountPoint: entity.page.overview/cards
importName: DevQuote
config:
layout:
gridColumnEnd:
lg: span 4
md: span 6
xs: span 12
dynamicRoutes:
- importName: DevQuote
menuItem:
text: Quote
path: /devquote