Add @backstage/frontend-dev-utils package

Adds a new `@backstage/frontend-dev-utils` package for the new frontend
system. It provides a minimal `createDevApp` helper for wiring up a
development app from a `dev/` entry point.

The app-visualizer plugin is updated to use this new package as the
initial testing ground.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-16 11:31:49 +01:00
parent 3775ef5b51
commit c25532a7a1
14 changed files with 315 additions and 9 deletions
+2 -7
View File
@@ -14,12 +14,7 @@
* limitations under the License.
*/
import ReactDOM from 'react-dom/client';
import { createApp } from '@backstage/frontend-defaults';
import { createDevApp } from '@backstage/frontend-dev-utils';
import { default as plugin } from '../src';
const app = createApp({
features: [plugin],
});
ReactDOM.createRoot(document.getElementById('root')!).render(app.createRoot());
createDevApp({ features: [plugin] });
+1 -1
View File
@@ -43,7 +43,7 @@
},
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/frontend-defaults": "workspace:^",
"@backstage/frontend-dev-utils": "workspace:^",
"@types/react": "^18.0.0",
"react": "^18.0.2",
"react-dom": "^18.0.2",