Use frontend-dev-utils in new frontend plugin template

Update the new frontend plugin template to use createDevApp in its dev entry point and teach cli-module-new to resolve frontend-dev-utils versions for generated packages.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-16 16:13:02 +01:00
parent 989a1dcc9b
commit ebeb0d4d8b
5 changed files with 14 additions and 8 deletions
@@ -78,6 +78,9 @@ describe('createPackageVersionProvider', () => {
expect(provider('@backstage/core-plugin-api')).toBe(
`^${corePluginApiPkg.version}`,
);
expect(provider('@backstage/frontend-dev-utils')).toBe(
`^${packageVersions['@backstage/frontend-dev-utils']}`,
);
});
describe('with backstage protocol options', () => {
@@ -42,6 +42,7 @@ import { version as coreComponents } from '../../../core-components/package.json
import { version as corePluginApi } from '../../../core-plugin-api/package.json';
import { version as devUtils } from '../../../dev-utils/package.json';
import { version as errors } from '../../../errors/package.json';
import { version as frontendDevUtils } from '../../../frontend-dev-utils/package.json';
import { version as frontendDefaults } from '../../../frontend-defaults/package.json';
import { version as frontendPluginApi } from '../../../frontend-plugin-api/package.json';
import { version as frontendTestUtils } from '../../../frontend-test-utils/package.json';
@@ -66,6 +67,7 @@ export const packageVersions: Record<string, string> = {
'@backstage/core-plugin-api': corePluginApi,
'@backstage/dev-utils': devUtils,
'@backstage/errors': errors,
'@backstage/frontend-dev-utils': frontendDevUtils,
'@backstage/frontend-defaults': frontendDefaults,
'@backstage/frontend-plugin-api': frontendPluginApi,
'@backstage/frontend-test-utils': frontendTestUtils,