0.0.2 • Published 2 years ago

@rmarting/my-devquote-plugin v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

My Dev Quote Plugin for Red Hat Developer Hub

This is an example of dynamic public to use with Red Hat Developer Hub. It is basically a wrapper of the original Dev Quotes plugin

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/my-devquote-plugin@0.0.1

An example of that configuration can be:

global:
  dynamic:
    includes:
      - dynamic-plugins.default.yaml
    plugins:
      - package: '@rmarting/my-devquote-plugin@0.0.1'
        integrity: sha512-nFo7JLUe5qyPw8Gv6sK1kqZfLczs4tAcqVjSM3RUeTZwmUZqoXBv31FtrprhIJHng2W8XflxwLqjZ119pwQpaQ==
        pluginConfig:
          dynamicPlugins:
            frontend:
              rmarting.my-devquote-plugin:
                mountPoints:
                  - config:
                      layout:
                        gridColumnEnd:
                          lg: span 4
                          md: span 6
                          xs: span 12
                    importName: DevQuote
                    mountPoint: entity.page.overview/cards
                dynamicRoutes:
                  - importName: DevQuote
                    menuItem:
                      text: Quote
                    path: /devquote
0.0.2

2 years ago

0.0.1

2 years ago