diff --git a/README.md b/README.md index 87fdbba..502629a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This SeatGeek Backstage Plugins Collection offers the following plugins: - **Gitlab Catalog**: the Gitlab Catalog Plugin offers catalog integrations with the Gitlab API. - [plugins/gitlab-catalog-backend](plugins/gitlab-catalog-backend/) - **HCL Scaffolder Actions**: the HCL Scaffolder Actions plugin includes custom actions for working with HCL in your Backstage Software Templates. - - [plugins/hcl-scaffolder-actions-backend](plugins/hcl-scaffolder-actions-backend/) + - [plugins/scaffolder-backend-module-hcl](plugins/scaffolder-backend-module-hcl/) Each of the plugins contain instructions for installation and development within their respective locations. diff --git a/plugins/hcl-scaffolder-actions-backend/.eslintrc.js b/plugins/scaffolder-backend-module-hcl/.eslintrc.js similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/.eslintrc.js rename to plugins/scaffolder-backend-module-hcl/.eslintrc.js diff --git a/plugins/hcl-scaffolder-actions-backend/.gitignore b/plugins/scaffolder-backend-module-hcl/.gitignore similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/.gitignore rename to plugins/scaffolder-backend-module-hcl/.gitignore diff --git a/plugins/hcl-scaffolder-actions-backend/README.md b/plugins/scaffolder-backend-module-hcl/README.md similarity index 77% rename from plugins/hcl-scaffolder-actions-backend/README.md rename to plugins/scaffolder-backend-module-hcl/README.md index 64fe319..1c22692 100644 --- a/plugins/hcl-scaffolder-actions-backend/README.md +++ b/plugins/scaffolder-backend-module-hcl/README.md @@ -1,4 +1,4 @@ -# hcl-scaffolder-actions-backend +# scaffolder-backend-module-hcl This contains a collection of actions to use in scaffolder templates for working with HCL (Hashicorp Configuration Language). See https://github.com/hashicorp/hcl to learn more about HCL. @@ -8,7 +8,7 @@ This contains a collection of actions to use in scaffolder templates for working ```bash # From your Backstage root directory -yarn add --cwd packages/backend @seatgeek/backstage-plugin-hcl-scaffolder-actions-backend +yarn add --cwd packages/backend @seatgeek/backstage-plugin-scaffolder-backend-module-hcl ``` Then ensure that both the scaffolder and this module are added to your backend: @@ -17,9 +17,7 @@ Then ensure that both the scaffolder and this module are added to your backend: // In packages/backend/src/index.ts const backend = createBackend(); // ... -backend.add( - import('@seatgeek/backstage-plugin-hcl-scaffolder-actions-backend'), -); +backend.add(import('@seatgeek/backstage-plugin-scaffolder-backend-module-hcl')); ``` After that you can use the actions in your template. diff --git a/plugins/hcl-scaffolder-actions-backend/package.json b/plugins/scaffolder-backend-module-hcl/package.json similarity index 90% rename from plugins/hcl-scaffolder-actions-backend/package.json rename to plugins/scaffolder-backend-module-hcl/package.json index f2ae1e8..c79027b 100644 --- a/plugins/hcl-scaffolder-actions-backend/package.json +++ b/plugins/scaffolder-backend-module-hcl/package.json @@ -1,5 +1,5 @@ { - "name": "@seatgeek/backstage-plugin-hcl-scaffolder-actions-backend", + "name": "@seatgeek/backstage-plugin-scaffolder-backend-module-hcl", "version": "0.0.0-semantically-released", "main": "src/index.ts", "types": "src/index.ts", @@ -13,7 +13,7 @@ "role": "backend-plugin-module", "pluginId": "scaffolder", "pluginPackages": [ - "@seatgeek/backstage-plugin-hcl-scaffolder-actions-backend" + "@seatgeek/backstage-plugin-scaffolder-backend-module-hcl" ], "pluginPackage": "@backstage/plugin-scaffolder-backend" }, diff --git a/plugins/hcl-scaffolder-actions-backend/src/actions/hcl/hcl.test.ts b/plugins/scaffolder-backend-module-hcl/src/actions/hcl/hcl.test.ts similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/src/actions/hcl/hcl.test.ts rename to plugins/scaffolder-backend-module-hcl/src/actions/hcl/hcl.test.ts diff --git a/plugins/hcl-scaffolder-actions-backend/src/actions/hcl/hcl.ts b/plugins/scaffolder-backend-module-hcl/src/actions/hcl/hcl.ts similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/src/actions/hcl/hcl.ts rename to plugins/scaffolder-backend-module-hcl/src/actions/hcl/hcl.ts diff --git a/plugins/hcl-scaffolder-actions-backend/src/actions/hcl/index.ts b/plugins/scaffolder-backend-module-hcl/src/actions/hcl/index.ts similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/src/actions/hcl/index.ts rename to plugins/scaffolder-backend-module-hcl/src/actions/hcl/index.ts diff --git a/plugins/hcl-scaffolder-actions-backend/src/actions/index.ts b/plugins/scaffolder-backend-module-hcl/src/actions/index.ts similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/src/actions/index.ts rename to plugins/scaffolder-backend-module-hcl/src/actions/index.ts diff --git a/plugins/hcl-scaffolder-actions-backend/src/index.ts b/plugins/scaffolder-backend-module-hcl/src/index.ts similarity index 100% rename from plugins/hcl-scaffolder-actions-backend/src/index.ts rename to plugins/scaffolder-backend-module-hcl/src/index.ts diff --git a/plugins/hcl-scaffolder-actions-backend/src/module.ts b/plugins/scaffolder-backend-module-hcl/src/module.ts similarity index 94% rename from plugins/hcl-scaffolder-actions-backend/src/module.ts rename to plugins/scaffolder-backend-module-hcl/src/module.ts index ce9a6f6..bc951fe 100644 --- a/plugins/hcl-scaffolder-actions-backend/src/module.ts +++ b/plugins/scaffolder-backend-module-hcl/src/module.ts @@ -11,7 +11,7 @@ import * as actions from './actions'; export const scaffolderBackendModuleActions = createBackendModule({ pluginId: 'scaffolder', - moduleId: 'hcl-scaffolder-actions-backend-module', + moduleId: 'scaffolder-backend-module-hcl', register({ registerInit }) { registerInit({ deps: {