Skip to content

Commit

Permalink
chore: add dynamic wrapper for nexus-repository-manager plugin (#1738)
Browse files Browse the repository at this point in the history
* add dynamic wrapper for nexus-repository-manager plugin

Signed-off-by: Jessica He <[email protected]>

* Update dynamic-plugins/wrappers/backstage-community-plugin-nexus-repository-manager/src/index.ts

Co-authored-by: Paul Schultz <[email protected]>

* Update dynamic-plugins/wrappers/backstage-community-plugin-nexus-repository-manager/package.json

---------

Signed-off-by: Jessica He <[email protected]>
Co-authored-by: Paul Schultz <[email protected]>
  • Loading branch information
JessicaJHee and schultzp2020 authored Oct 28, 2024
1 parent d55db49 commit 7056603
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Our current list of plugins within the showcase app include:
- [Dynatrace plugin](https://github.com/backstage/community-plugins/tree/main/workspaces/dynatrace/plugins/dynatrace)
- [Gitlab Scaffolder actions](https://github.com/backstage/backstage/tree/master/plugins/scaffolder-backend-module-gitlab)
- [Utils Scaffolder actions](https://github.com/RoadieHQ/roadie-backstage-plugins/tree/main/plugins/scaffolder-actions/scaffolder-backend-module-utils)
- [Nexus Repository Manager plugin](https://github.com/janus-idp/backstage-plugins/tree/main/plugins/nexus-repository-manager)
- [Nexus Repository Manager plugin](https://github.com/backstage/community-plugins/tree/main/workspaces/nexus-repository-manager/plugins/nexus-repository-manager)
- [AAP Backend plugin](https://github.com/janus-idp/backstage-plugins/tree/main/plugins/aap-backend)

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion app-config.dynamic-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ dynamicPlugins:
if:
anyOf:
- isJfrogArtifactoryAvailable
janus-idp.backstage-plugin-nexus-repository-manager:
backstage-community.plugin-nexus-repository-manager:
mountPoints:
- mountPoint: entity.page.image-registry/cards
importName: NexusRepositoryManagerPage
Expand Down
4 changes: 2 additions & 2 deletions dynamic-plugins.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -780,12 +780,12 @@ plugins:
anyOf:
- isQuayAvailable

- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-nexus-repository-manager
- package: ./dynamic-plugins/dist/backstage-community-plugin-nexus-repository-manager
disabled: true
pluginConfig:
dynamicPlugins:
frontend:
janus-idp.backstage-plugin-nexus-repository-manager:
backstage-community.plugin-nexus-repository-manager:
mountPoints:
- mountPoint: entity.page.image-registry/cards
importName: NexusRepositoryManagerPage
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "backstage-community-plugin-nexus-repository-manager",
"version": "1.10.1",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
"types": "dist/index.d.ts"
},
"backstage": {
"role": "frontend-plugin",
"supported-versions": "1.29.2",
"pluginId": "nexus-repository-manager",
"pluginPackages": [
"backstage-community-plugin-nexus-repository-manager"
]
},
"sideEffects": false,
"scripts": {
"tsc": "tsc",
"build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place"
},
"dependencies": {
"@backstage-community/plugin-nexus-repository-manager": "1.10.1"
},
"devDependencies": {
"@backstage/cli": "0.26.11",
"@janus-idp/cli": "1.14.0"
},
"files": [
"dist",
"dist-scalprum"
],
"scalprum": {
"name": "backstage-community.plugin-nexus-repository-manager",
"exposedModules": {
"PluginRoot": "./src/index.ts"
}
},
"repository": {
"type": "git",
"url": "https://github.com/janus-idp/backstage-showcase",
"directory": "dynamic-plugins/wrappers/backstage-community-plugin-nexus-repository-manager"
},
"maintainers": [
"@janus-idp/maintainers-showcase"
],
"author": "Red Hat",
"homepage": "https://red.ht/rhdh",
"bugs": "https://issues.redhat.com/browse/RHIDP",
"keywords": [
"support:tech-preview",
"lifecycle:active"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@backstage-community/plugin-nexus-repository-manager';
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@backstage/cli/config/tsconfig.json",
"include": ["src", "dev", "migrations"],
"exclude": ["node_modules"],
"compilerOptions": {
"outDir": "../../../dist-types/dynamic-plugins/wrappers/backstage-community-plugin-nexus-repository-manager",
"rootDir": "."
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": ["//"],
"tasks": {
"tsc": {
"outputs": [
"../../../dist-types/dynamic-plugins/wrappers/backstage-community-plugin-nexus-repository-manager/**"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export const InternalPluginsMap: Record<string, string> = {
'./dynamic-plugins/dist/janus-idp-backstage-plugin-tekton',
'@janus-idp/backstage-plugin-quay':
'./dynamic-plugins/dist/janus-idp-backstage-plugin-quay',
'@janus-idp/backstage-plugin-nexus-repository-manager':
'./dynamic-plugins/dist/janus-idp-backstage-plugin-nexus-repository-manager',
'backstage-community-plugin-nexus-repository-manager':
'./dynamic-plugins/dist/backstage-community-plugin-nexus-repository-manager',
'backstage-community-plugin-acr':
'./dynamic-plugins/dist/backstage-community-plugin-acr',
'@janus-idp/backstage-plugin-jfrog-artifactory':
Expand Down
Loading

0 comments on commit 7056603

Please sign in to comment.