https://github.com/rmarting/rhdh-dynamic-devquote-plugin
Sample of a dynamic plugin for Janus-IDP or Red Hat Developer Hub
https://github.com/rmarting/rhdh-dynamic-devquote-plugin
backstage dynamic janus-idp plugin
Last synced: 2 months ago
JSON representation
Sample of a dynamic plugin for Janus-IDP or Red Hat Developer Hub
- Host: GitHub
- URL: https://github.com/rmarting/rhdh-dynamic-devquote-plugin
- Owner: rmarting
- License: apache-2.0
- Created: 2024-01-09T16:08:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T16:23:36.000Z (12 months ago)
- Last Synced: 2025-10-16T01:03:51.821Z (3 months ago)
- Topics: backstage, dynamic, janus-idp, plugin
- Language: TypeScript
- Homepage:
- Size: 438 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dev Quote Dynamic Plugin for Red Hat Developer Hub
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](https://github.com/Parsifal-M/backstage-dev-quotes)
## Configuration
The main files to describe this plugin are:
* `package.json` - Describe the module, dependencies, and scripts
* `tsconfig.json` - Compiler and distribution options
* `app-config.yaml` - Application configuration for publishing
## Building and 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`
## Deploying into Red Hat Developer Hub
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:
```yaml
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
```
## References
* [Janus-IDP - Dynamic Plugins Support](https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/dynamic-plugins.md)
* [Janus-IDP - Helm Chart](https://artifacthub.io/packages/helm/janus-idp/backstage)