chore: added tdev app

Signed-off-by: benjdlambert <ben@blam.sh>

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-09-09 10:55:13 +02:00
parent 62e3de764c
commit a2f3718c8b
4 changed files with 35 additions and 33 deletions
+12 -1
View File
@@ -14,4 +14,15 @@
* limitations under the License.
*/
// todo
import { createApp } from '@backstage/frontend-defaults';
import { createRoot } from 'react-dom/client';
import plugin from '../src';
const app = createApp({
features: [plugin],
});
const container = document.getElementById('root');
const root = createRoot(container!);
root.render(app.createRoot());
+11 -5
View File
@@ -51,24 +51,30 @@
"@backstage/errors": "workspace:^",
"@backstage/frontend-plugin-api": "workspace:^",
"@backstage/theme": "workspace:^",
"@material-ui/core": "^4.9.13",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.57",
"@material-ui/lab": "4.0.0-alpha.61",
"react-use": "^17.2.4"
},
"peerDependencies": {
"react": "^17.0.0",
"react-router-dom": "^6.0.0"
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"react-router-dom": "^6.3.0"
},
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/dev-utils": "workspace:^",
"@backstage/frontend-defaults": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.0.0",
"msw": "^1.0.0"
"@types/react": "^18.0.0",
"msw": "^1.0.0",
"react": "^18.0.2",
"react-dom": "^18.0.2"
},
"files": [
"dist"
+1 -1
View File
@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { authPlugin, AuthRouter } from './plugin';
export { default } from './plugin';
export { rootRouteRef } from './routes';