Update backend module templates
Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
description: A new backend module that extends an existing backend plugin with additional features
|
||||
template: ./default-backend-module
|
||||
targetPath: plugins
|
||||
backendModulePrefix: true
|
||||
prompts:
|
||||
- id: test
|
||||
prompt: Test prompt
|
||||
default: test-default
|
||||
- id
|
||||
- moduleId
|
||||
- owner
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# {{name}}
|
||||
|
||||
The {{moduleId}} backend module for the {{pluginId}} plugin.
|
||||
The {{moduleId}} backend module for the {{id}} plugin.
|
||||
|
||||
_This plugin was created through the Backstage CLI_
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "{{name}}",
|
||||
"description": "The {{moduleId}} backend module for the {{pluginId}} plugin.",
|
||||
"description": "The {{moduleId}} backend module for the {{id}} plugin.",
|
||||
"version": "{{packageVersion}}",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***/
|
||||
/**
|
||||
* The {{moduleId}} backend module for the {{pluginId}} plugin.
|
||||
* The {{moduleId}} backend module for the {{id}} plugin.
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
} from '@backstage/backend-plugin-api';
|
||||
|
||||
export const {{moduleVar}} = createBackendModule({
|
||||
pluginId: '{{pluginId}}',
|
||||
pluginId: '{{id}}',
|
||||
moduleId: '{{moduleId}}',
|
||||
register(reg) {
|
||||
reg.registerInit({
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
description: A module exporting custom actions for @backstage/plugin-scaffolder-backend
|
||||
template: ./scaffolder-module
|
||||
targetPath: plugins
|
||||
backendModulePrefix: true
|
||||
prompts:
|
||||
- id: test
|
||||
prompt: Test prompt
|
||||
default: test-default
|
||||
- id: id
|
||||
prompt: Enter the ID of the plugin [required]
|
||||
default: scaffolder
|
||||
validate: backstage-id
|
||||
- moduleId
|
||||
- owner
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# {{name}}
|
||||
|
||||
The {{id}} module for [@backstage/plugin-scaffolder-backend](https://www.npmjs.com/package/@backstage/plugin-scaffolder-backend).
|
||||
The {{moduleId}} module for [@backstage/plugin-scaffolder-backend](https://www.npmjs.com/package/@backstage/plugin-scaffolder-backend).
|
||||
|
||||
_This plugin was created through the Backstage CLI_
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "{{name}}",
|
||||
"description": "The {{id}} module for @backstage/plugin-scaffolder-backend",
|
||||
"description": "The {{moduleId}} module for @backstage/plugin-scaffolder-backend",
|
||||
"version": "{{pluginVersion}}",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***/
|
||||
/**
|
||||
* The {{id}} module for @backstage/plugin-scaffolder-backend.
|
||||
* The {{moduleId}} module for @backstage/plugin-scaffolder-backend.
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user