From ff951003f198cfb71920903bedcd5c8b6c6d4573 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 7 Feb 2025 15:11:56 +0100 Subject: [PATCH] cli/templates: define role for all package templates Signed-off-by: Patrik Oldsberg --- packages/cli/templates/default-backend-module.yaml | 2 +- packages/cli/templates/default-backend-plugin.yaml | 2 +- packages/cli/templates/default-common-plugin-package.yaml | 2 +- packages/cli/templates/default-node-plugin-package.yaml | 2 +- packages/cli/templates/default-plugin.yaml | 1 + packages/cli/templates/default-react-plugin-package.yaml | 2 +- packages/cli/templates/node-library-package.yaml | 2 +- packages/cli/templates/scaffolder-module.yaml | 2 +- packages/cli/templates/web-library-package.yaml | 2 +- 9 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/cli/templates/default-backend-module.yaml b/packages/cli/templates/default-backend-module.yaml index e588f6c8e6..d89c9e546e 100644 --- a/packages/cli/templates/default-backend-module.yaml +++ b/packages/cli/templates/default-backend-module.yaml @@ -1,7 +1,7 @@ description: A new backend module that extends an existing backend plugin with additional features template: ./default-backend-module targetPath: plugins -backendModulePrefix: true +role: backend-plugin-module prompts: - id - moduleId diff --git a/packages/cli/templates/default-backend-plugin.yaml b/packages/cli/templates/default-backend-plugin.yaml index 31e3fbbf7e..79dd690f64 100644 --- a/packages/cli/templates/default-backend-plugin.yaml +++ b/packages/cli/templates/default-backend-plugin.yaml @@ -1,7 +1,7 @@ description: A new backend plugin template: ./default-backend-plugin targetPath: plugins -suffix: backend +role: backend-plugin prompts: - id - owner diff --git a/packages/cli/templates/default-common-plugin-package.yaml b/packages/cli/templates/default-common-plugin-package.yaml index ff98c21dcd..d8bb07b8fe 100644 --- a/packages/cli/templates/default-common-plugin-package.yaml +++ b/packages/cli/templates/default-common-plugin-package.yaml @@ -1,7 +1,7 @@ description: A new isomorphic common plugin package template: ./default-common-plugin-package targetPath: plugins -suffix: common +role: plugin-common-library prompts: - id - owner diff --git a/packages/cli/templates/default-node-plugin-package.yaml b/packages/cli/templates/default-node-plugin-package.yaml index 2efd146843..0b2e41fbaf 100644 --- a/packages/cli/templates/default-node-plugin-package.yaml +++ b/packages/cli/templates/default-node-plugin-package.yaml @@ -1,7 +1,7 @@ description: A new Node.js library plugin package template: ./default-node-plugin-package targetPath: plugins -suffix: node +role: plugin-node-library prompts: - id - owner diff --git a/packages/cli/templates/default-plugin.yaml b/packages/cli/templates/default-plugin.yaml index bf89090659..30fa908fb8 100644 --- a/packages/cli/templates/default-plugin.yaml +++ b/packages/cli/templates/default-plugin.yaml @@ -1,6 +1,7 @@ description: A new frontend plugin template: ./default-plugin targetPath: plugins +role: frontend-plugin prompts: - id - owner diff --git a/packages/cli/templates/default-react-plugin-package.yaml b/packages/cli/templates/default-react-plugin-package.yaml index 1b6409766d..f4ae4efe26 100644 --- a/packages/cli/templates/default-react-plugin-package.yaml +++ b/packages/cli/templates/default-react-plugin-package.yaml @@ -1,7 +1,7 @@ description: A new web library plugin package template: ./default-react-plugin-package targetPath: plugins -suffix: react +role: plugin-web-library prompts: - id - owner diff --git a/packages/cli/templates/node-library-package.yaml b/packages/cli/templates/node-library-package.yaml index eb11ecf1be..fd17ffe40a 100644 --- a/packages/cli/templates/node-library-package.yaml +++ b/packages/cli/templates/node-library-package.yaml @@ -1,7 +1,7 @@ description: A new node-library package, exporting shared functionality for backend plugins and modules template: ./node-library-package targetPath: packages -plugin: false +role: node-library prompts: - id - owner diff --git a/packages/cli/templates/scaffolder-module.yaml b/packages/cli/templates/scaffolder-module.yaml index 1cda11529c..61285af75e 100644 --- a/packages/cli/templates/scaffolder-module.yaml +++ b/packages/cli/templates/scaffolder-module.yaml @@ -1,7 +1,7 @@ description: A module exporting custom actions for @backstage/plugin-scaffolder-backend template: ./scaffolder-module targetPath: plugins -backendModulePrefix: true +role: backend-plugin-module prompts: - id: id prompt: Enter the ID of the plugin [required] diff --git a/packages/cli/templates/web-library-package.yaml b/packages/cli/templates/web-library-package.yaml index 0cb33ee917..13d0cb6c96 100644 --- a/packages/cli/templates/web-library-package.yaml +++ b/packages/cli/templates/web-library-package.yaml @@ -1,7 +1,7 @@ description: A new web-library package, exporting shared functionality for frontend plugins template: ./web-library-package targetPath: packages -plugin: false +role: web-library prompts: - id - owner