From 7182d5112086361d409fd91bbce4f29585517b2b Mon Sep 17 00:00:00 2001 From: Min Kim Date: Tue, 17 Dec 2024 16:58:17 -0500 Subject: [PATCH] Move example cli template to root Signed-off-by: Min Kim --- example-cli-template.yaml | 12 ++++++++++++ package.json | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 example-cli-template.yaml diff --git a/example-cli-template.yaml b/example-cli-template.yaml new file mode 100644 index 0000000000..9bc6b9d5ac --- /dev/null +++ b/example-cli-template.yaml @@ -0,0 +1,12 @@ +# lib/new/factories/backendModule.ts +description: A new backend module that extends an existing backend plugin with additional features +template: ./packages/cli/templates/default-backend-module +targetPath: plugins +backendModulePrefix: true +prompts: + - id + - moduleId + - owner +additionalActions: + - install-backend + - add-backend diff --git a/package.json b/package.json index 1c84d56fba..6f9a7f2c06 100644 --- a/package.json +++ b/package.json @@ -3,14 +3,14 @@ "version": "1.36.0-next.0", "backstage": { "cli": { - "defaults": false, + "defaults": true, "globals": { "private": false }, "templates": [ { - "id": "local web plugin", - "target": "./packages/cli/templates/web-library-package.yaml" + "id": "local backend module example", + "target": "./example-cli-template.yaml" } ] }