From 242427be7ba55c834cab93cefad1b84d99007b29 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 8 May 2020 18:53:32 +0200 Subject: [PATCH] plugins/tech-radar: add lighthouse api to dev env --- plugins/tech-radar/dev/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/tech-radar/dev/index.tsx b/plugins/tech-radar/dev/index.tsx index 812a5585d4..ac19b63a90 100644 --- a/plugins/tech-radar/dev/index.tsx +++ b/plugins/tech-radar/dev/index.tsx @@ -16,5 +16,13 @@ import { createDevApp } from '@backstage/dev-utils'; import { plugin } from '../src/plugin'; +import { techRadarApiRef, TechRadar } from '../src'; -createDevApp().registerPlugin(plugin).render(); +createDevApp() + .registerPlugin(plugin) + .registerApiFactory({ + implements: techRadarApiRef, + deps: {}, + factory: () => new TechRadar({ width: 1500, height: 800 }), + }) + .render();