app-visualizer: add minimal dev setup

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-11-05 01:00:04 +01:00
parent 9c27b46a0a
commit e586e77ba9
4 changed files with 32 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-app-visualizer': patch
---
New `devDependency` for local development setup.
+25
View File
@@ -0,0 +1,25 @@
/*
* Copyright 2024 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import ReactDOM from 'react-dom/client';
import { createApp } from '@backstage/frontend-defaults';
import { default as plugin } from '../src';
const app = createApp({
features: [plugin],
});
ReactDOM.createRoot(document.getElementById('root')!).render(app.createRoot());
+1
View File
@@ -42,6 +42,7 @@
},
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/frontend-defaults": "workspace:^",
"@types/react": "^18.0.0",
"react": "^18.0.2",
"react-dom": "^18.0.2",
+1
View File
@@ -5017,6 +5017,7 @@ __metadata:
"@backstage/cli": "workspace:^"
"@backstage/core-components": "workspace:^"
"@backstage/core-plugin-api": "workspace:^"
"@backstage/frontend-defaults": "workspace:^"
"@backstage/frontend-plugin-api": "workspace:^"
"@material-ui/core": ^4.12.2
"@material-ui/icons": ^4.9.1