From 4235077984c43926a8e1c1648bdc4c769baad114 Mon Sep 17 00:00:00 2001 From: Karthik Date: Wed, 8 Jan 2025 21:27:10 +0530 Subject: [PATCH 1/2] add wrapper for marketplace frontend, backend and catalog-backend-module plugins --- .rhdh/docker/Dockerfile | 3 + app-config.dynamic-plugins.yaml | 14 +++ docker/Dockerfile | 3 + dynamic-plugins.default.yaml | 23 ++++ .../.eslintignore | 2 + .../.eslintrc.js | 1 + .../package.json | 63 ++++++++++ .../src/index.ts | 1 + .../tsconfig.json | 9 ++ .../turbo.json | 11 ++ .../.eslintignore | 2 + .../.eslintrc.js | 1 + .../package.json | 69 +++++++++++ .../src/index.ts | 1 + .../tsconfig.json | 9 ++ .../turbo.json | 11 ++ .../.eslintignore | 2 + .../.eslintrc.js | 1 + .../package.json | 65 ++++++++++ .../src/index.ts | 1 + .../tsconfig.json | 9 ++ .../turbo.json | 11 ++ .../src/components/InternalPluginsMap.ts | 6 + yarn.lock | 117 +++++++++++++++++- 24 files changed, 434 insertions(+), 1 deletion(-) create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintignore create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintrc.js create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/src/index.ts create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/tsconfig.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintignore create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintrc.js create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/src/index.ts create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/tsconfig.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintignore create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintrc.js create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/src/index.ts create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/tsconfig.json create mode 100644 dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json diff --git a/.rhdh/docker/Dockerfile b/.rhdh/docker/Dockerfile index c7accf7f80..d29c6ce182 100644 --- a/.rhdh/docker/Dockerfile +++ b/.rhdh/docker/Dockerfile @@ -71,7 +71,10 @@ COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin- COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin-datadog/package.json ./dynamic-plugins/wrappers/roadiehq-backstage-plugin-datadog/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd/package.json ./dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd-backend-dynamic/package.json ./dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd-backend-dynamic/package.json +COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json +COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-dynamic-home-page/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-dynamic-home-page/package.json +COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import-backend-dynamic/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import-backend-dynamic/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic/package.json ./dynamic-plugins/wrappers/parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic/package.json diff --git a/app-config.dynamic-plugins.yaml b/app-config.dynamic-plugins.yaml index 75a5633493..591b6b2045 100644 --- a/app-config.dynamic-plugins.yaml +++ b/app-config.dynamic-plugins.yaml @@ -486,3 +486,17 @@ dynamicPlugins: rbac: parent: admin icon: rbacIcon + red-hat-developer-hub.backstage-plugin-marketplace: + appIcons: + - name: marketplace + importName: MarketplaceIcon + dynamicRoutes: + - path: /marketplace + importName: MarketplacePage + menuItem: + icon: marketplace + text: Marketplace + mountPoints: + - mountPoint: admin.page.plugins/cards + importName: MarketplaceCatalogContent + diff --git a/docker/Dockerfile b/docker/Dockerfile index 63b1132d01..fa8e5d2b09 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -72,7 +72,10 @@ COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin- COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin-datadog/package.json ./dynamic-plugins/wrappers/roadiehq-backstage-plugin-datadog/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd/package.json ./dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd-backend-dynamic/package.json ./dynamic-plugins/wrappers/roadiehq-backstage-plugin-argo-cd-backend-dynamic/package.json +COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json +COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-dynamic-home-page/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-dynamic-home-page/package.json +COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import-backend-dynamic/package.json ./dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-bulk-import-backend-dynamic/package.json COPY $EXTERNAL_SOURCE_NESTED/dynamic-plugins/wrappers/parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic/package.json ./dynamic-plugins/wrappers/parfuemerie-douglas-scaffolder-backend-module-azure-repositories-dynamic/package.json diff --git a/dynamic-plugins.default.yaml b/dynamic-plugins.default.yaml index 272ca2425e..59ab2edb8f 100644 --- a/dynamic-plugins.default.yaml +++ b/dynamic-plugins.default.yaml @@ -1010,3 +1010,26 @@ plugins: catalog: providers: pingIdentityOrg: {} + # Group: Marketplace + - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic + disabled: true + - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic + disabled: true + - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace + disabled: true + pluginConfig: + dynamicPlugins: + frontend: + red-hat-developer-hub.backstage-plugin-marketplace: + appIcons: + - name: marketplace + importName: MarketplaceIcon + dynamicRoutes: + - path: /marketplace + importName: MarketplacePage + menuItem: + icon: marketplace + text: Marketplace + mountPoints: + - mountPoint: admin.page.plugins/cards + importName: MarketplaceCatalogContent \ No newline at end of file diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintignore b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintignore new file mode 100644 index 0000000000..55289f4a23 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintignore @@ -0,0 +1,2 @@ +dist-dynamic +dist-scalprum diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintrc.js b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintrc.js new file mode 100644 index 0000000000..958d722cb2 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json new file mode 100644 index 0000000000..be80652e3b --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json @@ -0,0 +1,63 @@ +{ + "name": "red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace", + "version": "0.0.2", + "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": "backend-plugin-module", + "supported-versions": "1.32.6", + "pluginId": "catalog", + "pluginPackage": "@backstage/plugin-catalog-backend" + }, + "sideEffects": false, + "scripts": { + "tsc": "tsc", + "build": "backstage-cli package build", + "lint:check": "backstage-cli package lint", + "test": "backstage-cli package test --passWithNoTests --coverage", + "clean": "backstage-cli package clean", + "clean-dynamic-sources": "yarn clean && rm -Rf node_modules", + "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace", + "export-dynamic:clean": "run export-dynamic --clean" + }, + "dependencies": { + "@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace": "0.0.2" + }, + "devDependencies": { + "@backstage/cli": "0.28.2", + "@janus-idp/cli": "1.18.5", + "typescript": "5.6.3" + }, + "files": [ + "app-config.dynamic.yaml", + "dist", + "dist-scalprum" + ], + "scalprum": { + "name": "red-hat-developer-hub.backstage-plugin-catalog-backend-module-marketplace-dynamic", + "exposedModules": { + "PluginRoot": "./src/index.ts" + } + }, + "repository": { + "type": "git", + "url": "https://github.com/janus-idp/backstage-showcase", + "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic" + }, + "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" + ] +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/src/index.ts b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/src/index.ts new file mode 100644 index 0000000000..4b60d6dd3d --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/src/index.ts @@ -0,0 +1 @@ +export { default } from "@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace"; diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/tsconfig.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/tsconfig.json new file mode 100644 index 0000000000..ccef59b772 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "@backstage/cli/config/tsconfig.json", + "include": ["src", "dev", "migrations"], + "exclude": ["node_modules"], + "compilerOptions": { + "outDir": "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic", + "rootDir": "." + } +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json new file mode 100644 index 0000000000..c595ed9ce7 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "tsc": { + "outputs": [ + "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/**" + ] + } + } + } + \ No newline at end of file diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintignore b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintignore new file mode 100644 index 0000000000..55289f4a23 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintignore @@ -0,0 +1,2 @@ +dist-dynamic +dist-scalprum diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintrc.js b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintrc.js new file mode 100644 index 0000000000..958d722cb2 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json new file mode 100644 index 0000000000..f3839c4eb2 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json @@ -0,0 +1,69 @@ +{ + "name": "red-hat-developer-hub-backstage-plugin-marketplace-backend", + "version": "0.0.2", + "main": "src/index.ts", + "types": "src/index.ts", + "license": "Apache-2.0", + "private": true, + "publishConfig": { + "access": "public" + }, + "backstage": { + "role": "backend-plugin", + "supported-versions": "1.32.6", + "pluginId": "red-hat-developer-hub-backstage-plugin-marketplace-backend", + "pluginPackages": [ + "red-hat-developer-hub-backstage-plugin-marketplace", + "red-hat-developer-hub-backstage-plugin-marketplace-backend" + ] + }, + "exports": { + ".": "./src/index.ts", + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "package.json": [ + "package.json" + ] + } + }, + "scripts": { + "tsc": "tsc", + "build": "backstage-cli package build", + "lint:check": "backstage-cli package lint", + "test": "backstage-cli package test --passWithNoTests --coverage", + "clean": "backstage-cli package clean", + "clean-dynamic-sources": "yarn clean && rm -Rf node_modules", + "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @red-hat-developer-hub/backstage-plugin-marketplace-backend", + "export-dynamic:clean": "run export-dynamic --clean" + }, + "dependencies": { + "@red-hat-developer-hub/backstage-plugin-marketplace-backend": "0.0.2" + }, + "devDependencies": { + "@backstage/cli": "0.28.2", + "@janus-idp/cli": "1.18.5", + "typescript": "5.6.3" + }, + "files": [ + "dist", + "dist-dynamic/*.*", + "dist-dynamic/dist/**" + ], + "repository": { + "type": "git", + "url": "https://github.com/janus-idp/backstage-showcase", + "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic" + }, + "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" + ] +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/src/index.ts b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/src/index.ts new file mode 100644 index 0000000000..63e351be06 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/src/index.ts @@ -0,0 +1 @@ +export { default } from "@red-hat-developer-hub/backstage-plugin-marketplace-backend"; diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/tsconfig.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/tsconfig.json new file mode 100644 index 0000000000..92eef65f99 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "@backstage/cli/config/tsconfig.json", + "include": ["src", "dev", "migrations"], + "exclude": ["node_modules"], + "compilerOptions": { + "outDir": "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic", + "rootDir": "." + } +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json new file mode 100644 index 0000000000..3771da9047 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "tsc": { + "outputs": [ + "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/**" + ] + } + } + } + \ No newline at end of file diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintignore b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintignore new file mode 100644 index 0000000000..55289f4a23 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintignore @@ -0,0 +1,2 @@ +dist-dynamic +dist-scalprum diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintrc.js b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintrc.js new file mode 100644 index 0000000000..958d722cb2 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require("@backstage/cli/config/eslint-factory")(__dirname); diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json new file mode 100644 index 0000000000..0e329708f8 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json @@ -0,0 +1,65 @@ +{ + "name": "red-hat-developer-hub-backstage-plugin-marketplace", + "version": "0.0.2", + "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.32.6", + "pluginId": "red-hat-developer-hub-backstage-plugin-marketplace", + "pluginPackages": [ + "@red-hat-developer-hub/backstage-plugin-marketplace", + "@red-hat-developer-hub/backstage-plugin-marketplace-backend" + ] + }, + "sideEffects": false, + "scripts": { + "tsc": "tsc", + "build": "backstage-cli package build", + "lint:check": "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", + "export-dynamic:clean": "run export-dynamic --clean" + }, + "dependencies": { + "@red-hat-developer-hub/backstage-plugin-marketplace": "0.0.2" + }, + "devDependencies": { + "@backstage/cli": "0.28.2", + "@janus-idp/cli": "1.18.5", + "typescript": "5.6.3" + }, + "files": [ + "app-config.dynamic.yaml", + "dist", + "dist-scalprum" + ], + "scalprum": { + "name": "red-hat-developer-hub.backstage-plugin-marketplace", + "exposedModules": { + "PluginRoot": "./src/index.ts" + } + }, + "repository": { + "type": "git", + "url": "https://github.com/janus-idp/backstage-showcase", + "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace" + }, + "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" + ] +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/src/index.ts b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/src/index.ts new file mode 100644 index 0000000000..2c44ad9c08 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/src/index.ts @@ -0,0 +1 @@ +export * from "@red-hat-developer-hub/backstage-plugin-marketplace"; diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/tsconfig.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/tsconfig.json new file mode 100644 index 0000000000..2ca5124886 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "@backstage/cli/config/tsconfig.json", + "include": ["src", "dev", "migrations"], + "exclude": ["node_modules"], + "compilerOptions": { + "outDir": "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace", + "rootDir": "." + } +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json new file mode 100644 index 0000000000..6a08e54c68 --- /dev/null +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "tsc": { + "outputs": [ + "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/**" + ] + } + } + } + \ No newline at end of file diff --git a/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts b/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts index 0f8628d301..1af7cd7666 100644 --- a/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts +++ b/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts @@ -65,6 +65,12 @@ export const InternalPluginsMap: Record = { './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import', 'red-hat-developer-hub-backstage-plugin-dynamic-home-page': './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-dynamic-home-page', + 'red-hat-developer-hub-backstage-plugin-marketplace': + './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin--marketplace', + 'red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic': + './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic', + 'red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic': + './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic', 'backstage-plugin-techdocs-backend-dynamic': './dynamic-plugins/dist/backstage-plugin-techdocs-backend-dynamic', 'backstage-plugin-techdocs': diff --git a/yarn.lock b/yarn.lock index 54a256d528..be361dec96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16434,6 +16434,21 @@ __metadata: languageName: node linkType: hard +"@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace@npm:0.0.2": + version: 0.0.2 + resolution: "@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace@npm:0.0.2" + dependencies: + "@backstage/backend-plugin-api": ^1.0.1 + "@backstage/catalog-model": ^1.7.0 + "@backstage/plugin-catalog-common": ^1.1.0 + "@backstage/plugin-catalog-node": ^1.13.1 + "@backstage/types": ^1.1.1 + "@red-hat-developer-hub/backstage-plugin-marketplace-common": ^0.0.2 + semver: ^7.6.3 + checksum: 381b6ea930fbfc86644d95fffb970fcff445ff05f604cb39dda043886cb756f85dd7399a0fb41c1faf4b42f6822f70eb0b1b5d599c4605b606ca1157950fa8a4 + languageName: node + linkType: hard + "@red-hat-developer-hub/backstage-plugin-dynamic-home-page@npm:1.0.1": version: 1.0.1 resolution: "@red-hat-developer-hub/backstage-plugin-dynamic-home-page@npm:1.0.1" @@ -16458,6 +16473,55 @@ __metadata: languageName: node linkType: hard +"@red-hat-developer-hub/backstage-plugin-marketplace-backend@npm:0.0.2": + version: 0.0.2 + resolution: "@red-hat-developer-hub/backstage-plugin-marketplace-backend@npm:0.0.2" + dependencies: + "@backstage/backend-defaults": ^0.5.2 + "@backstage/backend-plugin-api": ^1.0.1 + "@backstage/catalog-client": ^1.8.0 + "@backstage/errors": ^1.2.4 + "@red-hat-developer-hub/backstage-plugin-marketplace-common": ^0.0.2 + express: ^4.17.1 + express-promise-router: ^4.1.0 + glob: ^10.4.5 + yaml: ^2.6.0 + zod: ^3.22.4 + checksum: 61e429fd6cde71700506b22459a4bbebb523c95714c01c353b16450caed999947572d5bdd8219a0c15acdea1924dc9042938919139fd6a8ba367bf18efd813c4 + languageName: node + linkType: hard + +"@red-hat-developer-hub/backstage-plugin-marketplace-common@npm:^0.0.2": + version: 0.0.2 + resolution: "@red-hat-developer-hub/backstage-plugin-marketplace-common@npm:0.0.2" + peerDependencies: + "@backstage/catalog-model": ^1.7.0 + "@backstage/types": ^1.1.1 + checksum: 4f1783ab36fe4b0823e5e96c5a43e0292157696230036dfa8ce06cef94c0b58a8fbb2de75e9c0688391da6340265c3f075fe35f783538a2b82037bb639252036 + languageName: node + linkType: hard + +"@red-hat-developer-hub/backstage-plugin-marketplace@npm:0.0.2": + version: 0.0.2 + resolution: "@red-hat-developer-hub/backstage-plugin-marketplace@npm:0.0.2" + dependencies: + "@backstage/core-components": ^0.15.1 + "@backstage/core-plugin-api": ^1.10.0 + "@backstage/plugin-catalog-react": ^1.14.0 + "@backstage/theme": ^0.6.0 + "@mui/icons-material": ^5.16.7 + "@mui/material": ^5.12.2 + "@red-hat-developer-hub/backstage-plugin-marketplace-common": ^0.0.2 + "@tanstack/react-query": ^5.60.5 + react-use: ^17.2.4 + peerDependencies: + react: ^17.0.0 || ^18.0.0 + react-dom: ^17.0.0 || ^18.0.0 + react-router-dom: ^6.3.0 + checksum: 70b9898bf2f6f880e2d58c9c426ef6e010314f5d8a5953ce725991e83e3bcfd8d0d8d7580aad645c427700593cce785f59199acc6e37cbd3f31d38b751d73f3a + languageName: node + linkType: hard + "@redhat-developer/red-hat-developer-hub-theme@npm:0.4.0": version: 0.4.0 resolution: "@redhat-developer/red-hat-developer-hub-theme@npm:0.4.0" @@ -19221,6 +19285,13 @@ __metadata: languageName: node linkType: hard +"@tanstack/query-core@npm:5.62.16": + version: 5.62.16 + resolution: "@tanstack/query-core@npm:5.62.16" + checksum: 96e712dba70b9234884108ecac2fa05ae588f7a1758377d80aa30d4e830f00cbef95309d2806828ca224d1db51e3c8364857a6f3581edb989f2f16cb98ad0f26 + languageName: node + linkType: hard + "@tanstack/react-query@npm:^4.29.21": version: 4.36.1 resolution: "@tanstack/react-query@npm:4.36.1" @@ -19251,6 +19322,17 @@ __metadata: languageName: node linkType: hard +"@tanstack/react-query@npm:^5.60.5": + version: 5.62.16 + resolution: "@tanstack/react-query@npm:5.62.16" + dependencies: + "@tanstack/query-core": 5.62.16 + peerDependencies: + react: ^18 || ^19 + checksum: dbf9cf549799d96ecefea237617e15234d9fa446460efe5286e128840b1bcfff5d7ff8a9eb9208aefe469800b50fa2ad31d93e631be3e0a58baac61a3094fb33 + languageName: node + linkType: hard + "@tanstack/react-table@npm:8.16.0": version: 8.16.0 resolution: "@tanstack/react-table@npm:8.16.0" @@ -29821,7 +29903,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^10.0.0, glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.3.7, glob@npm:^10.4.1": +"glob@npm:^10.0.0, glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.3.7, glob@npm:^10.4.1, glob@npm:^10.4.5": version: 10.4.5 resolution: "glob@npm:10.4.5" dependencies: @@ -40259,6 +40341,17 @@ __metadata: languageName: unknown linkType: soft +"red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic": + version: 0.0.0-use.local + resolution: "red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic" + dependencies: + "@backstage/cli": 0.28.2 + "@janus-idp/cli": 1.18.5 + "@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace": 0.0.2 + typescript: 5.6.3 + languageName: unknown + linkType: soft + "red-hat-developer-hub-backstage-plugin-dynamic-home-page@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-dynamic-home-page": version: 0.0.0-use.local resolution: "red-hat-developer-hub-backstage-plugin-dynamic-home-page@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-dynamic-home-page" @@ -40271,6 +40364,28 @@ __metadata: languageName: unknown linkType: soft +"red-hat-developer-hub-backstage-plugin-marketplace-backend@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic": + version: 0.0.0-use.local + resolution: "red-hat-developer-hub-backstage-plugin-marketplace-backend@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic" + dependencies: + "@backstage/cli": 0.28.2 + "@janus-idp/cli": 1.18.5 + "@red-hat-developer-hub/backstage-plugin-marketplace-backend": 0.0.2 + typescript: 5.6.3 + languageName: unknown + linkType: soft + +"red-hat-developer-hub-backstage-plugin-marketplace@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace": + version: 0.0.0-use.local + resolution: "red-hat-developer-hub-backstage-plugin-marketplace@workspace:dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace" + dependencies: + "@backstage/cli": 0.28.2 + "@janus-idp/cli": 1.18.5 + "@red-hat-developer-hub/backstage-plugin-marketplace": 0.0.2 + typescript: 5.6.3 + languageName: unknown + linkType: soft + "redent@npm:^3.0.0": version: 3.0.0 resolution: "redent@npm:3.0.0" From 69e1b758054338528d1f44c8e5d73cc7f0c37d9f Mon Sep 17 00:00:00 2001 From: Karthik Date: Thu, 9 Jan 2025 19:48:05 +0530 Subject: [PATCH 2/2] fix indendation on json files --- .../package.json | 122 ++++++++-------- .../turbo.json | 15 +- .../package.json | 132 +++++++++--------- .../turbo.json | 15 +- .../package.json | 124 ++++++++-------- .../turbo.json | 15 +- .../src/components/InternalPluginsMap.ts | 2 +- 7 files changed, 211 insertions(+), 214 deletions(-) diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json index be80652e3b..a0b44bfa10 100644 --- a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/package.json @@ -1,63 +1,63 @@ { - "name": "red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace", - "version": "0.0.2", - "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": "backend-plugin-module", - "supported-versions": "1.32.6", - "pluginId": "catalog", - "pluginPackage": "@backstage/plugin-catalog-backend" - }, - "sideEffects": false, - "scripts": { - "tsc": "tsc", - "build": "backstage-cli package build", - "lint:check": "backstage-cli package lint", - "test": "backstage-cli package test --passWithNoTests --coverage", - "clean": "backstage-cli package clean", - "clean-dynamic-sources": "yarn clean && rm -Rf node_modules", - "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace", - "export-dynamic:clean": "run export-dynamic --clean" - }, - "dependencies": { - "@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace": "0.0.2" - }, - "devDependencies": { - "@backstage/cli": "0.28.2", - "@janus-idp/cli": "1.18.5", - "typescript": "5.6.3" - }, - "files": [ - "app-config.dynamic.yaml", - "dist", - "dist-scalprum" - ], - "scalprum": { - "name": "red-hat-developer-hub.backstage-plugin-catalog-backend-module-marketplace-dynamic", - "exposedModules": { - "PluginRoot": "./src/index.ts" - } - }, - "repository": { - "type": "git", - "url": "https://github.com/janus-idp/backstage-showcase", - "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic" - }, - "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" - ] + "name": "red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace", + "version": "0.0.2", + "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": "backend-plugin-module", + "supported-versions": "1.32.6", + "pluginId": "catalog", + "pluginPackage": "@backstage/plugin-catalog-backend" + }, + "sideEffects": false, + "scripts": { + "tsc": "tsc", + "build": "backstage-cli package build", + "lint:check": "backstage-cli package lint", + "test": "backstage-cli package test --passWithNoTests --coverage", + "clean": "backstage-cli package clean", + "clean-dynamic-sources": "yarn clean && rm -Rf node_modules", + "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace", + "export-dynamic:clean": "run export-dynamic --clean" + }, + "dependencies": { + "@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace": "0.0.2" + }, + "devDependencies": { + "@backstage/cli": "0.28.2", + "@janus-idp/cli": "1.18.5", + "typescript": "5.6.3" + }, + "files": [ + "app-config.dynamic.yaml", + "dist", + "dist-scalprum" + ], + "scalprum": { + "name": "red-hat-developer-hub.backstage-plugin-catalog-backend-module-marketplace-dynamic", + "exposedModules": { + "PluginRoot": "./src/index.ts" + } + }, + "repository": { + "type": "git", + "url": "https://github.com/janus-idp/backstage-showcase", + "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic" + }, + "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" + ] } diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json index c595ed9ce7..e68dd5a5ce 100644 --- a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/turbo.json @@ -1,11 +1,10 @@ { - "extends": ["//"], - "tasks": { - "tsc": { - "outputs": [ - "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/**" - ] - } + "extends": ["//"], + "tasks": { + "tsc": { + "outputs": [ + "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic/**" + ] } } - \ No newline at end of file +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json index f3839c4eb2..3cddb636b4 100644 --- a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/package.json @@ -1,69 +1,69 @@ { - "name": "red-hat-developer-hub-backstage-plugin-marketplace-backend", - "version": "0.0.2", - "main": "src/index.ts", - "types": "src/index.ts", - "license": "Apache-2.0", - "private": true, - "publishConfig": { - "access": "public" - }, - "backstage": { - "role": "backend-plugin", - "supported-versions": "1.32.6", - "pluginId": "red-hat-developer-hub-backstage-plugin-marketplace-backend", - "pluginPackages": [ - "red-hat-developer-hub-backstage-plugin-marketplace", - "red-hat-developer-hub-backstage-plugin-marketplace-backend" - ] - }, - "exports": { - ".": "./src/index.ts", - "./package.json": "./package.json" - }, - "typesVersions": { - "*": { - "package.json": [ - "package.json" - ] - } - }, - "scripts": { - "tsc": "tsc", - "build": "backstage-cli package build", - "lint:check": "backstage-cli package lint", - "test": "backstage-cli package test --passWithNoTests --coverage", - "clean": "backstage-cli package clean", - "clean-dynamic-sources": "yarn clean && rm -Rf node_modules", - "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @red-hat-developer-hub/backstage-plugin-marketplace-backend", - "export-dynamic:clean": "run export-dynamic --clean" - }, - "dependencies": { - "@red-hat-developer-hub/backstage-plugin-marketplace-backend": "0.0.2" - }, - "devDependencies": { - "@backstage/cli": "0.28.2", - "@janus-idp/cli": "1.18.5", - "typescript": "5.6.3" - }, - "files": [ - "dist", - "dist-dynamic/*.*", - "dist-dynamic/dist/**" - ], - "repository": { - "type": "git", - "url": "https://github.com/janus-idp/backstage-showcase", - "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic" - }, - "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" + "name": "red-hat-developer-hub-backstage-plugin-marketplace-backend", + "version": "0.0.2", + "main": "src/index.ts", + "types": "src/index.ts", + "license": "Apache-2.0", + "private": true, + "publishConfig": { + "access": "public" + }, + "backstage": { + "role": "backend-plugin", + "supported-versions": "1.32.6", + "pluginId": "red-hat-developer-hub-backstage-plugin-marketplace-backend", + "pluginPackages": [ + "red-hat-developer-hub-backstage-plugin-marketplace", + "red-hat-developer-hub-backstage-plugin-marketplace-backend" ] + }, + "exports": { + ".": "./src/index.ts", + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "package.json": [ + "package.json" + ] + } + }, + "scripts": { + "tsc": "tsc", + "build": "backstage-cli package build", + "lint:check": "backstage-cli package lint", + "test": "backstage-cli package test --passWithNoTests --coverage", + "clean": "backstage-cli package clean", + "clean-dynamic-sources": "yarn clean && rm -Rf node_modules", + "export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @red-hat-developer-hub/backstage-plugin-marketplace-backend", + "export-dynamic:clean": "run export-dynamic --clean" + }, + "dependencies": { + "@red-hat-developer-hub/backstage-plugin-marketplace-backend": "0.0.2" + }, + "devDependencies": { + "@backstage/cli": "0.28.2", + "@janus-idp/cli": "1.18.5", + "typescript": "5.6.3" + }, + "files": [ + "dist", + "dist-dynamic/*.*", + "dist-dynamic/dist/**" + ], + "repository": { + "type": "git", + "url": "https://github.com/janus-idp/backstage-showcase", + "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic" + }, + "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" + ] } diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json index 3771da9047..58b345a372 100644 --- a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/turbo.json @@ -1,11 +1,10 @@ { - "extends": ["//"], - "tasks": { - "tsc": { - "outputs": [ - "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/**" - ] - } + "extends": ["//"], + "tasks": { + "tsc": { + "outputs": [ + "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic/**" + ] } } - \ No newline at end of file +} diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json index 0e329708f8..81952fe1ac 100644 --- a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/package.json @@ -1,65 +1,65 @@ { - "name": "red-hat-developer-hub-backstage-plugin-marketplace", - "version": "0.0.2", - "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.32.6", - "pluginId": "red-hat-developer-hub-backstage-plugin-marketplace", - "pluginPackages": [ - "@red-hat-developer-hub/backstage-plugin-marketplace", - "@red-hat-developer-hub/backstage-plugin-marketplace-backend" - ] - }, - "sideEffects": false, - "scripts": { - "tsc": "tsc", - "build": "backstage-cli package build", - "lint:check": "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", - "export-dynamic:clean": "run export-dynamic --clean" - }, - "dependencies": { - "@red-hat-developer-hub/backstage-plugin-marketplace": "0.0.2" - }, - "devDependencies": { - "@backstage/cli": "0.28.2", - "@janus-idp/cli": "1.18.5", - "typescript": "5.6.3" - }, - "files": [ - "app-config.dynamic.yaml", - "dist", - "dist-scalprum" - ], - "scalprum": { - "name": "red-hat-developer-hub.backstage-plugin-marketplace", - "exposedModules": { - "PluginRoot": "./src/index.ts" - } - }, - "repository": { - "type": "git", - "url": "https://github.com/janus-idp/backstage-showcase", - "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace" - }, - "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" + "name": "red-hat-developer-hub-backstage-plugin-marketplace", + "version": "0.0.2", + "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.32.6", + "pluginId": "red-hat-developer-hub-backstage-plugin-marketplace", + "pluginPackages": [ + "@red-hat-developer-hub/backstage-plugin-marketplace", + "@red-hat-developer-hub/backstage-plugin-marketplace-backend" ] + }, + "sideEffects": false, + "scripts": { + "tsc": "tsc", + "build": "backstage-cli package build", + "lint:check": "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", + "export-dynamic:clean": "run export-dynamic --clean" + }, + "dependencies": { + "@red-hat-developer-hub/backstage-plugin-marketplace": "0.0.2" + }, + "devDependencies": { + "@backstage/cli": "0.28.2", + "@janus-idp/cli": "1.18.5", + "typescript": "5.6.3" + }, + "files": [ + "app-config.dynamic.yaml", + "dist", + "dist-scalprum" + ], + "scalprum": { + "name": "red-hat-developer-hub.backstage-plugin-marketplace", + "exposedModules": { + "PluginRoot": "./src/index.ts" + } + }, + "repository": { + "type": "git", + "url": "https://github.com/janus-idp/backstage-showcase", + "directory": "dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace" + }, + "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" + ] } diff --git a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json index 6a08e54c68..6bb46a5344 100644 --- a/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json +++ b/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/turbo.json @@ -1,11 +1,10 @@ { - "extends": ["//"], - "tasks": { - "tsc": { - "outputs": [ - "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/**" - ] - } + "extends": ["//"], + "tasks": { + "tsc": { + "outputs": [ + "../../../dist-types/dynamic-plugins/wrappers/red-hat-developer-hub-backstage-plugin-marketplace/**" + ] } } - \ No newline at end of file +} diff --git a/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts b/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts index 1af7cd7666..72db98667f 100644 --- a/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts +++ b/plugins/dynamic-plugins-info/src/components/InternalPluginsMap.ts @@ -66,7 +66,7 @@ export const InternalPluginsMap: Record = { 'red-hat-developer-hub-backstage-plugin-dynamic-home-page': './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-dynamic-home-page', 'red-hat-developer-hub-backstage-plugin-marketplace': - './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin--marketplace', + './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace', 'red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic': './dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic', 'red-hat-developer-hub-backstage-plugin-catalog-backend-module-marketplace-dynamic':