Create yaml files for existing templates

Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
Min Kim
2024-09-19 20:13:44 -04:00
parent 2dc6c738e1
commit 9940bdca73
10 changed files with 110 additions and 0 deletions
@@ -0,0 +1,38 @@
export default [
{
id: 'backend-module',
target: '@backstage/cli/templates/alpha/default-backend-module.yaml',
},
{
id: 'backend-plugin',
target: '@backstage/cli/templates/alpha/default-backend-plugin.yaml',
},
{
id: 'plugin-common',
target: '@backstage/cli/templates/alpha/default-common-plugin-package.yaml',
},
{
id: 'plugin-node',
target: '@backstage/cli/templates/alpha/default-node-plugin-package.yaml',
},
{
id: 'frontend-plugion', // changed from 'plugin'
target: '@backstage/cli/templates/alpha/default-plugin.yaml',
},
{
id: 'plugin-react',
target: '@backstage/cli/templates/alpha/default-react-plugin-package.yaml',
},
{
id: 'node-library',
target: '@backstage/cli/templates/alpha/node-library-package.yaml',
},
{
id: 'scaffolder-module',
target: '@backstage/cli/templates/alpha/scaffolder-module.yaml',
},
{
id: 'web-library',
target: '@backstage/cli/templates/alpha/web-library-package.yaml',
},
];
@@ -0,0 +1,8 @@
# lib/new/factories/backendModule.ts
description: A new backend module that extends an existing backend plugin with additional features
template: ../default-backend-module
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/backendPlugin.ts
description: A new backend plugin
template: ../default-backend-plugin
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/pluginCommon.ts
description: A new isomorphic common plugin package
template: ../default-common-plugin-package
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/pluginNode.ts
description: A new Node.js library plugin package
template: ../default-node-plugin-package
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/frontendPlugin.ts
description: A new frontend plugin
template: ../default-plugin
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/pluginWeb.ts
description: A new web library plugin package
template: ../default-react-plugin-package
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/nodeLibraryPackage.ts
description: A new node-library package, exporting shared functionality for backend plugins and modules
template: ../node-library-package
targetPath: packages
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/scaffolderModule.ts
description: A module exporting custom actions for @backstage/plugin-scaffolder-backend
template: ../scaffolder-module
targetPath: plugins
prompts:
- id: test
prompt: Test prompt
default: test-default
@@ -0,0 +1,8 @@
# lib/new/factories/webLibraryPackage.ts
description: A new web-library package, exporting shared functionality for frontend plugins
template: ../web-library-package
targetPath: packages
prompts:
- id: test
prompt: Test prompt
default: test-default