cli/templates: match definitions to new design in docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -17,64 +17,52 @@
|
||||
export const defaultTemplates = [
|
||||
{
|
||||
id: 'backend-module',
|
||||
description: 'A new backend module that extends an existing backend plugin',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/default-backend-module.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'backend-plugin',
|
||||
description: 'A new backend plugin',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/default-backend-plugin.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'plugin-common',
|
||||
description: 'A new isomorphic common plugin package',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/default-common-plugin-package.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'plugin-node',
|
||||
description: 'A new Node.js library plugin package',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/default-node-plugin-package.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'frontend-plugin',
|
||||
description: 'A new frontend plugin',
|
||||
target: require.resolve('@backstage/cli/templates/default-plugin.yaml'),
|
||||
},
|
||||
{
|
||||
id: 'plugin-react',
|
||||
description: 'A new web library plugin package',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/default-react-plugin-package.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'node-library',
|
||||
description:
|
||||
'A library package, exporting shared functionality for Node.js environments',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/node-library-package.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'web-library',
|
||||
description:
|
||||
'A library package, exporting shared functionality for web environments',
|
||||
target: require.resolve(
|
||||
'@backstage/cli/templates/web-library-package.yaml',
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'scaffolder-module',
|
||||
description:
|
||||
'A module exporting custom actions for @backstage/plugin-scaffolder-backend',
|
||||
target: require.resolve('@backstage/cli/templates/scaffolder-module.yaml'),
|
||||
},
|
||||
];
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
name: backend-plugin-module
|
||||
role: backend-plugin-module
|
||||
template: ./default-backend-module
|
||||
description: A new backend module that extends an existing backend plugin
|
||||
templateValues:
|
||||
moduleVar: '{{ camelCase pluginId }}Module{{ upperFirst ( camelCase moduleId ) }}'
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
name: backend-plugin
|
||||
role: backend-plugin
|
||||
template: ./default-backend-plugin
|
||||
description: A new backend plugin
|
||||
templateValues:
|
||||
pluginVar: '{{ camelCase pluginId }}Plugin'
|
||||
@@ -1,2 +0,0 @@
|
||||
role: plugin-common-library
|
||||
template: ./default-common-plugin-package
|
||||
@@ -1,2 +0,0 @@
|
||||
role: plugin-node-library
|
||||
template: ./default-node-plugin-package
|
||||
@@ -1,2 +0,0 @@
|
||||
role: plugin-web-library
|
||||
template: ./default-react-plugin-package
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
name: frontend-plugin
|
||||
role: frontend-plugin
|
||||
template: ./default-plugin
|
||||
description: A new frontend plugin
|
||||
templateValues:
|
||||
pluginVar: '{{ camelCase pluginId }}Plugin'
|
||||
extensionName: '{{ upperFirst ( camelCase pluginId ) }}Page'
|
||||
@@ -1,2 +0,0 @@
|
||||
role: node-library
|
||||
template: ./node-library-package
|
||||
@@ -0,0 +1,3 @@
|
||||
name: node-library
|
||||
role: node-library
|
||||
description: A library package, exporting shared functionality for Node.js environments
|
||||
@@ -0,0 +1,3 @@
|
||||
name: plugin-common-library
|
||||
role: plugin-common-library
|
||||
description: A new isomorphic common plugin package
|
||||
@@ -0,0 +1,3 @@
|
||||
name: plugin-node-library
|
||||
role: plugin-node-library
|
||||
description: A new Node.js library plugin package
|
||||
@@ -0,0 +1,3 @@
|
||||
name: plugin-web-library
|
||||
role: plugin-web-library
|
||||
description: A new web library plugin package
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
name: scaffolder-backend-module
|
||||
role: backend-plugin-module
|
||||
template: ./scaffolder-module
|
||||
description: A module exporting custom actions for @backstage/plugin-scaffolder-backend
|
||||
parameters:
|
||||
pluginId: scaffolder
|
||||
templateValues:
|
||||
@@ -1,2 +0,0 @@
|
||||
role: web-library
|
||||
template: ./web-library-package
|
||||
@@ -0,0 +1,3 @@
|
||||
name: web-library
|
||||
role: web-library
|
||||
description: A library package, exporting shared functionality for web environments
|
||||
Reference in New Issue
Block a user