Merge pull request #30734 from backstage/rugvip/templates

cli: update new NFS module template
This commit is contained in:
Patrik Oldsberg
2025-08-04 11:13:53 +02:00
committed by GitHub
10 changed files with 24 additions and 3 deletions
@@ -16,7 +16,6 @@
export const defaultTemplates = [
'@backstage/cli/templates/frontend-plugin',
'@backstage/cli/templates/frontend-plugin-module',
'@backstage/cli/templates/backend-plugin',
'@backstage/cli/templates/backend-plugin-module',
'@backstage/cli/templates/plugin-web-library',
@@ -1 +0,0 @@
export { {{ moduleVar }} } from './plugin';
@@ -10,7 +10,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "frontend-plugin-module"
"role": "frontend-plugin-module",
"pluginId": "{{pluginId}}"
},
"sideEffects": false,
"scripts": {
@@ -0,0 +1 @@
export { {{ moduleVar }} as default } from './plugin';
@@ -22,6 +22,27 @@
"prettier:check": "prettier --check .",
"new": "backstage-cli new"
},
"backstage": {
"cli": {
"new": {
"globals": {
"license": "UNLICENSED"
},
"templates": [
"@backstage/cli/templates/frontend-plugin",
"@backstage/cli/templates/new-frontend-plugin-module",
"@backstage/cli/templates/backend-plugin",
"@backstage/cli/templates/backend-plugin-module",
"@backstage/cli/templates/plugin-web-library",
"@backstage/cli/templates/plugin-node-library",
"@backstage/cli/templates/plugin-common-library",
"@backstage/cli/templates/web-library",
"@backstage/cli/templates/node-library",
"@backstage/cli/templates/scaffolder-backend-module",
]
}
}
},
"workspaces": {
"packages": [
"packages/*",