cli/new: move built-in prompts to be derived from role instead
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -2,10 +2,6 @@ description: A new backend module that extends an existing backend plugin with a
|
||||
template: ./default-backend-module
|
||||
targetPath: plugins
|
||||
role: backend-plugin-module
|
||||
prompts:
|
||||
- id
|
||||
- moduleId
|
||||
- owner
|
||||
additionalActions:
|
||||
- install-backend
|
||||
- add-backend
|
||||
|
||||
@@ -2,9 +2,6 @@ description: A new backend plugin
|
||||
template: ./default-backend-plugin
|
||||
targetPath: plugins
|
||||
role: backend-plugin
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
additionalActions:
|
||||
- install-backend
|
||||
- add-backend
|
||||
|
||||
@@ -2,6 +2,3 @@ description: A new isomorphic common plugin package
|
||||
template: ./default-common-plugin-package
|
||||
targetPath: plugins
|
||||
role: plugin-common-library
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
|
||||
@@ -2,6 +2,3 @@ description: A new Node.js library plugin package
|
||||
template: ./default-node-plugin-package
|
||||
targetPath: plugins
|
||||
role: plugin-node-library
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
|
||||
@@ -2,9 +2,6 @@ description: A new frontend plugin
|
||||
template: ./default-plugin
|
||||
targetPath: plugins
|
||||
role: frontend-plugin
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
additionalActions:
|
||||
- install-frontend
|
||||
- add-frontend-legacy
|
||||
|
||||
@@ -2,6 +2,3 @@ description: A new web library plugin package
|
||||
template: ./default-react-plugin-package
|
||||
targetPath: plugins
|
||||
role: plugin-web-library
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
|
||||
@@ -2,6 +2,3 @@ description: A new node-library package, exporting shared functionality for back
|
||||
template: ./node-library-package
|
||||
targetPath: packages
|
||||
role: node-library
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
|
||||
@@ -2,13 +2,8 @@ description: A module exporting custom actions for @backstage/plugin-scaffolder-
|
||||
template: ./scaffolder-module
|
||||
targetPath: plugins
|
||||
role: backend-plugin-module
|
||||
prompts:
|
||||
- id: id
|
||||
prompt: Enter the ID of the plugin [required]
|
||||
default: scaffolder
|
||||
validate: backstage-id
|
||||
- moduleId
|
||||
- owner
|
||||
params:
|
||||
pluginId: scaffolder
|
||||
additionalActions:
|
||||
- install-backend
|
||||
- add-backend
|
||||
|
||||
@@ -2,6 +2,3 @@ description: A new web-library package, exporting shared functionality for front
|
||||
template: ./web-library-package
|
||||
targetPath: packages
|
||||
role: web-library
|
||||
prompts:
|
||||
- id
|
||||
- owner
|
||||
|
||||
Reference in New Issue
Block a user